summaryrefslogtreecommitdiff
path: root/ld
Commit message (Collapse)AuthorAgeFilesLines
* bfd/H.J. Lu2006-12-296-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.
* bfd/Kazu Hirata2006-12-242-0/+5
| | | | | | | | | | * config.bfd: Recognize fido. gas/ * configure.tgt: Recognize fido. ld/ * configure.tgt: Recognize fido.
* Commit missing pieces.Christopher Faylor2006-12-193-0/+156
|
* * pe-dll.c (pe_bfd_is_dll): New function.Christopher Faylor2006-12-185-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.
* * configure.tgt (NATIVE_LIB_DIRS): Specify for spu-*-elf*.Ben Elliston2006-12-152-0/+9
|
* 2006-12-13 Dave Brolley <brolley@redhat.com>Dave Brolley2006-12-132-2/+7
| | | | | * lib/ld-lib.exp (big_or_little_endian): Accept -meb and -mel for big and little endian respectively.
* bfd/Daniel Jacobowitz2006-12-123-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.
* * ldlang.c (print_output_section_statement): Print load addressAlan Modra2006-12-124-17/+20
| | | | | | when lma differs from vma. testsuite/ * ld-scripts/overlay-size-map.d: Update.
* bfd/Daniel Jacobowitz2006-12-116-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.
* bfd/H.J. Lu2006-12-075-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.
* * ld-alpha/tlspic.rd: Update for unused section removal.Alan Modra2006-12-0524-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.
* * ld-elfvsb/sh1.c (overriddenvar, shlib_overriddencall2,Alan Modra2006-12-054-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.
* bfd/Jan Beulich2006-12-047-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.
* * Makefile.am (EXTRA_DIST): Put spu_ovl.o in the emultemplIan Lance Taylor2006-11-283-2/+8
| | | | | subdirectory. * Makefile.in: Regenerate.
* bfd/Bob Wilson2006-11-272-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.
* * ld-elf/warn2.d: Match regex also for the second segment.Thiemo Seufer2006-11-232-1/+5
|
* opcodes/Daniel Jacobowitz2006-11-224-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.
* Add Irish translation for ld and Malay translation for gprofNick Clifton2006-11-224-2/+1922
|
* * elf-eh-frame.c (struct cie): New type.Jakub Jelinek2006-11-215-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-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-11-202-1/+5
| | | | * ld.texinfo: Fix a typo.
* * emulparams/elf32_spu.sh (OTHER_SECTIONS): Define.Alan Modra2006-11-202-0/+5
|
* * ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: Remove .stack.Daniel Jacobowitz2006-11-1310-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.
* bfd/Daniel Jacobowitz2006-11-132-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.
* ld/Alan Modra2006-11-084-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-07 Vladimir Prus <vladimir@codesourcery.com>Vladimir Prus2006-11-082-2/+7
| | | | | * testsuite/ld-elf/symbol2w.s: Use "%" instead of "@" to avoid breakage on ARM.
* 2006-11-06 Vladimir Prus <vladimir@codesourcery.com>Vladimir Prus2006-11-062-1/+6
| | | | | * testsuite/ld-elf/symbol1ref.s: Use ".dc.a" instead of ".long".
* * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):Vladimir Prus2006-11-066-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.
* * ld-cris/ldsym1.d: Adjust for semi-recent ld changes.Hans-Peter Nilsson2006-11-052-1/+5
|
* bfd/Daniel Jacobowitz2006-11-033-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.
* [ bfd/ChangeLog ]Thiemo Seufer2006-11-025-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.
* * pe-dll.c (autofilter_entry_type): Change name to const.Christopher Faylor2006-11-012-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.
* bfd/H.J. Lu2006-10-305-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.
* * ld-sh/sh64/abi32.xd, ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd,Kaz Kojima2006-10-3013-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.
* * pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.Christopher Faylor2006-10-292-4/+9
|
* bfd/Alan Modra2006-10-273-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-26 Joseph S. Myers <joseph@codesourcery.com>Joseph Myers2006-10-262-5/+25
| | | | | | Mark Mitchell <mark@codesourcery.com> * configure.tgt (arm*linux*): Support both big- and little-endian.
* 2006-10-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-10-263-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.
* New Cell SPU port.Alan Modra2006-10-2521-14/+930
|
* missed from last commitAlan Modra2006-10-251-10/+18
|
* * ld-powerpc/plt1.s: New.Alan Modra2006-10-245-1/+117
| | | | | | | * ld-powerpc/plt1.d: New. * ld-powerpc/relbrlt.s: New. * ld-powerpc/relbrlt.d: New. * ld-powerpc/powerpc.exp: Run them.
* * lexsup.c (parse_args): Add a comment noting a fall-through.Ben Elliston2006-10-242-0/+6
|
* 2006-10-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-10-234-2/+16
| | | | | | * configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h. * configure: Regenerated. * config.in: Likewise.
* * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don'tAlan Modra2006-10-232-12/+15
| | | | set section address on a relocatable link.
* * ld.texinfo (Output Section Discarding): Fix xref.Alan Modra2006-10-232-3/+7
|
* missed from 2006-10-19 commit.Alan Modra2006-10-231-3/+3
|
* * gas/sh/sh64/syntax-1.d: Update.Kaz Kojima2006-10-2219-732/+679
| | | | | | | | | | | * ld-sh/sh64/abi32.xd, ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd, * 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/crangerel1.rd, * ld-sh/sh64/crangerel2.rd, ld-sh/sh64/mix1.xd, * ld-sh/sh64/mix2.xd, ld-sh/sh64/rel32.xd, ld-sh/sh64/rel64.xd, * ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd, * ld-sh/sh64/shdl32.xd, ld-sh/sh64/shdl64.xd: Update.
* * emulparams/shelf32.sh: Set default stack to 0x80000.Kaz Kojima2006-10-223-2/+7
| | | | * emulparams/shelf64.sh: Likewise.
* * ld-sh/tlsbin-1.d: Update.Kaz Kojima2006-10-204-51/+57
| | | | | * ld-sh/tlspic-1.d: Likewise. * ld-sh/tlstpoff-1.d: Likewise.
* bfd/Richard Sandiford2006-10-204-35/+8
| | | | | | | | | | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make the size of .rel.dyn reflect the value of DT_RELSZ. ld/testsuite/ * ld-mips-elf/multi-got-1.d: Remove trailing R_MIPS_NONE entries. * ld-mips-elf/tls-multi-got-1.got: Likewise. * ld-mips-elf/tls-multi-got-1.r: Likewise.
* bfd/Richard Sandiford2006-10-2018-69/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Allocate a PT_NULL header for dynamic objects. (_bfd_mips_elf_modify_segment_map): Add it. ld/testsuite/ * ld-mips-elf/multi-got-1.d: Do not expect a particular address for DT_HASH. * ld-mips-elf/rel32-o32.d: Bump addresses by 0x20 to account for the extra program header. * ld-mips-elf/rel32-n32.d: Likewise. * ld-mips-elf/tlslib-o32.got: Likewise. * ld-mips-elf/tlslib-o32-hidden.got: Likewise. * ld-mips-elf/tlslib-o32-ver.got: Likewise. * ld-mips-elf/tls-multi-got-1.got: Likewise. * ld-mips-elf/tls-multi-got-1.r: Likewise. * ld-mips-elf/rel64.d: Bump addresses by 0x30 to account for the extra program header. * ld-mips-elf/tlsdyn-o32.d: Reduce the GOT offset by 32 to account for the extra program header, and thus the shorter gap between the text and data segments. * ld-mips-elf/tlsdyn-o32-1.d: Likewise. * ld-mips-elf/tlsdyn-o32-2.d: Likewise. * ld-mips-elf/tlsdyn-o32-3.d: Likewise. * ld-mips-elf/tlsdyn-o32.got: Bump GOT text addresses by 0x20 to account for the extra program header. * ld-mips-elf/tlsdyn-o32-1.got: Likewise. * ld-mips-elf/tlsdyn-o32-2.got: Likewise. * ld-mips-elf/tlsdyn-o32-3.got: Likewise.