aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2003-10-13[ld]Kaz Kojima44-806/+882
* emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine. [ld/testsuite] * ld-sh/rd-sh.exp (LDFLAGS): Define appropriately for each sh64/sh5 targets. * ld-sh/sh.exp: Don't do relaxing test for sh64*-*-* and sh5*-*-* targets. * ld-sh/sh64/relax.exp (emul32): Set to shelf32_nbsd for netbsd. * ld-sh/sh64/relfail.exp: Set parameters for netbsd. * ld-sh/sh64/sh64.exp: Skip this for netbsd. Trim the section numbers for crangerel1 and crengerel2 tests. * ld-sh/sh64/abi32.sd: Update. * ld-sh/sh64/abi32.xd: Likewise. * ld-sh/sh64/abi64.sd: Likewise. * ld-sh/sh64/abi64.xd: Likewise. * ld-sh/sh64/abixx-noexp.sd: Likewise. * ld-sh/sh64/cmpct1.sd: Likewise. * ld-sh/sh64/cmpct1.xd: Likewise. * ld-sh/sh64/crange1.rd: Likewise. * ld-sh/sh64/crange2.rd: Likewise. * ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise. * ld-sh/sh64/dlsection.sd: Likewise. * ld-sh/sh64/endian.sbd: Likewise. * ld-sh/sh64/endian.sld: Likewise. * ld-sh/sh64/gotplt.d: Likewise. * ld-sh/sh64/init-cmpct.d: Likewise. * ld-sh/sh64/init-media.d: Likewise. * ld-sh/sh64/init.s: Align functions. * ld-sh/sh64/init64.d: Update. * ld-sh/sh64/mix1-noexp.sd: Likewise. * ld-sh/sh64/mix1.sd: Likewise. * ld-sh/sh64/mix1.xd: Likewise. * ld-sh/sh64/mix2-noexp.sd: Likewise. * ld-sh/sh64/mix2.sd: Likewise. * ld-sh/sh64/mix2.xd:Likewise. * ld-sh/sh64/rel32.xd: Likewise. * ld-sh/sh64/rel64.xd: Likewise. * ld-sh/sh64/reldl32.rd: Likewise. * ld-sh/sh64/reldl64.rd: Likewise. * ld-sh/sh64/shdl32.xd: Update. * ld-sh/sh64/shdl64.sd: Likewise. * ld-sh/sh64/shdl64.xd: Likewise. * ld-sh/shared-1.d: Add -z nocombreloc to ld option. Update. * ld-sh/sub2l-1.d: Make file format match with elf32-sh.*. * ld-sh/weak1.d: Likewise.
2003-10-11 * ld-scripts/defined3.d, ld-scripts/defined3.t: New test.Hans-Peter Nilsson4-0/+46
* ld-scripts/defined.exp: Run defined3.
2003-10-08 * ld-scripts/defined2.d, ld-scripts/defined2.t: New test.Hans-Peter Nilsson4-0/+35
* ld-scripts/defined.exp: Run defined2.
2003-10-07 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.Dave Anglin4-2/+32
* ld-elfvsb/elfvsb.exp: xfail non-pic shared library tests for non 64-bit hppa*-*-linux* targets. * ld-elfvsb/main.c (main_visibility_check): Cast value returned by visibility_funptr () to a function pointer. * ld-shared/shared.exp: xfail shared (non PIC), shared (non PIC, load offset), and shared (PIC main, non PIC so) tests for non 64-bit hppa*-*-linux* targets.
2003-09-302003-09-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* ld-checks/checks.exp (section_check): Remove ia64-*-elf*.
2003-09-302003-09-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+6
* ld-checks/checks.exp (section_check): Skip ia64-*-* instead of ia64-*-linux*.
2003-09-302003-09-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu11-20/+35
* ld-ia64/ia64.exp: Remove -melf64_ia64. * ld-ia64/tlsbin.dd: Remove -melf64_ia64. Match elf..-ia64-.* instead of elf64-ia64-little. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlsbin.sd: Likewise. * ld-ia64/tlsbin.td: Likewise. * ld-ia64/tlsg.sd: Likewise. * ld-ia64/tlspic.dd: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-ia64/tlspic.sd: Likewise. * ld-ia64/tlspic.td: Likewise.
2003-09-30[ bfd/ChangeLog ]Chris Demetriou2-0/+8
2003-09-30 Chris Demetriou <cgd@broadcom.com> * archures.c (bfd_mach_mipsisa64r2): New define. * bfd-in2.h: Regenerate. * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2. * cpu-mips.c (I_mipsisa64r2): New enum value. (arch_info_struct): Add entry for I_mipsisa64r2. * elfxx-mips.c (_bfd_elf_mips_mach) (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2. (mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case. (mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2. [ binutils/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * readelf.c (get_machine_flags): Handle E_MIPS_ARCH_64R2. [ gas/Changelog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs. * configure: Regenerate. * config/tc-mips.c (imm2_expr): New variable. (md_assemble, mips16_ip): Initialize imm2_expr. (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2. (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands. (macro): Handle M_DEXT and M_DINS. (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands. (mips_ip): Likewise. (OPTION_MIPS64R2): New define. (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2). OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2. (md_parse_option): Handle OPTION_MIPS64R2. (s_mipsset): Handle setting "mips64r2" ISA. (mips_cpu_info_table): Add mips64r2. (md_show_usage): Document -mips64r2 option. * doc/as.texinfo: Docuemnt -mips64r2 option. * doc/c-mips.texi: Likewise. [ gas/testsuite/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * gas/mips/cp0-names-mips64r2.d: New file. * gas/mips/cp0sel-names-mips64r2.d: New file. * gas/mips/elf_arch_mips64r2.d: New file. * gas/mips/hwr-names-mips64r2.d: New file. * gas/mips/mips32r2-ill-fp64.l: New file. * gas/mips/mips32r2-ill-fp64.s: New file. * gas/mips/mips64r2-ill.l: New file. * gas/mips/mips64r2-ill.s: New file. * gas/mips/mips64r2.d: New file. * gas/mips/mips64r2.s: New file. * gas/mips/mips.exp: Define "mips64r2" arch, and run new tests. [ include/elf/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * mips.h (E_MIPS_ARCH_64R2): New define. [ include/opcode/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * mips.h: Document +E, +F, +G, +H, and +I operand types. Update documentation of I, +B and +C operand types. (INSN_ISA64R2, ISA_MIPS64R2, CPU_MIPS64R2): New defines. (M_DEXT, M_DINS): New enum values. [ ld/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * ldmain.c (get_emulation): Ignore "-mips64r2". [ ld/testsuite/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * ld-mips-elf/mips-elf-flags.exp: Add tests for combinations with MIPS64r2. [ opcodes/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * mips-dis.c (mips_arch_choices): Add entry for "mips64r2" (print_insn_args): Add handing for +E, +F, +G, and +H. * mips-opc.c (I65): New define for MIPS64r2. (mips_builtin_opcodes): Add "dext", "dextm", "dextu", "dins", "dinsm", "dinsu", "drotl", "drotr", "drotr32", "drotrv", "dsbh", and "dshd" for MIPS64r2. Adjust "dror", "dror32", and "drorv" to be supported on MIPS64r2.
2003-09-302003-09-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-19/+35
* lib/ld-lib.exp (proc is_elf64): New. * ld-scripts/phdrs.exp: Use is_elf_format and is_elf64.
2003-09-23o * ld-discard/exit.s: Correct .text.exit attributes.Alan Modra4-3/+9
* ld-discard/extern.s: Likewise. * ld-discard/static.s: Likewise.
2003-09-21 * ld-mips-elf/relax-jalr-n32.d: Fix little endian test failure.Thiemo Seufer5-4/+11
* 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-09-14 * ld-mmix/bpo-1.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d,Hans-Peter Nilsson26-44/+12
ld-mmix/bpo-14.d, ld-mmix/bpo-16.d, ld-mmix/bpo-17.d, ld-mmix/bpo-18.d, ld-mmix/bpo-19.d, ld-mmix/bpo-2.d, ld-mmix/bpo-22.d, ld-mmix/bpo-3.d, ld-mmix/bpo-4.d, ld-mmix/bpo-5.d, ld-mmix/bpo-6.d, ld-mmix/bpo-9.d, ld-mmix/greg-19.d, ld-mmix/loc1.d, ld-mmix/loc2.d, ld-mmix/loc3.d, ld-mmix/loc4.d, ld-mmix/loc6.d, ld-mmix/local12.d, ld-mmix/locdo-1.d, ld-mmix/loct-1.d, ld-mmix/locto-1.d: Adjust for objdump -d change.
2003-09-10 * ld-elf/merge2.s: New.Alan Modra3-0/+78
* ld-elf/merge2.d: New.
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.