aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
2007-01-09Move 2006 ChangeLog entries to ChangeLog-2006.H.J. Lu2-1278/+1286
2007-01-09Move 2006 ChangeLog entries to ChangeLog-2006.H.J. Lu2-1357/+1365
2007-01-08Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.Nick Clifton9-10/+25
2007-01-08* configure.host: Add i[3-7]86-*-mingw* case.Nick Clifton2-0/+10
2007-01-08* pep-dll.h (pep_bfd_is_dll): Add prototype.Nick Clifton2-0/+5
2007-01-08PR ld/3843Nick Clifton2-0/+9
* configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and tdir_elf_i386_fbsd.
2007-01-06ld/Nathan Sidwell7-3/+67
* ldexp.c (fold_name): Issue error on undefined sections. ld/testsuite/ * ld-scripts/expr.exp: New. * ld-scripts/expr1.s: New. * ld-scripts/expr1.d: New. * ld-scripts/expr1.t: New.
2007-01-02 * pe-dll.c: Include pe-dll.h.Alan Modra3-0/+7
* pep-dll.c (pe_bfd_is_dll): Define.
2006-12-29bfd/H.J. Lu6-0/+95
2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_link_add_object_symbols): Remember the symbol size only if it is defined. ld/testsuite/ 2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/wrap.exp: New file. * ld-elf/wrap1.c: Likewise. * ld-elf/wrap1.out: Likewise. * ld-elf/wrap1a.c: Likewise. * ld-elf/wrap1b.c: Likewise.
2006-12-24bfd/Kazu Hirata2-0/+5
* config.bfd: Recognize fido. gas/ * configure.tgt: Recognize fido. ld/ * configure.tgt: Recognize fido.
2006-12-19Commit missing pieces.Christopher Faylor3-0/+156
2006-12-18* pe-dll.c (pe_bfd_is_dll): New function.Christopher Faylor5-13/+26
* pe-dll.h (pe_bfd_is_dll): Declare. * emultempl/pe.em (gld_${EMULATION_NAME}_recognized_file): Recognize dlls using pe_bfd_is_dll instead of using the filename extension.
2006-12-15 * configure.tgt (NATIVE_LIB_DIRS): Specify for spu-*-elf*.Ben Elliston2-0/+9
2006-12-132006-12-13 Dave Brolley <brolley@redhat.com>Dave Brolley2-2/+7
* lib/ld-lib.exp (big_or_little_endian): Accept -meb and -mel for big and little endian respectively.
2006-12-12bfd/Daniel Jacobowitz3-9/+14
* doc/Makefile.am (bfd_TEXINFOS): Set. (bfd.info bfd.dvi bfd.html): Delete rule. * doc/Makefile.in: Regenerated. gas/ * doc/Makefile.am (as_TEXINFOS): Set. (as.info as.dvi as.html): Delete rule. * doc/Makefile.in: Regenerated. gprof/ * Makefile.am (gprof_TEXINFOS): Set. (gprof.info gprof.dvi gprof.html): Delete rule. * Makefile.in: Regenerated. ld/ * Makefile.am (ld_TEXINFOS): Set. (ld.info ld.dvi ld.html): Delete rule. * Makefile.in: Regenerated.
2006-12-12 * ldlang.c (print_output_section_statement): Print load addressAlan Modra4-17/+20
when lma differs from vma. testsuite/ * ld-scripts/overlay-size-map.d: Update.
2006-12-11bfd/Daniel Jacobowitz6-27/+67
* configure.in: Define GENINSRC_NEVER. * doc/Makefile.am (bfd.info): Remove srcdir prefix. (MAINTAINERCLEANFILES): Add info file. (DISTCLEANFILES): Pretend to add info file. * po/Make-in (.po.gmo): Put gmo files in objdir. * configure, Makefile.in, doc/Makefile.in: Regenerated. binutils/ * configure.in: Define GENINSRC_NEVER. * doc/Makefile.am (MAINTAINERCLEANFILES): Add info file. (DISTCLEANFILES): Pretend to add info file. * po/Make-in (.po.gmo): Put gmo files in objdir. * configure, Makefile.in, doc/Makefile.in: Regenerated. gas/ * configure.in: Define GENINSRC_NEVER. * doc/Makefile.am (as.info): Remove srcdir prefix. (MAINTAINERCLEANFILES): Add info file. (DISTCLEANFILES): Pretend to add info file. * po/Make-in (.po.gmo): Put gmo files in objdir. * configure, Makefile.in, doc/Makefile.in: Regenerated. gprof/ * configure.in: Define GENINSRC_NEVER. * doc/Makefile.am (gprof.info): Remove srcdir prefix. (MAINTAINERCLEANFILES): Add info file. (DISTCLEANFILES): Pretend to add info file. * po/Make-in (.po.gmo): Put gmo files in objdir. * configure, Makefile.in: Regenerated. ld/ * configure.in: Define GENINSRC_NEVER. * doc/Makefile.am (ld.info): Remove srcdir prefix. (MAINTAINERCLEANFILES): Add info file. (DISTCLEANFILES): Pretend to add info file. * po/Make-in (.po.gmo): Put gmo files in objdir. * configure, Makefile.in: Regenerated. opcodes/ * po/Make-in (.po.gmo): Put gmo files in objdir.
2006-12-07bfd/H.J. Lu5-0/+35
2006-12-07 H.J. Lu <hjl@gnu.org> PR ld/3666 * elflink.c (elf_link_add_object_symbols): Keep symbol visibility for symbols from discarded section. ld/testsuite/ 2006-12-07 H.J. Lu <hjl@gnu.org> PR ld/3666 * ld-elf/group3a.d: New file. * ld-elf/group3a.s: Likewise. * ld-elf/group3b.d: Likewise. * ld-elf/group3b.s: Likewise.
2006-12-05 * ld-alpha/tlspic.rd: Update for unused section removal.Alan Modra24-37/+59
* ld-frv/fdpic-shared-6.d: Likewise. * ld-frv/tls-dynamic-1.d: Update for symbol changes. * ld-frv/tls-dynamic-2.d: Likewise. * ld-frv/tls-dynamic-3.d: Likewise. * ld-frv/tls-initial-shared-2.d: Likewise. * ld-frv/tls-pie-1.d: Likewise. * ld-frv/tls-pie-3.d: Likewise. * ld-frv/tls-relax-dynamic-1.d: Likewise. * ld-frv/tls-relax-dynamic-2.d: Likewise. * ld-frv/tls-relax-dynamic-3.d: Likewise. * ld-frv/tls-relax-initial-shared-2.d: Likewise. * ld-frv/tls-relax-pie-1.d: Likewise. * ld-frv/tls-relax-pie-3.d: Likewise. * ld-frv/tls-relax-shared-1.d: Likewise. * ld-frv/tls-relax-shared-2.d: Likewise. * ld-frv/tls-relax-shared-3.d: Likewise. * ld-frv/tls-relax-static-3.d: Likewise. * ld-frv/tls-shared-1.d: Likewise. * ld-frv/tls-shared-2.d: Likewise. * ld-frv/tls-shared-3.d: Likewise. * ld-frv/tls-static-1.d: Likewise. * ld-frv/tls-static-3.d: Likewise.
2006-12-05 * ld-elfvsb/sh1.c (overriddenvar, shlib_overriddencall2,Alan Modra4-4/+42
shared_data): If !SHARED, move to... * ld-elfvsb/sh2.c: ... here. * ld-elfvsb/elfvsb.exp: Add -DSHARED to compiler options when building with $picflag.
2006-12-04bfd/Jan Beulich7-10/+81
2006-12-04 Jan Beulich <jbeulich@novell.com> * elflink.c (_bfd_elf_link_create_dynamic_sections): Don't create .eh_frame_hdr section from here anymore. (bfd_elf_size_dynamic_sections): Call _bfd_elf_maybe_strip_eh_frame_hdr a little earlier. ld/ 2006-12-04 Jan Beulich <jbeulich@novell.com> * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Create .eh_frame_hdr section here. ld/testsuite/ 2006-12-04 Jan Beulich <jbeulich@novell.com> * ld-elf/eh-frame-hdr.d: New. * ld-elf/eh-frame-hdr.s: New. * ld-ia64/tlsbin.dd, ld-ia64/tlsbin.sd: Don't depend on exact linkage table layout.
2006-11-28 * Makefile.am (EXTRA_DIST): Put spu_ovl.o in the emultemplIan Lance Taylor3-2/+8
subdirectory. * Makefile.in: Regenerate.
2006-11-27bfd/Bob Wilson2-30/+199
* elf32-xtensa.c (elf_xtensa_special_sections): Add .xtensa.info. gas/ * config/tc-xtensa.c (XSHAL_ABI): Add default definition. (directive_state): Disable scheduling by default. (xtensa_add_config_info): New. (xtensa_end): Call xtensa_add_config_info. gas/testsuite/ * gas/elf/section2.e-xtensa: New file. * gas/elf/elf.exp: Use it. include/ * xtensa-config.h (XSHAL_ABI): New. (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New. ld/ * emultempl/xtensaelf.em (XSHAL_ABI): Add default definition. (replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags. Delete redundant code to set sections flags and alignment. (xt_config_info_unpack_and_check, check_xtensa_info): New. (elf_xtensa_after_open): Iterate over input statements instead of link_info.input_bfds. (elf_xtensa_before_allocation): Likewise. Call check_xtensa_info for each input, and write a new .xtensa.info section in the output.
2006-11-23 * ld-elf/warn2.d: Match regex also for the second segment.Thiemo Seufer2-1/+5
2006-11-22opcodes/Daniel Jacobowitz4-10/+16
* arm-dis.c (last_is_thumb): Delete. (enum map_type, last_type): New. (print_insn_data): New. (get_sym_code_type): Take MAP_TYPE argument. Check the type of the right symbol. Handle $d. (print_insn): Check for mapping symbols even without a normal symbol. Adjust searching. If $d is found see how much data to print. Handle data. gas/ * config/tc-arm.h (md_cons_align): Define. (mapping_state): New prototype. * config/tc-arm.c (mapping_state): Make global. gas/testsuite/ * gas/arm/arm7t.d, gas/arm/neon-ldst-rm.d, gas/arm/thumb2_pool.d, gas/arm/tls.d: Update for $d support. * gas/arm/mapshort.d, gas/arm/mapshort.s: New test. * gas/elf/section2.e-armeabi: Update. * gas/elf/section2.e-armelf: New file. * gas/elf/elf.exp: Use it. ld/testsuite/ * ld-arm/mixed-app.d, ld-arm/tls-app.d, ld-arm/tls-lib.d: Update for $d support.
2006-11-22Add Irish translation for ld and Malay translation for gprofNick Clifton4-2/+1922
2006-11-21 * elf-eh-frame.c (struct cie): New type.Jakub Jelinek5-0/+253
(cie_compare): Removed. (cie_eq, cie_hash, cie_compute_hash): New functions. (_bfd_elf_discard_section_eh_frame): Rewrite not to rely on FDEs pointing only to last CIE and allow merging of any duplicate CIEs, not just duplicate consecutive CIEs. (_bfd_elf_discard_section_eh_frame_hdr): Delete cies hash table. * elf-bfd.h (struct cie_header, struct cie): Removed. (struct eh_frame_sec_info): Remove alloced field. (struct eh_frame_hdr_info): Remove last_cie, last_cie_sec and last_cie_inf fields. Add cies field. * ld-elf/eh5.d: New test. * ld-elf/eh5.s: New file. * ld-elf/eh5a.s: New file. * ld-elf/eh5b.s: New file.
2006-11-202006-11-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* ld.texinfo: Fix a typo.
2006-11-20 * emulparams/elf32_spu.sh (OTHER_SECTIONS): Define.Alan Modra2-0/+5
2006-11-13 * ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: Remove .stack.Daniel Jacobowitz10-46/+43
* ld-arm/armthumb-lib.d, ld-arm/mixed-app.d, ld-arm/mixed-lib.d: Allow smaller section gap. * ld-arm/armthumb-lib.sym, ld-arm/mixed-lib.sym: Reorder. Remove _stack. * ld-arm/mixed-app.sym: Remove _stack. * ld-arm/tls-app.d: Update start address.
2006-11-13bfd/Daniel Jacobowitz2-12/+18
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update prototype. (bfd_elf32_arm_set_byteswap_code): New prototype. * bfd-in2.h: Regenerate. * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Don't take byteswap_code as an argument. Revert 2006-11-01 change. (bfd_elf32_arm_set_byteswap_code): New. (elf32_arm_size_dynamic_sections): Call bfd_elf32_arm_process_before_allocation. ld/ * emultempl/armelf.em (arm_elf_before_allocation): Only call bfd_elf32_arm_process_before_allocation if no dynamic sections.
2006-11-08ld/Alan Modra4-9/+25
* emultempl/elf32.em (gld*_before_allocation): Adjust output section size for warning sections. ld/testsuite/ * ld-elf/group.ld: Handle .rodata.brlt for powerpc64.
2006-11-082006-11-07 Vladimir Prus <vladimir@codesourcery.com>Vladimir Prus2-2/+7
* testsuite/ld-elf/symbol2w.s: Use "%" instead of "@" to avoid breakage on ARM.
2006-11-062006-11-06 Vladimir Prus <vladimir@codesourcery.com>Vladimir Prus2-1/+6
* testsuite/ld-elf/symbol1ref.s: Use ".dc.a" instead of ".long".
2006-11-06 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):Vladimir Prus6-7/+38
Don't prepend "warning" to the message. * testsuite/ld-elf/warn2.d: New. * testsuite/ld-elf/symbol2w.s: New. * testsuite/ld-elf/symbol2ref.s: New.
2006-11-05 * ld-cris/ldsym1.d: Adjust for semi-recent ld changes.Hans-Peter Nilsson2-1/+5
2006-11-03bfd/Daniel Jacobowitz3-0/+23
* libbfd-in.h (_bfd_clear_contents): New prototype. * reloc.c (_bfd_clear_contents): New. * libbfd.h: Regenerated. * elf32-arm.c (elf32_arm_final_link_relocate): Use _bfd_clear_contents. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. * elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to zero for discarded symbols. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. ld/testsuite/ * ld-discard/zero-rel.d, ld-discard/zero-rel.s: New files.
2006-11-02 [ bfd/ChangeLog ]Thiemo Seufer5-0/+2883
* elf-bfd.h (local_call_stubs): New member. * elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros. (mips_elf_calculate_relocation): Handle local mips16 call stubs. (mips16_stub_section_p): Rename from mips_elf_stub_section_p, use the new stub macros. (_bfd_mips_elf_check_relocs): Handle call stubs for code which mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark used stubs with SEC_KEEP. Use the new stub macros. [ gas/testsuite/ChangeLog ] * gas/mips/mips16-intermix.d, gas/mips/mips16-intermix.s: New testcase. * gas/mips/mips.exp: Run new testcase. [ ld/testsuite/ChangeLog ] * ld-mips-elf/mips16-intermix-1.s, ld-mips-elf/mips16-intermix-2.s, ld-mips-elf/mips16-intermix.d: New testcase. * ld-mips-elf/mips-elf.exp (mips16_intermix_test): Run new testcases.
2006-11-01* pe-dll.c (autofilter_entry_type): Change name to const.Christopher Faylor2-21/+45
(pe_details_type) : Change target_name, object_target and autofilter_symbollist to const. (autofilter_symbollist_generic): Change to const. (autofilter_symbollist_i386, pe_detail_list, pe_details, autofilter_liblist, autofilter_objlist autofilter_symbolprefixlist, autofilter_symbolsuffixlist): Likewise. (is_import): Fix indentation. (auto_export): Change afptr to const. Move name declaration to beginning of scope. (make_tail): Clear undefined byte. (jmp_ix86_bytes, jmp_sh_bytes, jmp_mips_bytes, jmp_arm_bytes): Change to const. (make_one): Change jmp_bytes to const. Make idata$6 member size arithmetic explicit and add comment.
2006-10-30bfd/H.J. Lu5-11/+17
2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * elf-bfd.h (elf_obj_tdata): Add symbuf. (_bfd_elf_section_already_linked): Add struct bfd_link_info *. (_bfd_elf_check_kept_section): Likewise. (bfd_elf_match_symbols_in_sections): Likewise. * elf.c (assign_section_numbers): Updated to add struct bfd_link_info *. (bfd_elf_match_symbols_in_sections): Updated. Cache symbol buffer if info->reduce_memory_overheads is false. * elflink.c (match_group_member): Updated to add struct bfd_link_info *. (_bfd_elf_check_kept_section): Likewise. (elf_link_input_bfd): Likewise. (_bfd_elf_section_already_linked): Likewise. (bfd_elf_final_link): Free symbol buffer if info->reduce_memory_overheads is false. * libbfd-in.h (_bfd_nolink_section_already_linked): Add struct bfd_link_info *. (_bfd_generic_section_already_linked): Likewise. * libbfd.h: Regenerated. * linker.c (bfd_section_already_linked): Add struct bfd_link_info *. (_bfd_generic_section_already_linked): Likewise. * targets.c (bfd_target): Add struct bfd_link_info * to _section_already_linked. * bfd-in2.h: Regenerated. include/ 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * bfdlink.h (bfd_link_info): Add reduce_memory_overheads. ld/ 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * ld.h (args_type): Remove reduce_memory_overheads. * ldlang.c (lang_map): Updated. (section_already_linked): Likewise. (print_input_section): Likewise. * ldmain.c (main): Likewise. * lexsup.c (parse_args): Likewise.
2006-10-30 * ld-sh/sh64/abi32.xd, ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd,Kaz Kojima13-48/+57
* ld-sh/sh64/crange1.rd, ld-sh/sh64/crange2.rd, * ld-sh/sh64/crange3-cmpct.rd, ld-sh/sh64/crange3-media.rd, * ld-sh/sh64/crange3.rd, ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.xd, * ld-sh/sh64/shdl32.xd, ld-sh/sh64/shdl64.xd: Update for removal of empty sections.
2006-10-29* pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.Christopher Faylor2-4/+9
2006-10-27bfd/Alan Modra3-5/+14
* section.c (SEC_KEEP): Update comment. * bfd-in2.h: Regenerate. * elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections. * merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections. * stabs.c (_bfd_discard_section_stabs): Likewise. (_bfd_link_section_stabs): Likewise. Simplify abs_section check. ld/ * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP sections have been discarded. (lang_do_version_exports_section): Set SEC_KEEP on export section. * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning sections.
2006-10-262006-10-26 Joseph S. Myers <joseph@codesourcery.com>Joseph Myers2-5/+25
Mark Mitchell <mark@codesourcery.com> * configure.tgt (arm*linux*): Support both big- and little-endian.
2006-10-262006-10-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-3/+12
* emulparams/hppa64linux.sh (LARGE_SECTIONS): Renamed to ... (OTHER_BSS_SECTIONS): This. * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Support LARGE_SECTIONS. (LARGE_SECTIONS): Move .lbss sections to OTHER_BSS_SECTIONS.
2006-10-25New Cell SPU port.Alan Modra21-14/+930
2006-10-25missed from last commitAlan Modra1-10/+18
2006-10-24 * ld-powerpc/plt1.s: New.Alan Modra5-1/+117
* ld-powerpc/plt1.d: New. * ld-powerpc/relbrlt.s: New. * ld-powerpc/relbrlt.d: New. * ld-powerpc/powerpc.exp: Run them.
2006-10-24 * lexsup.c (parse_args): Add a comment noting a fall-through.Ben Elliston2-0/+6
2006-10-232006-10-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-2/+16
* configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h. * configure: Regenerated. * config.in: Likewise.