aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
AgeCommit message (Collapse)AuthorFilesLines
1998-08-27add armelf.em to things to keep.Catherine Moore1-6/+1
1998-08-20mention directory when looking for sanitizeIan Lance Taylor1-3/+3
1998-08-13Add armelf.Catherine Moore1-0/+7
1998-07-14 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.Richard Henderson1-0/+7
* Makefile.am (ei386beos.o): New. * emulparams/i386beos.sh: New file. * emultempl/beos.em, scripttempl/i386beos.sc: New file.
1998-07-03 * scripttempl/pe.sc: Use SORT to sort sections appropriately.Ian Lance Taylor1-239/+210
* emultempl/pe.em (sort_by_file_name): Remove. (sort_by_section_name): Remove. (sort_sections_1, sort_sections): Remove. (gld_${EMULATION_NAME}_before_allocation): Don't call sort_sections. (hold_section, hold_section_name): New static variables. (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise. (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good place to put the section. Align the section. Sort the input sections by name. (gld_${EMULATION_NAME}_place_section): New static function.
1998-07-03 * emultempl/pe.em (set_pe_subsystem): Don't callIan Lance Taylor1-68/+123
ldlang_add_undef. (gld_${EMULATION_NAME}_after_parse): New static function. (ld_${EMULATION_NAME}_emulation): Use new after_parse function rather than after_parse_default.
1998-06-05 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set vma to 0Doug Evans1-0/+33
for .DVP.overlay.*.
1998-03-26Add interworking support for arm-pe/thumb-pe targets.Nick Clifton1-52/+120
1997-12-16Add armcoff.em to list of kept files.Nick Clifton1-0/+1
1997-02-28 * emultempl/m88kbcs.em: Remove.Ian Lance Taylor2-120/+0
* emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set. * Makefile.in (em88kbcs.c): Depend upon generic.em rather than m88kbcs.em.
1997-01-30 * emultempl/sunos.em: Include <ctype.h>.Ian Lance Taylor1-32/+76
(gld${EMULATION_NAME}_find_so): Skip the directory name when searching for ".so.". (gld${EMULATION_NAME}_search_dir): Make sure that the library name has a version number, and that only version numbers follow .so.
1996-12-12 * emultempl/gld960c.em: Include <ctype.h>.Ian Lance Taylor1-0/+191
(gld960_set_output_arch): Get the machine type from the -A option if there is one, rather than always using core. PR 11255.
1996-12-05 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don'tIan Lance Taylor1-2/+5
use hold_rel unless SEC_ALLOC is set for the reloc section. (gld${EMULATION_NAME}_place_section): Only set hold_rel if SEC_ALLOC is set. PR 11174.
1996-10-09 * emultempl/pe.em (set_pe_subsystem): When setting the subsystemIan Lance Taylor1-0/+23
to windows, set the entry point.
1996-10-03Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-21/+26
* emultmpl/pe.em: increase size of stack reserve to 0x2000000 (necessary in order to compile parse.c in gcc sources under NT)
1996-07-15Mon Jul 15 11:49:49 1996 Andreas Schwab ↵Ian Lance Taylor1-9/+28
<schwab@issan.informatik.uni-dortmund.de> * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round the value of __start_SECNAME to the alignment required by the section to be placed.
1996-05-22 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}David Edelsohn1-191/+194
if final link. * emultempl/pe.em (sfunc): Renamed to sort_by_file_name. (sort_by_section_name, sort_sections_1): New functions. (sort_sections): Only sort by file name sections in .idata. Add "Grouped Sections" support. (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped Sections. (gld${EMULATION_NAME}_place_section): Delete. * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$). (.CRT,.rsrc): Rewrite to use Grouped Section support.
1996-05-07 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.David Edelsohn1-10/+171
(gld${EMULATION_NAME}_place_section): New function. (hold_{section,use,text,rdata,data}): New static locals. (ld_${EMULATION_NAME}_emulation): Update orphan field.
1996-04-05 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): NewIan Lance Taylor1-1/+96
static function, if ${host} = ${target}. (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a needed shared library if ${host} = $[target}.
1996-02-19 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): CheckIan Lance Taylor1-22/+48
the SONAME if it is available. (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the filename, when checking for conflicting library versions. Don't assume that the suffix is only numbers and dots.
1996-02-14 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): StripIan Lance Taylor1-1/+1
`:foo' from ${ARCH}.
1996-02-13 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn ifIan Lance Taylor1-19/+73
it looks like we might be linking in two different versions of the same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
1996-01-15 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):Ian Lance Taylor1-2/+3
Don't make a shared library because of an undefined reference to __GLOBAL_OFFSET_TABLE_.
1996-01-05 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):Steve Chamberlain1-2/+19
sort using right pointer.
1995-12-19 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only setIan Lance Taylor1-4/+30
relocateable before calling ldctor_build_sets if the output file is in an XCOFF format.
1995-11-09 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): AddIan Lance Taylor1-1/+108
new local variable special_sections, and pass it to size_dynamic_sections. Look through the results, and move the sections around in the mapping so that they are defined correctly.
1995-11-01 * emultempl/aix.em: Include ldgram.h.Ian Lance Taylor1-1/+51
(gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on AIX 4.1. * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
1995-10-31really make import_file staticIan Lance Taylor1-1/+1
1995-10-31 * emultempl/aix.em (export_files): Remove.Ian Lance Taylor1-30/+63
(import_files): Make static. (struct export_symbol_list): Define. (export_symbols): New static variable. (gld${EMULATION_NAME}_parse_args): Handle an initial -b option correctly. Call read_file for an export file. (gld${EMULATION_NAME}_before_allocation): Call bfd_xcoff_export_symbol for each export symbol, rather than calling read_file for each export file. (gld${EMULATION_NAME}_read_file): For an export file, make the exported symbols undefined, and store them on the export_symbols list.
1995-10-28Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-11/+27
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Don't hang if last option is unrecognised. (gld_${EMULATION_NAME}_set_symbols): Insert created symbols into ABS output section.
1995-10-27 * emultempl/aix.em: Include ldctor.h.Ian Lance Taylor1-1/+124
(gld${EMULATION_NAME}_after_open): New static function. (gld${EMULATION_NAME}_before_allocation): Call find_relocs. (gld${EMULATION_NAME}_find_relocs): New static function. (gld${EMULATION_NAME}_find_exp_assignment): New static function. (ld_${EMULATION_NAME}_emulation): Use new after_open function. * scripttempl/aix.sc: Use CONSTRUCTORS in .data. * ldctor.c (struct set_info): Move definition into ldctor.h. (struct set_element): Likewise. (sets): Make non-static. (ldctor_add_set_entry): Add name parameter. Save it in the new set element. (ldctor_build_sets): Avoid being called twice. Pass set element name to lang_add_reloc. * ldctor.h (struct set_info): Move definition here from ldctor.c. (struct set_element): Likewise. Add new field name. (sets): Declare. (ldctor_add_set_entry): Declare new name parameter. * ldwrite.c (build_link_order): Don't insist that either name or section be NULL in a lang_reloc_statement. * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for new name parameter. (constructor_callback): Pass name to ldctor_add_new_set_entry for new name parameter.
1995-10-27 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): TreatIan Lance Taylor1-0/+1
-static as a synonym for -bnso.
1995-10-25tweak option handlingIan Lance Taylor1-0/+4
1995-10-25 * emultempl/aix.em: Add support for various AIX linker options,Ian Lance Taylor1-0/+665
for AIX import and export files, and for AIX shared objects. * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
1995-10-17 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): MoveIan Lance Taylor1-122/+497
directory searching code into gld${EMULATION_NAME}_search_dir. (gld${EMULATION_NAME}_search_dir): New static function, extracted from gld${EMULATION_NAME}_find_so. (global_needed, global_found): New static variables. (gld${EMULATION_NAME}_after_open): New static function. (gld${EMULATION_NAME}_search_needed): New static function. (gld${EMULATION_NAME}_try_needed): New static function. (gld${EMULATION_NAME}_check_needed): New static function. (ld_${EMULATION_NAME}_emulation): Use new after_open function. * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
1995-10-16 * configure.tgt (powerpc-*-aix*): New target; use aixppc.Ian Lance Taylor1-0/+1
(rs6000-*-aix*): New target; use aixrs6. * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files. * emultempl/aix.em: New file. * scripttempl/aix.sc: New file. * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o. (eaixppc.c, eaixrs6.c): New targets.
1995-10-07 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don'tIan Lance Taylor1-0/+4
bother searching for needed libraries unless doing a final link.
1995-10-02 * emultempl/elf32.em (global_stat): New file static variable.Ian Lance Taylor1-4/+52
(gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure that the file has not already been included under another name. (gld${EMULATION_NAME}_stat_needed): New static function.
1995-09-28 * lexsup.c (parse_args): Handle -assert.Ian Lance Taylor1-1/+5
* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define. * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the shared library script when appropriate. * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text section at SIZEOF_HEADERS.
1995-09-11Revert Linux directory searching: it turns out that Linux no longerIan Lance Taylor1-134/+0
uses it.
1995-09-08 Add Linux style directory searching.Ian Lance Taylor1-6/+179
* configure.tgt: Add i386lelf to targ_extra_emuls for i[345]86-*-linuxaout* and i[345]86-*-linuxoldld. For i[345]86-*-linux*, set targ_emul to i386lelf, and add elf_i386 to targ_extra_emuls. * emulparams/i386lelf.sh: New file, a copy of elf_i386.sh. * emultempl/elf32.em: If TARGET_IS_i386lelf, use autoconf recommended mechanism to define DIR and struct dirent. (libcmp): New static function use only when TARGET_IS_i386lelf. (gld${EMULATION_NAME}_open_dynamic_archive): Likewise. * Makefile.in (ALL_EMULATIONS): Add ei386lelf.o (ei386lelf.c): New target.
1995-09-08 * configure.in: Call AC_HEADER_DIRENT.Ian Lance Taylor1-12/+20
* configure, config.in: Rebuild. * emultempl/sunos.em: Use autoconf recommend mechanism to define DIR and struct dirent.
1995-09-06 * configure.in: Rewrite to use autoconf.Ian Lance Taylor1-1/+0
* configure.host: New file. * configure.tgt: New file. * aclocal.m4: New file. * configure: New file, built by autoconf. * acconfig.h: New file. * config.h.in: New file, built by autoheader. * sysdep.h: New file. * ld.h: Incorporate old contents of config.h. * config.h: Remove. * Makefile.in: Various changes for new configure script. Also: (CC_FOR_BUILD): Remove. (ldmain.o): Don't bother to ensure that EMUL is non-empty. (dep.sed): Use @SRCDIR@, not @srcdir@. * dep-in.sed: Use @SRCDIR@, not @srcdir@. * genscripts.sh: Create ldscripts if it does not exist. * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h". * mpw-esh.c, emultemp/*.em: Likewise. * ldmain.c: Likewise. Include <ctype.h>. Don't try to set HAVE_SBRK here. * config/*.mt, config/*.mh: Remove.
1995-08-31Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+486
* ldemul.c (ldemul_parse_args): New. * ldemul.h (ld_emulation_xfer_struct): Add parse_args. * lexsup.c (all pe stuff): Moved into pe.em (parse_args): Call emulation arg parser. * emultempl/pe.em (parse_args): handle PE specfic args.
1995-08-17Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain3-463/+1
* emultempl/{armpe.sc, i386pe.sc}: Deleted. * emultempl/pe.sc: New file performs generic PE support and sorts archive members. * emulparams/{armpe.sh,i386pe.sh}: Use new file. * scripttempl/{armpe.sc, i386pe.sc}: Deleted * scripttempl/pe.sc: New. * Makefile.in: Use new files. b
1995-07-07fsf address update, but not in COPYING filesKen Raeburn5-12/+26
1995-07-04 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):Ian Lance Taylor1-2/+20
Handle etree_provide. PR 7164.
1995-07-04 * emultempl/elf32.em (global_needed): New static variable.Ian Lance Taylor1-22/+225
(global_found): Likewise. (gld${EMULATION_NAME}_after_open): New static function. (gld${EMULATION_NAME}_search_needed): Likewise. (gld${EMULATION_NAME}_try_needed): Likewise. (gld${EMULATION_NAME}_check_needed): Likewise. (ld_${EMULATION_NAME}_emulation): Replace after_open_default with gld${EMULATION_NAME}_after_open. PR 7083.
1995-06-29Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain3-1/+233
* ldmain.c (main): Always initialize PE info in link_info. * lexsup.c (OPTION_BASE_FILE): New option. (parse_args): Handle new option. * emulparams/armpe.sh: Output pei. * emultempl/i386pe.em: Add newline to end. * scripttempl/armpe.sc: Change output and quote the $s. * scripttempl/i386pe.sc: Change output and quote the $s.
1995-05-12Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-1/+232
Tom Griest <griest@cs.yale.edu> Initial support for PE executables (eg NT, win32) * Makefile.in (configure.in, ei386pe): Add support. * ldmain.c (main): Initialize PE argument info. * ldwrite.c (print_file_stuff): Don't print out .drectve and .debug section info. * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP, OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap): Handle new arguments. * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc: New files