aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
2007-08-23bfd/H.J. Lu6-180/+208
2007-08-23 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c: Include "bfd_stdint.h". (elf_i386_rtype_to_howto): New function. (elf_i386_info_to_howto_rel): Use it. (x86_64_opcode16): New union type. (elf_i386_check_tls_transition): New function. (elf_i386_tls_transition): Updated to check transition and issue an error if a transition isn't supported. (elf_i386_check_relocs): Return FALSE if elf_i386_tls_transition returns FALSE. (elf_i386_gc_sweep_hook): Likewise. (elf_i386_relocate_section): Likewise. Remove BFD_ASSERT on TLS transitions. * elf64-x86-64.c: Include "bfd_stdint.h". (x86_64_opcode16): New union type. (x86_64_opcode32): Likewise. (elf64_x86_64_check_tls_transition): New function. (elf64_x86_64_tls_transition): Updated to check transition and issue an error if a transition isn't supported. (elf64_x86_64_check_relocs): Return FALSE if elf64_x86_64_tls_transition returns FALSE. (elf64_x86_64_gc_sweep_hook): Likewise. (elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT on TLS transitions. ld/testsuite/ 2007-08-23 H.J. Lu <hongjiu.lu@intel.com> * ld-i386/tlsbinpic.s: Add a new GD -> IE test. * ld-i386/tlsgd1.s: Add a new GD -> LE test. * ld-i386/tlsbin.dd: Updated. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsgd1.dd: Likewise.
2007-08-18 * ld.texinfo (Input Section Basics): Correct EXCLUDE_FILE example.Alan Modra2-1/+5
2007-08-17 * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*.Jakub Jelinek9-8/+22
Change sparc64-*-linux-* to sparc64*-*-linux-*. * configure.host: Handle sparcv*-*-linux-* the same as sparc-*-linux-*. Change sparc64-*-linux-* to sparc64*-*-linux-*. * ld-sparc/tlssunnopic32.dd: Fix up #target. * ld-sparc/tlssunnopic32.rd: Likewise. * ld-sparc/tlssunnopic32.sd: Likewise. * ld-sparc/tlssunnopic64.dd: Likewise. * ld-sparc/tlssunnopic64.rd: Likewise. * ld-sparc/tlssunnopic64.sd: Likewise.
2007-08-17 * emultempl/alphaelf.em: Format option help.Alan Modra16-128/+174
* emultempl/armcoff.em: Likewise. * emultempl/armelf.em: Likewise. * emultempl/avrelf.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/ia64elf.em: Likewise. * emultempl/m68hc1xelf.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/scoreelf.em: Likewise. * emultempl/spuelf.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vxworks.em: Likewise. * emultempl/xtensaelf.em: Likewise.
2007-08-17 * ldexp.c (exp_get_vma, exp_get_fill): Canonicalise error messages.Alan Modra5-10/+22
* lexsup.c (ld_options): Don't use tabs in help text. * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Fix typo. * emultempl/pe.em (gld${EMULATION_NAME}_finish): Fix typo.
2007-08-17ld/testsuite/Richard Sandiford3-1/+11
* lib/ld-lib.exp (run_dump_test): Allow [big_or_little_endian] to appear in assembler and linker options. * ld-mips-elf/vxworks1-static.d (ld): Add [big_or_little_endian].
2007-08-17 * po/Make-in: Add --msgid-bugs-address to xgettext invocation.Alan Modra2-0/+5
2007-08-16 * ld-srec/srec.exp: Always pass "-G 0". Remove all powerpcAlan Modra2-7/+8
xfails.
2007-08-15 PR 4923Alan Modra2-33/+38
* emultempl/elf32.em (after_open): Return immediately when non-ELF output.
2007-08-14bfd/H.J. Lu11-0/+134
2007-08-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/4918 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32 on ___tls_get_addr for GD->LE/LD->LE transitions when not building shared library. * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions when not building shared library. ld/testsuite/ 2007-08-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/4918 * ld-i386/i386.exp (i386tests): Add tlsgd1 and tlsld1 tests. * ld-x86-64/x86-64.exp (x86_64tests): Likewise. * ld-i386/tlsgd1.dd: New file. * ld-i386/tlsgd1.s: Likewise. * ld-i386/tlsld1.dd: Likewise. * ld-i386/tlsld1.s: Likewise. * ld-x86-64/tlsgd1.dd: Likewise. * ld-x86-64/tlsgd1.s: Likewise. * ld-x86-64/tlsld1.dd: Likewise. * ld-x86-64/tlsld1.s: Likewise.
2007-08-13bfd/Richard Sandiford11-56/+96
* elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes. (mips_elf_record_global_got_symbol): Increment local_gotno for each forced-local symbol. (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to mips_elf_record_global_got_symbol for VxWorks too. (_bfd_mips_elf_always_size_sections): Set computed_got_sizes to true after computing the GOT size. (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever got.offset == 1. Only adjust global_gotno if computed_got_sizes. For VxWorks, add a local entry when hiding a symbol that needs a plt but has not been marked as needing a global got entry. (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to false. ld/testsuite/ * ld-mips-elf/vxworks-forced-local-1.d, * ld-mips-elf/vxworks-forced-local-1.s, * ld-mips-elf/vxworks-forced-local-1.ver: New test. * ld-mips-elf/mips-elf.exp: Run it. * ld-mips-elf/tlsdyn-o32-2.d: Adjust for removal of unnecessary local GOT entry. * ld-mips-elf/tlsdyn-o32-2.got: Likewise. * ld-mips-elf/tlsdyn-o32-3.d: Likewise. * ld-mips-elf/tlsdyn-o32-3.got: Likewise. * ld-mips-elf/vxworks1-lib.dd: Likewise. * ld-mips-elf/vxworks1-lib.rd: Likewise.
2007-08-13bfd/Alan Modra14-55/+61
* elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define. Update stub comments. (build_plt_stub): Build two variants, one without "addis". (ppc_build_one_stub): Build stubs without "addis" if possible. (ppc_size_one_stub): Size new stubs. ld/testsuite/ * ld-powerpc/relbrlt.s (.text.pad2): Adjust space. * ld-powerpc/relbrlt.d: Update. * ld-powerpc/tlsexe.d: Update. * ld-powerpc/tlsexe.g: Update. * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.d: Update. * ld-powerpc/tlsexetoc.g: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsso.d: Update. * ld-powerpc/tlsso.g: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.d: Update. * ld-powerpc/tlstocso.g: Update.
2007-08-12 * configure.in (ALL_LINGUAS): Add fi.Daniel Jacobowitz4-2/+2002
* po/fi.po: New file. * configure: Regenerated.
2007-08-10Add a marker for the 2.18 features.Nick Clifton2-0/+6
2007-08-10Updated Finnish, Irish and Vietnamese translationsNick Clifton3-1053/+1238
2007-08-10Mention PR ld/4877.H.J. Lu1-0/+1
2007-08-102007-08-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-6/+12
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
2007-08-102007-08-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-8/+18
PR ld/4875 * elf-hints-local.h: Include bfd_stdint.h. Use uint32_t instead of u_int32_t. * sha1.h: Include bfd_stdint.h instead of <stdint.h>.
2007-08-09 PR 4515Alan Modra54-69/+119
* genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR. * ldint.texinfo: Likewise. * emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete. * emulparams/armaoutl.sh: Likewise. * emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete. * emulparams/bfin.sh: Likewise * emulparams/crisaout.sh: Likewise * emulparams/elf32_sparc.sh: Likewise * emulparams/elf32am33lin.sh: Likewise * emulparams/elf32b4300.sh: Likewise * emulparams/elf32bmip.sh: Likewise * emulparams/elf32mcore.sh: Likewise * emulparams/elf32xtensa.sh: Likewise * emulparams/elf64_s390.sh: Likewise * emulparams/elf64_sparc.sh: Likewise * emulparams/elf64alpha.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_i386_vxworks.sh: Likewise * emulparams/elf_s390.sh: Likewise * emulparams/elf_x86_64.sh: Likewise * emulparams/i386aout.sh: Likewise * emulparams/i386moss.sh: Likewise * emulparams/i386msdos.sh: Likewise * emulparams/i386nto.sh: Likewise * emulparams/i386nw.sh: Likewise * emulparams/m68kaout.sh: Likewise * emulparams/m68kelf.sh: Likewise * emulparams/ppcnw.sh: Likewise * emulparams/sun4.sh: Likewise * emulparams/tic80coff.sh: Likewise * emulparams/vaxnbsd.sh: Likewise * emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete. (TEXT_START_ADDR): Set for -n, -N. * emulparams/coff_sparc.sh: Likewise * emulparams/elf32vax.sh: Likewise * emulparams/i386bsd.sh: Likewise * emulparams/i386go32.sh: Likewise * emulparams/i386linux.sh: Likewise * emulparams/i386lynx.sh: Likewise * emulparams/i386mach.sh: Likewise * emulparams/m68k4knbsd.sh: Likewise * emulparams/m68klinux.sh: Likewise * emulparams/m68knbsd.sh: Likewise * emulparams/ns32knbsd.sh: Likewise * emulparams/pc532macha.sh: Likewise * emulparams/ppclynx.sh: Likewise * emulparams/scoreelf.sh: Likewise * emulparams/sparcaout.sh: Likewise * emulparams/sparclinux.sh: Likewise * emulparams/sun3.sh: Likewise * emulparams/vsta.sh: Likewise
2007-08-07* configure.tgt: Add bfin-*rtems*.Nick Clifton2-0/+8
2007-08-06* ld-pe/pe.exp: Special diff file for x86_64-mingw target.Nick Clifton3-1/+41
* ld-pe/secrel_64.d: New.
2007-08-06* emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.Nick Clifton3-14/+20
(gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of shared objects. * pe-dll.c: (autofilter_symbollist_i386): Define set for amd64 mingw target.
2007-08-03 * ld-srec/srec.exp: XFAIL for powerpc*-*-*.Daniel Jacobowitz2-2/+7
2007-08-01 * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d,Adam Nemet6-0/+33
ld-mips-elf/reloc-5.s, ld-mips-elf/reloc-5.d: New tests. * ld-mips-elf/mips-elf.exp: Invoke them.
2007-08-01ga.po: Updated Irish translation.Nick Clifton2-424/+444
2007-08-01Correct ChangeLog entries.H.J. Lu1-1/+1
2007-07-29ld/Alan Modra5-3/+24
* ldlang.c (lang_insert_orphan): When searching through linker script to place an orphan, don't stop on statements that appear outside of SECTIONS. * emultempl/elf32.em (output_rel_find): Prefer read-only alloc sections over read/write alloc sections. ld/testsuite/ * ld-elf/weak-dyn-1.rd: Adjust.
2007-07-27 * scripttempl/elf.sc: Add .note.gnu.build-id.Jakub Jelinek2-0/+5
2007-07-25 * ld-cdtest/cdtest-foo.cc (strncpy): Fix parameter name.Daniel Jacobowitz2-1/+5
2007-07-25PR 4824Nick Clifton2-1/+11
* ld.texinfo (Options): Extend the description of the -O command line option.
2007-07-252007-06-29 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+33
* ld-arm/arm-elf.exp (armelftests): Add callweak. * ld-arm/callweak.d: New test. * ld-arm/callweak.s: New test.
2007-07-24* pep.sc: Correct ctor/dtor sentinels for 64-bit targets.Nick Clifton2-2/+6
2007-07-24* ld-arm/arm-elf.exp: Move EABI attribute tests into EABI only section.Nick Clifton2-9/+14
2007-07-23Remove unnecessary symbols from last commit.Richard Sandiford2-2/+1
2007-07-23bfd/Richard Sandiford6-0/+46
* elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type of weakdef->root.type if weakdef has no regular definition. ld/testsuite/ * ld-elf/weak-dyn-1a.s, ld-elf/weak-dyn-1b.s, ld-elf/weak-dyn-1.ld, * ld-elf/weak-dyn-1.rd: New test. * ld-elf/elf.exp: Run it.
2007-07-21* sha1.h: Change to use version 3 of the GNU General Public License and tidy ↵Nick Clifton3-112/+125
up formatting. * sha1.c: Likewise.
2007-07-19.Roland McGrath1-0/+48
2007-07-192007-07-19 Roland McGrath <roland@redhat.com>Roland McGrath43-203/+227
* genscripts.sh (source_em, fragment): New sh functions. Truncate e${EMULATION_NAME}.c file before .em script fills it. Use source_em in place of . for the .em script. * emultempl/generic.em: Use fragment and source_em functions. * emultempl/aix.em: Likewise. * emultempl/alphaelf.em: Likewise. * emultempl/armcoff.em: Likewise. * emultempl/armelf.em: Likewise. * emultempl/avrelf.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/cr16elf.em: Likewise. * emultempl/crxelf.em: Likewise. * emultempl/elf-generic.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/genelf.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/ia64elf.em: Likewise. * emultempl/irix.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68hc1xelf.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/m68kelf.em: Likewise. * emultempl/mipsecoff.em: Likewise. * emultempl/mipself.em: Likewise. * emultempl/mmix-elfnmmo.em: Likewise. * emultempl/mmixelf.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/needrelax.em: Likewise. * emultempl/netbsd.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/scoreelf.em: Likewise. * emultempl/sh64elf.em: Likewise. * emultempl/spuelf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/vxworks.em: Likewise. * emultempl/xtensaelf.em: Likewise. * emultempl/z80.em: Likewise.
2007-07-18.Roland McGrath1-0/+6
2007-07-182007-07-18 Roland McGrath <roland@redhat.com>Roland McGrath1-8/+9
* emultempl/elf32.em (gld${EMULATION_NAME}_write_build_id_section): Use ASEC->contents for CONTENTS when missing, and allocate ASEC->size if needed.
2007-07-13.Roland McGrath1-0/+15
2007-07-132007-07-13 Roland McGrath <roland@redhat.com>Roland McGrath4-17/+522
* sha1.h: New file (from gnulib). * sha1.c: New file (from gnulib). * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add them. (sha1.o): New target. * Makefile.in: Regenerated.
2007-07-132007-07-13 Roland McGrath <roland@redhat.com>Roland McGrath2-16/+188
* emultempl/elf32.em (struct build_id_info): New type. (gld${EMULATION_NAME}_id_note_section_size): New function. (gld${EMULATION_NAME}_write_build_id_section): New function. (gld${EMULATION_NAME}_after_open): Use them. (DEFAULT_BUILD_ID_STYLE): Change to "sha1". * ld.texinfo (Options): Mention --build-id=sha1.
2007-07-13 * ld-scripts/assert.t: Tweak to avoid relying on empty's VMA beingNathan Sidwell2-2/+7
zero.
2007-07-13 * ldlang.c (strip_excluded_output_sections): Don't ignore sectionsAlan Modra2-1/+7
with update_dot_tree.
2007-07-12 * scripttempl/pe.sc: Don't include .gcc_except_table andNathan Sidwell3-4/+10
.eh_frame on partial links. * scripttempl/pep.sc: Likewise.
2007-07-12 PR 4782Alan Modra2-4/+9
* ldlang.c (lang_size_sections_1 <output_section_statement>): Only use expld.result when valid.
2007-07-11 * emultempl/spuelf.em (embedded_spu_file): Test for NULL pathAlan Modra2-12/+17
before calling base_name, not after.
2007-07-102007-07-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu12-0/+46
* ld-elfvers/vers.exp: Add tests for --defsym. * ld-elfvers/vers32.map: Likewise. * ld-elfvers/vers32a.c: Likewise. * ld-elfvers/vers32a.dsym: Likewise. * ld-elfvers/vers32a.ver: Likewise. * ld-elfvers/vers32b.c: Likewise. * ld-elfvers/vers32b.dsym: Likewise. * ld-elfvers/vers32b.ver: Likewise. * ld-elfvers/vers32c.dsym: Likewise. * ld-elfvers/vers32c.ver: Likewise. * ld-elfvers/vers32d.ver: Likewise.
2007-07-10 * scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE. AddAlan Modra6-10/+19
.gnu.debuglink. * scripttempl/armbpabi.sc: Likewise. * scripttempl/elf32sh-symbian.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/mep.sc: Likewise.