aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2003-08-16 * ld-mmix/bpo-9.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d: Adjust forHans-Peter Nilsson4-3/+5
recent objdump "Contents of ..." change.
2003-08-02 * elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.Kaz Kojima4-0/+42
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
2003-08-02Adjust for objdump -d change.Alan Modra10-10/+12
2003-07-29 * ld-elfvsb/elf-offset.ld: Add .rel.toc, .rela.toc and .tocJakub Jelinek2-0/+8
sections. --- ld/testsuite/ld-elfvsb/elf-offset.ld.jj 2003-05-19 17:12:47.000000000 -0400 +++ ld/testsuite/ld-elfvsb/elf-offset.ld 2003-07-29 05:39:34.000000000 -0400 @@ -46,6 +46,8 @@ SECTIONS } .rel.got : { *(.rel.got) } .rela.got : { *(.rela.got) } + .rel.toc : { *(.rel.toc) } + .rela.toc : { *(.rela.toc) } .rel.ctors : { *(.rel.ctors) } .rela.ctors : { *(.rela.ctors) } .rel.dtors : { *(.rel.dtors) } @@ -111,6 +113,7 @@ SECTIONS KEEP (*(.dtors)) } .got : { *(.got.plt) *(.got) } + .toc : { *(.toc) } .dynamic : { *(.dynamic) } /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so
2003-07-29 * ld-powerpc/tlsso.r: Update.Alan Modra3-4/+9
* ld-powerpc/tlstocso.r: Update.
2003-07-29Update expected output regexps to include .eh_frame section.Nick Clifton10-321/+340
2003-07-26Update tests for corrected section attributes and objdump change.Alan Modra3-0/+13
2003-07-252003-07-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu5-4/+11
* ld-powerpc/tlsexe.r: .sbss is NOBITS, not PROGBITS. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.r: Likewise.
2003-07-23 * ld-srec/srec.exp: For m6811/m6812 use --defsym to define _.z softStephane Carrez2-1/+6
register.
2003-07-222003-07-22 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+15
* ld-selective/selective.exp: Skip "ia64-*-*". * ld-srec/srec.exp: Make xfail on "ia64-*-*".
2003-07-11bfd/Richard Sandiford5-0/+103
* bfd-in.h (bfd_h8300_pad_address): Declare. * bfd-in2.h: Regenerate. * cpu-h8300.c (bfd_h8300_pad_address): New function. * coff-h8300.c (h8300_reloc16_estimate): Use it to canonicalize addresses before checking whether they can be relaxed. (h8300_reloc16_extra_cases): Likewise for the R_MOVL2 sanity check. Don't complain about overflows in general 8-bit relocations. * elf32-h8300.c (elf32_h8_relax_section): Use bfd_h8300_pad_address. Fix handling of R_H8_DIR24A8. ld/testsuite/ * ld-h8300/relax-3{.s,.d,-coff.d}: New test. * ld-h8300/h8300.exp: Run it.
2003-07-10 * ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.Alan Modra7-169/+175
* ld-powerpc/tlsexetoc.g: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlstoc.g: Update. * ld-powerpc/tlstocso.g: Update. * ld-powerpc/tlstocso.r: Update.
2003-07-04* elf32-h8300.c (R_H8_DIR32A16): Fix name field.Nick Clifton5-9/+35
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation. <R_H8_DIR32A16>: Fix type of relocation. * ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d unconditionally. Run relax-2.d for *-elf targets. * ld-h8300/relax.d: Fix typo. * ld-h8300/relax.s: Add 0x prefixes. * ld-h8300/relad-2.[sd]: New test.
2003-06-28 * ld-mips-elf/mips-elf.exp: Use is_elf_format.Thiemo Seufer2-53/+53
2003-06-28 * ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6.Thiemo Seufer2-1/+5
2003-06-25 * ld-powerpc/apuinfo.rd: Update.Alan Modra2-2/+6
2003-06-21 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): RemoveThiemo Seufer3-207/+212
special handling for n32 ABI. (macro): Likewise. * gas/mips/elf-rel-got-n32.d: Remove special handling for n32 ABI. * gas/mips/elf-rel-xgot-n32.d: Likewise. * gas/mips/jal-newabi.d: Likewise. * ld-mips-elf/elf-rel-got-n32.d: Remove special handling for n32 ABI. * ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
2003-06-18 * ld-cris/locref1.d, ld-cris/locref1.s, ld-cris/locref2.d,Hans-Peter Nilsson5-0/+57
ld-cris/locref2.s: New tests.
2003-06-18 * ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plainHans-Peter Nilsson2-2/+8
readelf as found using default path.
2003-06-18 * lib/ld-lib.exp (default_ld_simple_link): Trim ld parms beforeAlan Modra2-2/+16
trying to trim ld path. (default_ld_compile): Likewise for cc.
2003-06-17 * lib/ld-lib.exp (default_ld_simple_link): Trim ld path beforeAlan Modra2-2/+10
looking for gcc match. (default_ld_compile): Likewise for cc.
2003-06-17* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.Nick Clifton2-4/+4
* configure.host (*-*-freebsd*): Add known path for ld-elf.so.1 if not produced by gcc.
2003-06-16 * ld-powerpc/tlsexetoc.d: Update.Alan Modra6-30/+38
* ld-powerpc/tlsso.d: Update. * ld-powerpc/tlstoc.d: Update. * ld-powerpc/tlstocso.d: Update. * ld-powerpc/tlstocso.r: Update.
2003-06-16 * ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.Hans-Peter Nilsson4-1/+9
* ld-cris/noglob1.d: Ditto. * ld-cris/badgotr1.d: Pass --underscore to gas.
2003-06-12 * ld-mips-elf/elf-rel-got-n64-linux.d: New file.Thiemo Seufer4-2/+781
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file. * ld-mips-elf/mips-elf.exp: Use the new files for Linux.
2003-06-11 * ld-mips-elf/relax-jalr.s: Fix testsuite breakage.Thiemo Seufer6-3/+16
* ld-mips-elf/relax-jalr-n32.d: Likewise. * ld-mips-elf/relax-jalr-n32-shared.d: Likewise. * ld-mips-elf/relax-jalr-n64.d: Likewise. * ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
2003-06-11 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME): Use .MIPS.optionsThiemo Seufer3-8200/+8204
for n32, too. (MIPS_ELF_STUB_SECTION_NAME): Use .MIPS.stubs for n32, too. (mips_elf_rel_dyn_section): Use appropriate section alignment. (mips_elf_create_got_section): Likewise. (_bfd_mips_elf_create_dynamic_sections): Likewise. * ld-mips-elf/multi-got-1.d: Adjust addresses. * ld-mips-elf/rel32-n32.d: Likewise.
2003-06-11 * ld-srec/srec.exp (run_srec_test): Remove powerpc64 xfails, andAlan Modra2-17/+18
xfail for hppa duplicated elsewhere.
2003-06-10 * gas/mips/mips.exp: Fix typo.Thiemo Seufer4-3/+9
* gas/mips/elempic.d: Force o64 ABI. * gas/mips/telempic.d: Likewise. * ld-mips-elf/rel32-n32.d: Force big endian assembly. * ld-mips-elf/rel32-o32.d: Likewise. * ld-mips-elf/rel64.d: Likewise.
2003-06-10 * ld-elfvsb/elfvsb.exp: Run for powerpc64 too.Alan Modra16-530/+552
* ld-powerpc/tls.t: Update. * ld-powerpc/tlsexe.d: Update. * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.d: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsexetoc.t: Update. * ld-powerpc/tlsso.d: Update. * ld-powerpc/tlsso.g: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlsso.t: Update. * ld-powerpc/tlstocso.d: Update. * ld-powerpc/tlstocso.g: Update. * ld-powerpc/tlstocso.r: Update. * ld-powerpc/tlstocso.t: Update.
2003-06-03bfd/H.J. Lu4-3/+9
2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * elflink.h (elf_link_input_bfd): Call linker error_handler for discarded definitions. include/ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New. ld/ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * ldmisc.c: Include "bfdlink.h". (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION and -LD_DEFINITION_IN_DISCARDED_SECTION. * Makefile.am: Rebuild dependency. * Makefile.in: Regenerated. ld/testsuite/ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * ld-discard/extern.d: Updated. * ld-discard/start.d: Likewise. * ld-discard/static.d: Likewise.
2003-06-032003-06-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-11/+29
* ld-elfcomm/elfcomm.exp: Mark tests untested if compiler is not available.
2003-06-02Add new test for cygwin target: building an executable with an export table.Nick Clifton6-0/+200
2003-05-30ld/H.J. Lu2-0/+12
2003-05-30 H.J. Lu <hongjiu.lu@intel.com> * genscripts.sh: Create tmpdir/libpath.exp. ld/testsuite/ 2003-05-30 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp: Load tmpdir/libpath.exp. (gcc_ld_flag): Set from $libpath.
2003-05-29* ld-elf/elf.exp: Use if_elf_format.Jason Thorpe5-28/+11
* ld-elf/sec64k.exp: Likewise. * ld-elfcomm/elfcomm.exp: Likewise. * lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.
2003-05-25* ld-mips-elf/mips-elf.exp: Make all NetBSD targets match as elf.Jason Thorpe2-1/+5
2003-05-20bfd/H.J. Lu5-0/+92
2003-05-20 Jakub Jelinek <jakub@redhat.com> * elflink.h (elf_link_output_extsym): Only issue error about != STV_DEFAULT symbols if they are bfd_link_hash_undefined. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF when removing the old definition for symbols with non-default visibility. ld/testsuite/ 2003-05-20 Jakub Jelinek <jakub@redhat.com> * ld-elfvsb/common.c: New file. * ld-elfvsb/elfvsb.exp: Add common. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * ld-elfvsb/sh3.c: New file. * ld-elfvsb/test.c: Likewise. * ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
2003-05-162003-05-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu7-37/+65
* config/default.exp (gcc_ld_flag): New. Make the newly built linker available to gcc. * lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag to gcc. * ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared libraries. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfweak/elfweak.exp: Likewise. * ld-shared/shared.exp: Likewise. * ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared libraries. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvsb/elfvsb.exp: Remove xfail for powerpc-*-linux*. * ld-elfweak/elfweak.exp: Use PIC for shared libraries.
2003-05-13 * ld-m68hc11/link-hcs12.d: New test.Stephane Carrez4-0/+43
* ld-m68hc11/link-hcs12.s: New file. * ld-m68hc11/link-hc12.s: New file.
2003-05-132003-05-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+6
* ld-elfweak/elfweak.exp: Fix typo.
2003-05-13Run on sh[34]*-*-linux*.Nick Clifton4-5/+14
2003-05-12 * ld-mmix/b-fixo2.d, ld-mmix/bpo-18.d, ld-mmix/bpo-18m.d,Hans-Peter Nilsson23-44/+55
ld-mmix/loc4.d, ld-mmix/loc4m.d, ld-mmix/loc6.d, ld-mmix/loc6m.d, ld-mmix/locdo-1.d, ld-mmix/sec-1.d, ld-mmix/sec-2.d, ld-mmix/sec-3.d, ld-mmix/sec-4.d, ld-mmix/sec-5.d, ld-mmix/sec-7m.d, ld-mmix/sec-8m.d, ld-mmix/spec802.d, ld-mmix/spec803.d, ld-mmix/spec804.d, ld-mmix/spec805.d, ld-mmix/spec806.d, ld-mmix/spec807.d, ld-mmix/spec808.d: Tweak for objdump no longer truncating dump addresses.
2003-05-09 * ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frameMartin Schwidefsky7-2/+34
to linker script. * ld-elfvsb/elfvsb.exp (visibility_run): Add setup_xfails for s390x. * ld-selective/selective.exp: Disable for s390 and s390x. * ld-shared/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame to linker script. * ld-shared/shared.exp (shared_test): Add setup_xfails for s390x. * ld-undefined/undefined.exp (checkund): Remove setup_xfail for s390x.
2003-05-082003-05-08 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-0/+14
* ld-elfvers/vers.exp: Add vers27d4 and vers27d5 to test versioned reference for hidden symbol. * ld-elfvers/vers27d4.dsym: New file. * ld-elfvers/vers27d4.ver: Likewise.
2003-05-082003-05-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+17
* ld-elfvers/vers27d3.c (__start): New. (start): New.
2003-05-082003-05-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu8-4/+60
* ld-elfvers/vers.exp (build_binary): Support build exeutable. (build_binary): Renamed from ... (build_vers_lib): This. (build_vers_lib_no_pic): Updated. (build_vers_lib_pic): Likewise. Add vers27d1, vers27d2 and vers27d3 to test versioned definition for hidden symbol referenced by a DSO. * ld-elfvers/vers27d.dsym: New file. * ld-elfvers/vers27d.sym: Likewise. * ld-elfvers/vers27d.ver: Likewise. * ld-elfvers/vers27d1.c: Likewise. * ld-elfvers/vers27d2.c: Likewise. * ld-elfvers/vers27d3.c: Likewise.
2003-05-07 * ld-elfvsb/elfvsb.exp: Run dump tests even when crossAndreas Schwab2-3/+8
compiling.
2003-05-07* config/default.exp (gcc_gas_flags): Force ABI to n32 onAlexandre Oliva4-28/+61
mips64-linux. * ld-elf/merge.d: Xfail on mips64*-linux-gnu*. * ld-mips-elf/mips-elf-flags.exp (ldemul): Set to o32-compatible on mips-sgi-irix6*, mips64-linux-gnu and mips64el-linux-gnu. (good_combination, bad_combination): Use it. Add -32 or -mabi=o64 wherever the ABI was formerly implied.
2003-05-062003-05-06 H.J. Lu <hjl@gnu.org>H.J. Lu12-1/+31
* ld-elfvers/vers.exp (objdump_versionstuff): Support comment in expected version file. * ld-elfvers/vers25b.c: Add a line of comment. * ld-elfvers/vers25b.dsym: Likwise. * ld-elfvers/vers25b.ver: Likwise. * ld-elfvers/vers26b.dsym: Likwise. * ld-elfvers/vers26b.ver: Likwise. * ld-elfvers/vers27b.dsym: Likwise. * ld-elfvers/vers27b.ver: Likwise. * ld-elfvers/vers27c.c: Likwise. * ld-elfvers/vers27c.dsym: Likwise. * ld-elfvers/vers27c.ver: Likwise.
2003-05-05bfd/H.J. Lu3-0/+67
2003-05-04 H.J. Lu <hjl@gnu.org> * elf32-i386.c (allocate_dynrelocs): Don't allocate dynamic relocation entries for weak undefined symbols with non-default visibility. (elf_i386_relocate_section): Initialize the GOT entries and skip R_386_32/R_386_PC32 for weak undefined symbols with non-default visibility. * elfxx-ia64.c (allocate_fptr): Don't allocate function descriptors for weak undefined symbols with non-default visibility. (allocate_dynrel_entries): Don't allocate relocation entries for symbols resolved to 0. (set_got_entry): Don't install dynamic relocation for weak undefined symbols with non-default visibility. (set_pltoff_entry): Likewise. * elflink.h (elf_fix_symbol_flags): Hide weak undefined symbols with non-default visibility. (elf_link_output_extsym): Don't make weak undefined symbols with non-default visibility dynamic. ld/testsuite/ 2003-05-04 H.J. Lu <hjl@gnu.org> * ld-elfvsb/main.c: Updated. * ld-elfvsb/sh1.c: Likewise.