summaryrefslogtreecommitdiffstats
path: root/ld
Commit message (Collapse)AuthorAgeFilesLines
...
* * deffilep.y: Add missing prototypes.Andreas Jaeger2001-08-213-5/+36
| | | | * pe-dll.c: Likewise.
* * ldlang.c (insert_pad): Fix typos in last patch.Alan Modra2001-08-202-2/+12
|
* * ldlang.c: When traversing lang_statement_union_type lists,Alan Modra2001-08-206-28/+27
| | | | | | | | | consistently use "header.next" rather than "next". * mpw-eppcmac.c: Likewise. * emultempl/beos.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/pe.em: Likewise. * ldlang.h (union lang_statement_union): Remove "next" field.
* * ldlang.c (insert_pad): Use offsetof macro.Alan Modra2001-08-203-83/+14
| | | | | (lang_size_sections): Always neuter padding statements. * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
* * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" paramAlan Modra2001-08-203-36/+99
| | | | | | | passed to lang_size_sections. (pe_exe_fill_sections): Likewise. * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em. (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
* * emultempl/aix.em: Formatting fixes.Alan Modra2001-08-182-335/+371
|
* * ldlang.c (insert_pad): Make use of an existing pad statement ifAlan Modra2001-08-183-106/+112
| | | | | | | | | | | | | | | available. Move code calculating alignment, adjusting section alignment power, and adjusting dot to .. (size_input_section): .. here. Remove unused relax param. (lang_size_sections): Change boolean `relax' param to boolean *. Adjust call to size_input_section. Make use of insert_pad to place pad after the assignment statement. If relaxing, zap padding statements. (reset_memory_regions): Reset output_bfd section sizes too. (relax_again): Move to.. (lang_process): ..here. Adjust call to lang_size_sections, and remove duplicated code. * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
* * ld.texinfo: Document that fill values now use the four leastAlan Modra2001-08-1719-25/+47
| | | | | | | | | | | | | | | | | | | | | significant bytes. * emulparams/elf32fr30.sh (NOP): Update. * emulparams/elf32mcore.sh: Likewise. * emulparams/elf64_s390.sh: Likewise. * emulparams/elf_i386.sh: Likewise. * emulparams/elf_i386_be.sh: Likewise. * emulparams/elf_i386_chaos.sh: Likewise. * emulparams/elf_i386_ldso.sh: Likewise. * emulparams/elf_s390.sh: Likewise. * emulparams/elf_x86_64.sh: Likewise. * emulparams/i386moss.sh: Likewise. * emulparams/i386nw.sh: Likewise. * emulparams/m68kelf.sh: Likewise. * scripttempl/elf.sc: Update NOP comment. * scripttempl/elfi370.sc: Likewise. * scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise. * scripttempl/nw.sc: Likewise.
* Fix for ldTom Rix2001-08-153-2/+7
|
* * emultempl/elf32.em: Formatting fixes.Alan Modra2001-08-142-57/+63
| | | | | | | | (output_prev_sec_find): Test for bfd_ind_section too; do so by looking at sec->owner. (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test. (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove unused code, and reorganize orphan section placement code.
* (wild_doit): Rename to lang_add_section.Alan Modra2001-08-148-30/+41
|
* * emultempl/needrelax.em: New file.Richard Henderson2001-08-135-2/+52
| | | | | | * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it. * Makefile.am (eelf64_ia64.c): Depend on it. * Makefile.in: Rebuild.
* * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure thatAlan Modra2001-08-132-4/+11
| | | | output_section is set non-NULL.
* * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): ReturnAlan Modra2001-08-132-5/+13
| | | | | | `true' for SEC_EXCLUDE sections so that the generic code doesn't needlessly create an output_section_statement. Treat a correctly named output_section_statement with NULL bfd_section as compatible.
* Update copyright noticeHans-Peter Nilsson2001-08-131-1/+1
|
* * emultempl/generic.em: Support EXTRA_EM_FILE.Hans-Peter Nilsson2001-08-132-21/+52
| | | | | | | | | | | | | (ld_${EMULATION_NAME}_emulation): Support emulation parameters LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL, LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION, LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET, LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH, LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS, LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN, LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE, LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE, LDEMUL_FIND_POTENTIAL_LIBRARIES.
* * scripttempl/elf.sc, scripttempl/elfd30v.sc,Richard Henderson2001-08-126-2/+26
| | | | | scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc, scripttempl/v850.sc: Keep .jcr data.
* Make --verbose always display linker scriptNick Clifton2001-08-127-18/+63
|
* * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypesAndreas Jaeger2001-08-103-219/+214
| | | | | to build warnings. * configure: Regenerate.
* * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.Alan Modra2001-08-092-0/+4
|
* * scripttempl/elf.sc: Move non-text .dynamic section beforeAlan Modra2001-08-0918-19/+45
| | | | | | | | | | | | | | | | | | | | | | | .plt/.got/.sdata* group. (OTHER_GOT_SECTIONS): Move to immediately after .got. (OTHER_SDATA_SECTIONS): Add. * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than OTHER_GOT_SECTIONS. * emulparams/crislinux.sh: Likewise. * emulparams/elf32b4300.sh: Likewise. * emulparams/elf32bmip.sh: Likewise. * emulparams/elf32bmipn32.sh: Likewise. * emulparams/elf32bsmip.sh: Likewise. * emulparams/elf32btsmip.sh: Likewise. * emulparams/elf32ebmip.sh: Likewise. * emulparams/elf32elmip.sh: Likewise. * emulparams/elf32l4300.sh: Likewise. * emulparams/elf32lmip.sh: Likewise. * emulparams/elf32lsmip.sh: Likewise. * emulparams/elf32ltsmip.sh: Likewise. * emulparams/elf64bmip.sh: Likewise. * emulparams/elf64btsmip.sh: Likewise. * emulparams/elf64ltsmip.sh: Likewise.
* * genscripts.sh: Source the emulparams script before each outputAlan Modra2001-08-082-12/+24
| | | | | script is generated so that variables like `RELOCATING' may affect variables defined in the emulparams script.
* * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in thisAlan Modra2001-08-042-2/+5
| | | | order.
* * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,Alan Modra2001-08-042-57/+84
| | | | | ie. iterate over wild_statement.section_list. (gld${EMULATION_NAME}_place_orphan): Likewise.
* * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handleStephane Carrez2001-08-033-40/+224
| | | | | | | .fini[0-4] sections used by _exit (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM. (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*. * scripttempl/elfm68hc11.sc: Likewise.
* 2001-08-03 H.J. Lu <hjl@gnu.org>H.J. Lu2001-08-032-1/+5
| | | | * emultempl/beos.em (init): Add the missing initialization.
* * ld.texinfo (Input Section Basics): Clarify ordering of outputAlan Modra2001-08-037-202/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sections. * ldlang.c (callback_t): Add wildcard_list param. (walk_wild_section): Remove "section" param. Rewrite for lang_wild_statement_type change. Remove unique_section_p test. (walk_wild_file): Remove "section" param. (walk_wild): Remove "section" and "file" params. (lang_gc_wild): Likewise. (wild): Likewise. Modify for lang_wild_statement_type change. (wild_sort): Likewise. Add "sec" param. (gc_section_callback): Likewise. (output_section_callback): Likewise. Do unique_section_p test. (map_input_to_output_sections): Modify call to wild. (lang_gc_sections_1): Likewise. (print_wild_statement): Modify for lang_wild_statement_type change. (lang_add_wild): Replace filename, filenames_sorted param with filespec. Replace section_name, sections_sorted, exclude_filename_list with section_list. * ldlang.h (lang_add_wild): Here too. (lang_wild_statement_type): Replace section_name, sections_sorted, and exclude_filename_list with section_list. * ldgram.y (current_file): Delete. (%union): Add wildcard_list. (file_NAME_list): Set type to wildcard_list. Build a linked list rather than calling lang_add_wild for each entry. (input_section_spec_no_keep): Call lang_add_wild here instead. * ld.h (struct wildcard_list): Declare. * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
* 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>Charles Wilson2001-08-026-25/+709
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ldmain.c (main): initialize link_info.pei386_auto_import * pe-dll.c: new tables for auto-export filtering (auto_export): change API, pass abfd for contextual filtering. Loop thru tables of excluded symbols instead of comparing "by hand". 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com> * pe-dll.c: new variable pe_dll_enable_extra_debug. New static variable current_sec (static struct sec *). Add forward declaration for add_bfd_to_link. (process_def_file): Don't export undefined symbols. Do not export symbols starting with "_imp__". Call auto_export() with new API. (pe_walk_relocs_of_symbol): New function. (generate_reloc): add optional extra debugging (pe_dll_generate_def_file): eliminate extraneous initial blank line in output (make_one): enlarge symtab to make room for __nm__ symbols (DATA auto-import support). (make_singleton_name_thunk): New function. (make_import_fixup_mark): New function. (make_import_fixup_entry): New function. (pe_create_import_fixup): New function. (add_bfd_to_link): Specify that 'name' argument is a CONST char *. * pe-dll.h: declare new variable pe_dll_extra_pe_debug; declare new functions pe_walk_relocs_of_symbol and pe_create_import_fixup. * emultempl/pe.em: add new options --enable-auto-import, --disable-auto-import, and --enable-extra-pe-debug. (make_import_fixup): New function. (pe_find_data_imports): New function. (pr_sym): New function. (gld_${EMULATION_NAME}_after_open): Add optional extra pe debugging. Call pe_find_data_imports. Mark .idata as DATA, not CODE. 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu> * ld.texinfo: add additional documentation for --export-all-symbols. Document --out-implib, --enable-auto-image-base, --disable-auto-image-base, --dll-search-prefix, --enable-auto-import, and --disable-auto-import. * ldint.texinfo: Add detailed documentation on auto-import implementation.
* 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>Charles Wilson2001-08-021-5/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ldmain.c (main): initialize link_info.pei386_auto_import * pe-dll.c: new tables for auto-export filtering (auto_export): change API, pass abfd for contextual filtering. Loop thru tables of excluded symbols instead of comparing "by hand". 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com> * pe-dll.c: new variable pe_dll_enable_extra_debug. New static variable current_sec (static struct sec *). Add forward declaration for add_bfd_to_link. (process_def_file): Don't export undefined symbols. Do not export symbols starting with "_imp__". Call auto_export() with new API. (pe_walk_relocs_of_symbol): New function. (generate_reloc): add optional extra debugging (pe_dll_generate_def_file): eliminate extraneous initial blank line in output (make_one): enlarge symtab to make room for __nm__ symbols (DATA auto-import support). (make_singleton_name_thunk): New function. (make_import_fixup_mark): New function. (make_import_fixup_entry): New function. (pe_create_import_fixup): New function. (add_bfd_to_link): Specify that 'name' argument is a CONST char *. * pe-dll.h: declare new variable pe_dll_extra_pe_debug; declare new functions pe_walk_relocs_of_symbol and pe_create_import_fixup. * emultempl/pe.em: add new options --enable-auto-import, --disable-auto-import, and --enable-extra-pe-debug. (make_import_fixup): New function. (pe_find_data_imports): New function. (pr_sym): New function. (gld_${EMULATION_NAME}_after_open): Add optional extra pe debugging. Call pe_find_data_imports. Mark .idata as DATA, not CODE. 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu> * ld.texinfo: add additional documentation for --export-all-symbols. Document --out-implib, --enable-auto-image-base, --disable-auto-image-base, --dll-search-prefix, --enable-auto-import, and --disable-auto-import. * ldint.texinfo: Add detailed documentation on auto-import implementation.
* Do not require any exception support library. Check results against NRV.Nick Clifton2001-08-013-17/+59
|
* Do not require any exception support library.Nick Clifton2001-08-012-1/+6
|
* Fix computation in SECTIONS example.Nick Clifton2001-07-302-1/+6
|
* 2001-07-27 H.J. Lu <hjl@gnu.org>H.J. Lu2001-07-272-2/+6
| | | | * ld-selective/selective.exp: Fix the error in the last change.
* * ld-selective/selective.exp: Support g++ V3 ABI (along sideAlan Modra2001-07-242-4/+18
| | | | | the old ABI). Make comparisons against normalized (to V3-style) demangled nm output.
* * config/default.exp (ld_nm): Add "nmflags" arg.Alan Modra2001-07-249-11/+22
| | | | | | | | | | * lib/ld-lib.exp (default_ld_nm): Likewise. * ld-empic/empic.exp: Adjust call to ld_nm. * ld-scripts/defined.exp: Likewise. * ld-scripts/script.exp: Likewise. * ld-scripts/sizeof.exp: Likewise. * ld-selective/selective.exp: Likewise. * ld-sh/sh.exp: Likewise.
* Update dependencies with "make dep-am".Alan Modra2001-07-243-3/+8
|
* * ldcref.c (check_section_sym_xref): New function.Alan Modra2001-07-232-62/+102
| | | | | | | | | | | | (check_nocrossrefs): Call it. (check_nocrossref): Interate over h->refs here instead of.. (check_refs): ..here. Pass in the symbol name, section, and bfd rather than hash_entry pointers. (struct check_refs_info): Keep symbol name rather than hash entry. Remove "same". (check_reloc_refs): Tweak for above changes in check_refs_info. Only report references to section syms when symname is NULL to prevent duplicate messages for the same reloc.
* Use stderr if config.map_file is not available. Do not print NULL trees.Nick Clifton2001-07-192-48/+57
|
* If a region is specified assign it to all sections inside the overlay unless ↵Nick Clifton2001-07-192-1/+16
| | | | they have been assigned to the own, non-default, memory region.
* Change bug reporting email address.Nick Clifton2001-07-192-0/+6
|
* 2001-07-14 H.J. Lu <hjl@gnu.org>H.J. Lu2001-07-142-1/+10
| | | | | | * emultempl/elf32.em (output_prev_sec_find): Never return bfd_abs_section_ptr, bfd_com_section_ptr nor bfd_und_section_ptr.
* Fix dependency for em32relf.cNick Clifton2001-07-143-3/+9
|
* * configure.tgt (i386-*-netbsdelf*): New target.Matthew Green2001-07-142-1/+11
| | | | (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
* * emultempl/elf32.em (output_prev_sec_find): New.Jakub Jelinek2001-07-132-6/+44
| | | | (place_orphan): Use it.
* 2001-07-12 H.J. Lu <hjl@gnu.org>H.J. Lu2001-07-122-4/+9
| | | | | * ld-selective/selective.exp: Mark selective1, selective2, selective4 and selective5 xfail on alpha*-*.
* 2001-07-11 H.J. Lu <hjl@gnu.org>H.J. Lu2001-07-112-2/+6
| | | | * ldmain.c (main): Fix typos in the last change.
* 2001-07-11 Jakub Jelinek <jakub@redhat.com>Jakub Jelinek2001-07-112-0/+12
| | | | * ldmain.c (main): Disallow -F and -f without -shared.
* Check for the output_bfd not having any coff_data structure allocated to it.Nick Clifton2001-07-112-1/+6
|
* 2001-07-09 David O'Brien <obrien@FreeBSD.org>David O'Brien2001-07-102-0/+9
| | | | | | | | | | | * emultempl/elf32.em: Do not assuming that contents of the buffer returned from basename function will remain unchanged accross other function calls. NOTE: DJ Delorie recomends doing a basename()->lbasename() conversion. Approved by: DJ Delorie <200107100030.UAA01223@envy.delorie.com>
* 2001-07-03 H.J. Lu <hjl@gnu.org>H.J. Lu2001-07-032-10/+6
| | | | | * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on 2001-07-03. It creates dynamic entries even for static binaries.
OpenPOWER on IntegriCloud