aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
1994-09-12 * emultempl/hppaelf.em: Add newlines to the error messages.Jeff Law1-0/+4
1994-09-12 * config/i386lynx.mh: New file.Ian Lance Taylor3-2/+10
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text unless CONSTRUCTING.
1994-09-10 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.Ian Lance Taylor3-17/+34
(GENERATE_SHLIB_SCRIPT): Define as yes. (DYNAMIC_LINK): Define as false. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Initialize config.dynamic_link to DYNAMIC_LINK if it is defined. (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end. * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than generic.em.
1994-09-08 * scripttempl/h8500b.sc: Put rdata stuff into own segment.Steve Chamberlain1-0/+4
1994-09-08 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;Ian Lance Taylor1-0/+11
.got section is now explicitly handled in elf.sc.
1994-09-07xIan Lance Taylor1-1/+15
1994-09-07 * scripttempl/m68kcoff.sc: Put .bss in data segment.Ian Lance Taylor1-2/+2
* scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of 0, and to only be marked as NOLOAD if relocating. * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise. * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise. * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise. * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise. * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise. * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise. * scripttempl/sparclynx.sc: Likewise.
1994-09-05ARM Acorn/RISCiX target and host patches from Richard EarnshawKen Raeburn4-0/+47
1994-08-30 * ld.h (args_type): Add field soname.Ian Lance Taylor1-0/+8
* lexsup.c (parse_args): Handle -soname argument. * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections, pass soname. * ld.texinfo: Document -soname.
1994-08-29 * ldlang.c (lang_check): Don't try to set the architecture if theIan Lance Taylor1-0/+5
input and output files are incompatible. Just warn. For Synoptics.
1994-08-24 * configure.in: Change i[34]86 to i[345]86.Ian Lance Taylor2-17/+26
1994-08-18 Make the ELF linker handle orphaned sections reasonably. Also,Ian Lance Taylor1-0/+19
define __start_SECNAME and __stop_SECNAME around sections whose names can be represented in C, for the benefit of symbol sets in glibc. * ldemul.h (ldemul_place_orphan): Declare. (ld_emulation_xfer_type): Add place_orphan field. * ldemul.c (ldemul_place_orphan): New function. * ldlang.h (wild_doit): Declare. * ldlang.c (wild_doit): Make nonstatic. (lang_place_orphans): Call ldemul_place_orphan. * emultempl/elf32.em: Include <ctype.h> and "ldgram.h". (hold_section, hold_use, hold_text, hold_data, hold_bss): New static variables. (gld${EMULATION_NAME}_place_orphan): New static function. (gld${EMULATION_NAME}_place_section): New static function. (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
1994-08-16 * scripttempl/aout.sc: Add .linux-dynamic after .data.Ian Lance Taylor1-2/+6
1994-08-16 * Treat --dll-verbose as --version, for Linux compatibility. FromIan Lance Taylor1-0/+5
hjl@nynexst.com (H.J. Lu).
1994-08-15 * ldexp.h (exp_get_abs_int): Declare.Ian Lance Taylor1-0/+9
1994-08-06Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)Jason Molenda1-0/+4
* configure.in: add i960-nindy-coff support.
1994-08-04 * ldlex.l (yy_create_string_buffer): Handle change to internalJean Marie Diaz1-0/+5
interface in flex 2.4.7.
1994-08-02Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)Jean Marie Diaz1-0/+9
* emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement): New function; add 0x20 to any use of -Ttext. (gld${EMULATION_NAME}_create_output_section_statements): New function. (ld_${EMULATION_NAME}_emulation): Use the new function gld${EMULATION_NAME}_create_output_section_statements.
1994-08-01 * scripttempl/mips.sc: Redo script to set . outside of sectionsIan Lance Taylor1-0/+5
and not bother to explicitly specify section addresses.
1994-07-26 * scripttempl/elf.sc: Copy several more relocation sections intoIan Lance Taylor1-0/+5
the output. Put .got.plt sections into .got.
1994-07-22 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.Ian Lance Taylor4-166/+252
Add a new script operator, PROVIDE, to define a symbol only if it is needed. * ldgram.y (PROVIDE): New token. (assignment): Accept PROVIDE. * ldlex.l (PROVIDE): New token. * ldexp.h (node_type): Add etree_provide to node_class enum. (exp_provide): Declare. * ldexp.c (exp_fold_tree): Handle etree_provide. (exp_provide): New function. (exp_print_tree): Handle etree_provide. * ld.texinfo: Document PROVIDE.
1994-07-22 * ldlang.c (lang_common): Pass desired alignment toIan Lance Taylor2-33/+13
lang_one_common as power of two. (lang_one_common): Get common symbol alignment from linker hash table entry. Treat desired alignment as a power of two.
1994-07-22 * ldlang.c (wild_section): Attach all section with the given name,Ian Lance Taylor2-52/+152
not just the first one. If there is no name, attach all sections even if the SEC_IS_COMMON flag is set.
1994-07-20 * ld.h (args_type): Add field rpath.Ian Lance Taylor2-4/+57
* lexsup.c (S_ISDIR): Define if not already defined. (parse_args): Add support for -rpath. If -R is used to name a directory, treat it as -rpath for Solaris compatibility. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Pass command_line.rpath to bfd_elf32_size_dynamic_sections. * ldmain.c (main): Initialize command_line.rpath to NULL. * ld.texinfo: Document -rpath option.
1994-07-14ns32k port from Ian DallKen Raeburn7-10/+63
1994-07-08 * lexsup.c (parse_args): Changed "retain-symbols-file" fromIan Lance Taylor2-6/+54
no_argument to required_argument. From djm.
1994-07-05 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,Jeff Law1-0/+14
it was for the HPUX dynamic loader's use and it creates problems with ELF GDB.
1994-06-30Elim dup of file namesStan Shebs1-2/+4
1994-06-30Fix typoStan Shebs1-1/+1
1994-06-29 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.Jean Marie Diaz2-0/+3
1994-06-29 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do notJean Marie Diaz1-0/+6
accept plain -B. * ld.texinfo: -Bstatic is not ignored.
1994-06-28 * mpw-config.in (emulname): Set based on target.Stan Shebs3-1/+26
(ldemul-list.h): Construct. * mpw-make.in (install-only): New target. (install): Depend on install-only.
1994-06-28 * mpw-xconfig.in: Remove ldemul-list.h construction, now inStan Shebs2-12/+7
generic config.
1994-06-28 * ldlex.l: Recognize \r the same as \n.Stan Shebs1-0/+19
1994-06-23Change --with-targets to --enable-targets, per GNU coding standards.David MacKenzie1-0/+4
1994-06-23 * lexsup.c (parse_args): Add support for new options -( -) withIan Lance Taylor1-0/+20
synonyms --start-group --end-group. * ldlang.h (enum statement_enum): Add lang_group_statement_enum. (lang_group_statement_type): Define new struct. (lang_statement_union_type): Add group_statement field. (lang_enter_group, lang_leave_group): Declare. * ldlang.c (lang_for_each_statement_worker): Handle lang_group_statement_enum. (map_input_to_output_sections, print_statement): Likewise. (lang_size_sections, lang_do_assignments): Likewise. (open_input_bfds): Completely rewrite. Now does its own looping, rather than using lang_for_each_statement. Handle groups. (lang_process): Update call to open_input_bfds. (print_group): New static function. (lang_enter_group, lang_leave_group): New static functions. * ldfile.c (ldfile_open_file): If the file has already been opened, just return rather than taking an assertion failure. * ldver.c (help): Mention new options. * ld.texinfo: Document new options.
1994-06-22 * ldlang.c (end_of_data_section_statement_list): Don't define.Ian Lance Taylor2-13/+4
(lang_leave_output_section_statement): Don't set obsolete variable end_of_data_section_statement_list.
1994-06-22 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside anIan Lance Taylor2-1/+4
ALIGN.
1994-06-22 * ldlang.c (lang_size_sections): Adjust current region addressIan Lance Taylor2-11/+16
even for sections with an explicit address. From ralphc@pyramid.com (Ralph Campbell).
1994-06-22 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.Ian Lance Taylor1-0/+3
From jrs@world.std.com (Rick Sladkey).
1994-06-22 * scripttempl/mipsbsd.sc: Let sections align to their naturalIan Lance Taylor1-0/+17
boundaries.
1994-06-17 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000Jeff Law1-0/+5
when generating relocatable objects.
1994-06-17deleted code for keep-v9 that does nothing usefulKen Raeburn1-4/+0
1994-06-16 * lexsup.c (parse_args): Add -shared to longopts, and handle it.Ian Lance Taylor2-0/+7
* ldmain.c (main): Initialize link_info.shared to false. Give error if link_info.relocateable and link_info.shared are both set.
1994-06-16 * configure.in: If EMUL_EXTRA* is defined in a config file, treatIan Lance Taylor2-0/+5
it as naming an emulation to be added to EMULATION_OFILES. * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
1994-06-16 * Makefile.in: Rebuilt dependencies.Ian Lance Taylor7-15/+17
(ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o, eelf64_sparc.o. Remove $(OTHER_EMULATIONS). (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets. * config/i386-linux.mt (OTHER_EMULATIONS): Don't define. (ei386linux.c): Remove; now in Makefile.in. * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define. * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define. * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define. * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define. (eelf64_sparc.c): Remove; now in Makefile.in. * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define. (eelf32_sparc.c): Remove; now in Makefile.in.
1994-06-16Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)Ian Lance Taylor4-1/+164
* emultempl/linux.em: New file providing support for linking against Linux shared libraries. * config/i386-linux.mt (ei386linux.c): Depend upon linux.em. * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
1994-06-16 * ldexp.c (exp_print_tree): Don't crash if etree_rel section hasIan Lance Taylor1-0/+4
no owner--it might be bfd_abs_section. From Eric Youngdale <ericy@cais.cais.com>.
1994-06-16 * scripttempl/aout.sc: Let sections align to their naturalIan Lance Taylor1-0/+5
boundaries.
1994-06-15 * ldemul.h (ldemul_open_dynamic_archive): Declare.Ian Lance Taylor1-0/+19
(ld_emulation_xfer_type): Add new field open_dynamic_archive. * ldemul.c: Include ldexp.h and ldlang.h. (ldemul_open_dynamic_archive): New function. * ldfile.h (ldfile_open_file_search): Declare. * ldfile.c: Include ldemul.h. (try_open_bfd): Rename from cache_bfd_openr. Return boolean argument, not bfd *. Change all callers. (ldfile_open_file_search): Rename from open_a. Return boolean argument, not bfd *. Clean up. Change all callers. (ldfile_open_file): If doing a dynamic link, call ldemul_open_dynamic_archive rather than assuming the extension of a dynamic object is ".so". * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): New function. (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive field. * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.