aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
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.
1994-06-15Comment fix.Ian Lance Taylor1-1/+1
1994-06-15 * lexsup.c (parse_args): Accept -static as a synonym forIan Lance Taylor2-0/+2
-non_shared.
1994-06-15 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.Ian Lance Taylor3-0/+10
* lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
1994-06-15 Let the user change the dynamic linker used by ELF code.Ian Lance Taylor4-2/+33
* ld.h (args_type): Add new field interpreter. * lexsup.c (parse_args): Add dynamic-linker to longopts, and handle it. * ldmain.c (main): Initialize command_line.interpreter to NULL. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get the ELF backend to return the .interp section. If command_line.interpreter is not NULL, set the contents of .interp to it. * ld.texinfo: Mention -dynamic-linker.
1994-06-15 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, notIan Lance Taylor1-1/+1
generic.em.
1994-06-15 * lexsup.c (parse_args): Sort out the option macros and change theIan Lance Taylor2-22/+26
definitions to make it easier to add a new option.
1994-06-15 * scripttempl/aout.sc: Define __etext and __edata to go along withIan Lance Taylor2-0/+5
_etext and _edata.
1994-06-15 * ldver.c (help): Mention -traditional-format.Ian Lance Taylor1-1/+2
1994-06-15 * ld.h (ld_config_type): Add new field traditional_format.Ian Lance Taylor6-4/+43
* lexsup.c (parse_args): Add traditional_format to longopts, and handle it. * ldmain.c (main): Initialize config.traditional_format to false. * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD flags of output_bfd according to config.traditional_format. * ld.texinfo: Document -traditional-format.
1994-06-15 * ldctor.c (ldctor_add_entry): Add entries to a set in the orderIan Lance Taylor1-0/+5
they are encountered.
1994-06-14Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)Ian Lance Taylor2-3/+7
* emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000. (NONPAGED_TEXT_START_ADDR): Define as 0x20.
1994-06-13 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted ofIan Lance Taylor1-0/+3
_FTEXT, _ETEXT and _FDATA. Dont define _END.
1994-06-13 * ldfile.c (open_a): If this is not an archive, try to open it inIan Lance Taylor2-0/+13
the current directory before searching for it.
1994-06-13 * lexsup.c (parse_args): Treat -i as a synonym for -r.Ian Lance Taylor2-0/+3
1994-06-13 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so thatIan Lance Taylor1-0/+3
BLOCK works in a section address as documented.
1994-06-13 * ldgram.y (YYDEBUG): Don't define.Ian Lance Taylor2-2/+4
1994-06-12Conditionalize on mips-idt-ecoff.Stan Shebs2-9/+15
1994-06-10Don't sanitize out SPARC v9 stuff.Ian Lance Taylor3-56/+0
1994-06-10Restore sparc64 targets clobbered in 1994/04/07 checkin.Ian Lance Taylor1-0/+2
1994-06-10 * emultempl/gld960.em: Pass false for new argument toIan Lance Taylor1-0/+9
ldfile_add_library_path. * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
1994-06-10 * emultempl/sunos.em: Only look for .so files if doing a dynamicIan Lance Taylor1-1/+2
link.
1994-06-09 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.Ian Lance Taylor1-0/+4
1994-06-09 * Makefile.in (check): Delete ld.new dependency so that a regressionBill Cox2-1/+6
test doesn't trigger a rebuild of the linker.
1994-06-09 * ldlang.c (map_input_to_output_sections): For lang_address, callIan Lance Taylor2-7/+9
init_os if it hasn't already been called.
1994-06-03Rebuilt dependencies.Ian Lance Taylor1-1/+1
1994-06-02Use SunOS shared libraries on a Sun 3.Ian Lance Taylor2-1/+3
1994-06-02Correct handling of .sa file.Ian Lance Taylor1-2/+5
1994-06-02 Add support for SunOS shared libraries.Ian Lance Taylor5-1/+637
* aout.sc: Don't define __DYNAMIC here. Add new sections used by shared library support code. * emultempl/sunos.em: New file. * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos. * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
1994-06-02 * ldlang.c: Minor formatting cleanups.Ian Lance Taylor1-20/+18
(lang_for_each_input_file): New function. * ldlang.h (lang_for_each_input_file): Declare.
1994-06-02 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdlineIan Lance Taylor5-27/+41
field. (search_head): Declare. (ldfile_add_library_path): Add new cmdline argument in prototype. * ldfile.c (search_head): Make non-static. (search_dirs_type): Move to ldfile.h. (ldfile_add_library_path): Accept cmdline argument, and save it. * lexsup.c (parse_args): Pass true for new cmdline argument of ldfile_add_library_path. (set_default_dirlist): Likewise. * ldmain.c (check_for_scripts_dir): Pass false for new cmdline argument of ldfile_add_library_path. * ldgram.y (ifile_p1): Likewise.
1994-06-01 * ldlang.h (lang_input_statement_type): Remove fields subfiles,Ian Lance Taylor5-29/+18
total_size, superfile and chain. * ldfile.c (open_a): Don't clear search_dirs_flag. (ldfile_open_file): Don't try to open superfile. Assert that file has not already been opened. * ldlang.c (new_afile): Don't initialize superfile. * ldmain.c (add_archive_element): Don't initialize subfiles or chain or superfile. Initialize search_dirs_flag to false.
1994-05-27changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)Ken Raeburn10-56/+123
1994-05-27 * ldlang.c (entry_symbol): Make static.Ian Lance Taylor5-42/+65
(lang_add_entry): Add cmdline argument. * ldlang.h (lang_add_entry): Change prototype. * ldgram.y (statement_anywhere): Change lang_add_entry call. * lexsup.c (parse_args): Likewise.
1994-05-27 * ldlang.c (lang_add_entry): Only set the entry symbol if it hasIan Lance Taylor2-1/+7
not been set already.
1994-05-24 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't giveIan Lance Taylor2-3/+15
.reginfo an address. (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address. (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss. * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
1994-05-20Remove sanitization of PowerPC NetWareIan Lance Taylor2-26/+1
1994-05-19 Add support for ELF shared libraries.Ian Lance Taylor9-170/+410
* ld.h (ld_config_type): Add field dynamic_link. * ldmain.c (main): Initialize config.dynamic_link to false. Warn on attempts to use -r with -relax, -call_shared or -s. * lexsup.c (longopts): Separate OPTION_CALL_SHARED from OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values accordingly. Add "dy" and "non_shared" options. Change "Qy" to OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and OPTION_NON_SHARED by setting dynamic_link field accordingly. Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for -r and -Ur. * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try opening a file with a .so extension first. * emultempl/elf32.em: New file. * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000. (NONPAGED_TEXT_START_ADDR): Likewise. (TEMPLATE_NAME): Define as elf32. (DATA_PLT): Define. * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32. * scripttempl/elf.sc: Add placement for new dynamic sections. Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end outside of any section. Don't use ALIGN(8); just let one section VMA follow another. Put .dynbss in .bss. Don't mention debugging sections; they'll be handled correctly anyhow. * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
1994-05-18 * Makefile.in (install): Redirect output of ln to /dev/null.Ian Lance Taylor2-1/+5
1994-05-17 * ld.bootstrap/bootstrap.exp, lib/ld.exp: Replace error procBill Cox3-5/+10
calls with perror calls.
1994-05-16 * emultempl/hppaelf.em: Change all references ofJeff Law2-0/+41
.hppa_linker_stubs to .PARISC.stubs. * scripttempl/hppaelf.sc: Likewise.
1994-05-13 * ldlang.c (print_output_section_statement): Change ``no attachedIan Lance Taylor2-5/+14
output section'' message slightly. (lang_do_assignments): Don't recurse down if there is no real section.