aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
AgeCommit message (Collapse)AuthorFilesLines
2003-06-18 * lib/ld-lib.exp (default_ld_simple_link): Trim ld parms beforeAlan Modra1-2/+12
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 Modra1-2/+4
looking for gcc match. (default_ld_compile): Likewise for cc.
2003-05-29* ld-elf/elf.exp: Use if_elf_format.Jason Thorpe1-0/+1
* ld-elf/sec64k.exp: Likewise. * ld-elfcomm/elfcomm.exp: Likewise. * lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.
2003-05-162003-05-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+8
* 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-04-25 * lib/ld-lib.exp (big_or_little_endian): Also check for -mb and -ml.Joern Rennecke1-2/+2
2003-02-13bfd/Jakub Jelinek1-7/+21
* elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO. ld/testsuite/ * ld-shared/shared.exp: Run on s390*-*-linux* and x86_64-*-linux* too. xfail tests linking non-pic code into shared libs on x86_64-*-linux*. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvers/vers.exp: Likewise. Add vers24a, vers24b and vers24c tests. * ld-elfvers/vers3.ver: Allow VERS_2.0 to come before GLIBC_* version. * ld-elfvers/vers19.ver: Likewise. * ld-elfvers/vers24a.c: New test. * ld-elfvers/vers24b.c: New test. * ld-elfvers/vers24c.c: New test. * ld-elfvers/vers24.map: New test. * ld-elfvers/vers24.rd: New test. * lib/ld-lib.exp (run_ld_link_tests): Add optional 7th argument cflags. If source files have .c extension, compile them first.
2002-12-10* lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets.Jason Thorpe1-0/+13
2002-11-11 * ld-elf/sec64k.exp: New test.Hans-Peter Nilsson1-1/+5
* lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/" to a source file starting with "/".
2002-09-27bfd/Jakub Jelinek1-0/+130
* reloc.c: Add x86-64 TLS relocs. * bfd-in2.h, libbfd.h: Rebuilt. * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit relocs. Add TLS relocs. (x86_64_reloc_map): Add TLS relocs. (elf64_x86_64_info_to_howto): Adjust for added TLS relocs. (struct elf64_x86_64_link_hash_entry): Add tls_type field. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define. (elf64_x86_64_hash_entry): Define. (struct elf64_x86_64_obj_tdata): New. (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define. (struct elf64_x86_64_link_hash_table): Add tls_ld_got. (link_hash_newfunc): Initialize tls_type. (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got. (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary. (elf64_x86_64_mkobject): New. (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata. (elf64_x86_64_tls_transition): New. (elf64_x86_64_check_relocs): Add r_type variable and use it. Handle TLS relocs. (elf64_x86_64_gc_sweep_hook): Handle TLS relocs. (allocate_dynrelocs): Allocate GOT space for TLS relocs. (elf64_x86_64_size_dynamic_sections): Likewise. (dtpoff_base, tpoff): New. (elf64_x86_64_relocate_section): Handle TLS relocs. (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT entries. (bfd_elf64_mkobject): Define. * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set DF_STATIC_TLS if shared. gas/ * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add @tlsld. (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD, BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF. (tc_gen_reloc): Handle x86-64 TLS relocs. include/ * elf/x86-64.h: Add TLS relocs. ld/testsuite/ * lib/ld-lib.exp (run_ld_link_tests): Add. * ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff, file_contents): Remove. (sh64tests): Add 6th field to the tests array. * ld-i386/i386.exp (run_ld_link_tests): Remove. * ld-x86-64/x86-64.exp: New. * ld-x86-64/tlsbin.dd: New test. * ld-x86-64/tlsbinpic.s: New test. * ld-x86-64/tlsbin.rd: New test. * ld-x86-64/tlsbin.s: New test. * ld-x86-64/tlsbin.sd: New test. * ld-x86-64/tlsbin.td: New test. * ld-x86-64/tlslib.s: New test. * ld-x86-64/tlspic1.s: New test. * ld-x86-64/tlspic2.s: New test. * ld-x86-64/tlspic.dd: New test. * ld-x86-64/tlspic.rd: New test. * ld-x86-64/tlspic.sd: New test. * ld-x86-64/tlspic.td: New test.
2002-07-02 * lib/ld-lib.exp (default_ld_nm): Run nm with LC_ALL=C to ensureAlan Modra1-53/+68
consistent sorting. (run_dump_test): Likewise for objdump/nm/objcopy/readelf. * ld-sh/sh64/sh64.exp (run_ld_link_tests): Likewise.
2002-05-07 * lib/ld-lib.exp (run_dump_test): Add -L$srcdir/$subdir.Richard Sandiford1-1/+28
(is_elf_format): New, extracted from... * ld-scripts/weak.exp: ...here. * ld-scripts/overlay-size.exp: New test. * ld-scripts/overlay-size.[tsd], * ld-scripts/overlay-size-map.d: New files for it.
2002-01-31 * ld-scripts/crossref.exp: Allow foo to have a leading dot.Alan Modra1-1/+1
* ld-scripts/cross1.t: Add .opd. * ld-undefined/undefined.exp: Allow leading dot on sym names. * lib/ld-lib.exp (default_ld_nm): Strip leading dots from syms.
2001-10-14 * lib/ld-lib.exp (run_dump_test): Fix typo: asflags(), not asflags{}.Hans-Peter Nilsson1-1/+1
2001-09-15 * lib/ld-lib.exp (run_dump_test): Handle new optionHans-Peter Nilsson1-3/+43
"objcopy_linked_file". Return after failing, if errors were expected but none were found. (slurp_options): Support underscores in option names.
2001-07-24 * config/default.exp (ld_nm): Add "nmflags" arg.Alan Modra1-3/+3
* lib/ld-lib.exp (default_ld_nm): Likewise. * ld-empic/empic.exp: Adjust call to ld_nm. * ld-scripts/defined.exp: Likewise. * ld-scripts/script.exp: Likewise. * ld-scripts/sizeof.exp: Likewise. * ld-selective/selective.exp: Likewise. * ld-sh/sh.exp: Likewise.
2001-06-13 * config/default.exp (AS, GASP, OBJDUMP, NM, NMFLAGS, OBJCOPY,Hans-Peter Nilsson1-0/+491
OBJCOPYFLAGS, READELF, READELFFLAGS, LD, LDFLAGS): Provide default. * lib/ld-lib.exp (run_dump_test): Import from gas testsuite. Add new options "ld", "source", "xfail", "target", "notarget" and "error". Support the runtest_file_p "*.exp=testname" feature. (slurp_options, regexp_diff, file_contents, verbose_eval): Import from gas testsuite.
2001-03-13Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton1-0/+18
2001-03-012001-02-28 Matt Hiller <hiller@redhat.com>Matthew Hiller1-6/+30
* testsuite/ld-scripts/crossref.exp: Initialize flags to [big_or_little_endian]. * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags in ld invocations. * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB, -eb, EL and el. (is_endian_output_format): New function. (default_ld_link): Set flags to [big_or_little_endian] only if ld is being invoked such that the output format being used is of known endianness. (default_ld_simple_link): Ditto.
2000-06-052000-06-05 H.J. Lu (hjl@gnu.org)H.J. Lu1-3/+4
* lib/ld-lib.exp (default_ld_link): Redirect the linker output to link_output and make it global. * ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef", "hidden_undef_def", "hidden_weak", "protected_undef", "protected_undef_def" and "protected_weak". (visibility_run): Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise. * ld-elfvsb/elfvsb.dat: Updated.
2000-05-132000-05-13 H.J. Lu (hjl@gnu.org)H.J. Lu1-4/+5
* lib/ld-lib.exp (default_ld_link): Redirect the linker output to link_output and make it global. * ld-elfvsb/elf-offset.ld: New. ELF visibility fearture tests. * ld-elfvsb/elfvsb.dat: Likewise. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise.
2000-02-272000-02-27 H.J. Lu (hjl@gnu.org)H.J. Lu1-1/+2
* lib/ld-lib.exp (default_ld_link): Added "$LIBS" to libs.
1999-07-28Notice multlib switches.Nick Clifton1-6/+47
1999-06-041999-06-04 H.J. Lu <hjl@gnu.org>Ian Lance Taylor1-0/+4
* lib/ld-lib.exp (default_ld_nm): Clear nm_output first if necessary.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+327