aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb
AgeCommit message (Collapse)AuthorFilesLines
2003-10-07 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.Dave Anglin2-2/+13
* 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-07-29 * ld-elfvsb/elf-offset.ld: Add .rel.toc, .rela.toc and .tocJakub Jelinek1-0/+3
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-06-10 * ld-elfvsb/elfvsb.exp: Run for powerpc64 too.Alan Modra1-1/+1
* 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-05-20bfd/H.J. Lu4-0/+80
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. Lu1-12/+4
* 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-13Run on sh[34]*-*-linux*.Nick Clifton1-0/+1
2003-05-09 * ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frameMartin Schwidefsky2-0/+14
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-07 * ld-elfvsb/elfvsb.exp: Run dump tests even when crossAndreas Schwab1-3/+3
compiling.
2003-05-05bfd/H.J. Lu2-0/+62
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.
2003-04-28bfd/H.J. Lu5-1/+177
2003-04-27 H.J. Lu <hjl@gnu.org> * elf-bfd.h (ELF_LINK_DYNAMIC_DEF): New. (ELF_LINK_DYNAMIC_WEAK): New. * elflink.h (elf_merge_symbol): Add one argument to indicate if a symbol should be skipped. Ignore definitions in dynamic objects for symbols with non-default visibility. (elf_add_default_symbol): Adjusted. (elf_link_add_object_symbols): Check if a symbol should be skipped. Don't merge the visibility field with the one from a dynamic object. (elf_link_check_versioned_symbol): Use undef_bfd. (elf_link_output_extsym): Warn if a forced local symbol is referenced from dynamic objects. Make non-weak undefined symbol with non-default visibility a fatal error. ld/testsuite/ 2003-04-27 H.J. Lu <hjl@gnu.org> * ld-elfvsb/elfvsb.dat: Updated. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise.
2003-02-13bfd/Jakub Jelinek1-2/+7
* 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-11-09 * ld-elfvsb/define.s: Avoid use of @ in .type directive.Alan Modra1-3/+3
2002-07-30 * ld-discard/discard.exp, ld-scripts/phdrs.exp, ld-scripts/phdrs2.exp,Alan Modra1-1/+3
ld-selective/sel-dump.exp: Test hppa*64*-*-hpux* target. * ld-elfvers/vers.exp, ld-elfvsb/elfvsb.exp, ld-elfweak/elfweak.exp, ld-linkonce/linkonce.exp, ld-shared/shared.exp, ld-undefined/weak-undef.exp: Test hppa*64*-*-hpux* and hppa*-*-linux* targets. * ld-discard/exit.s, ld-discard/extern.s, ld-discard/start.s, ld-discard/static.s: Add whitespace before assembler directives.
2002-04-19 * ld-elfvsb/elfvsb.exp: Mirror ia64 non-pic xfails for alpha.Richard Henderson1-0/+8
* ld-shared/shared.exp: Likewise. * ld-selective/selective.exp: Disable for alpha. * ld-undefined/undefined.exp: Add alpha to dwarf2 xfails.
2002-02-182002-02-18 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
* ld-elfvsb/sh1.c: Fix typo in last change.
2002-02-182002-02-17 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-5/+6
* ld-elfvsb/sh1.c: Use #pragma weak.
2001-11-192001-11-19 H.J. Lu <hjl@gnu.org>H.J. Lu7-6/+10
* ld-elfvsb/define.s: Mark all global lables as object. * ld-elfvsb/hidden0.d: Match large section number. * ld-elfvsb/hidden1.d: Likewise. * ld-elfvsb/internal0.d: Likewise. * ld-elfvsb/internal1.d: Likewise. * ld-elfvsb/protected0.d: Likewise. * ld-elfvsb/protected1.d: Likewise. * ld-elfvsb/hidden0.d: Change NOTYPE to OBJECT. * ld-elfvsb/internal0.d: Likewise. * ld-elfvsb/protected0.d: Likewise.
2001-11-022001-11-02 H.J. Lu <hjl@gnu.org>H.J. Lu9-0/+73
* ld-elfvsb/elfvsb.exp: Add the "ld -r" test. * ld-elfvsb/hidden0.d: New. * ld-elfvsb/hidden1.d: New. * ld-elfvsb/internal0.d: New. * ld-elfvsb/internal1.d: New. * ld-elfvsb/protected0.d: New. * ld-elfvsb/protected1.d: New. * ld-elfvsb/undef.s: New. * ld-elfvsb/undef.s: New.
2001-06-062001-06-06 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+2
* ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3 on Linux/mips. * ld-elfvers/vers.exp: Also run on istarget Linux/mips. * ld-elfvsb/elfvsb.exp: Likewise. * ld-shared/shared.exp: Likewise. * ld-selective/selective.exp: Mark selective2, selective3, selective4 and selective5 xfail on Linux/mips. * ld-shared/main.c: Skip invalid -Bsymbolic tests on Linux/mips. * symbolic.dat: Remove invalid -Bsymbolic tests on Linux/mips. * ld-srec/srec.exp: Add Linux/mips to xfail.
2001-03-13Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton1-1/+1
2001-02-152001-02-14 H.J. Lu <hjl@gnu.org>H.J. Lu1-5/+15
* ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3 for -static on ia64. * ld-checks/checks.exp: Don't run on ia64-*-elf* nor ia64-*-linux*. * ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*. * ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*. Set up expected failures for ia64-*-linux*. * ld-shared/shared.exp: Likewise.
2001-01-032001-01-03 Philip Blundell <pb@futuretv.com>Phil Blundell1-0/+1
* ld-elfvsb/elfvsb.exp: Run test on Linux/Alpha. * ld-shared/shared.exp: Likewise.
2001-01-012001-01-01 Philip Blundell <philb@gnu.org>Phil Blundell1-1/+2
* ld-elfvers/vers.exp: Run test on Linux/ARM. * ld-elfvsb/elfvsb.exp: Likewise. * ld-shared/shared.exp: Likewise.
2000-11-06Fix compilation warnings as otherwise we fail the test.Alan Modra1-3/+2
2000-10-192000-10-19 H.J. Lu (hjl@gnu.org)H.J. Lu1-0/+16
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failures for Linux/PPC. * ld-shared/shared.exp: Likewise.
2000-07-242000-07-24 H.J. Lu (hjl@gnu.org)H.J. Lu1-7/+7
* ld-elfvsb/elfvsb.exp: Add -g to $CC to get the location of the undefined reference.
2000-07-162000-07-16 H.J. Lu (hjl@gnu.org)H.J. Lu2-5/+45
* ld-elfvsb/elfvsb.exp (support_protected): New variable. Check and set to "yes" if the protected visibility is expected to pass. (visibility_run): Set expected to fail for the "protected" and "protected_undef_def" tests only if $support_protected is "no". * ld-elfvsb/main.c (PROTECTED_CHECK): Check for the protected visibility support if defined.
2000-07-152000-07-15 H.J. Lu (hjl@gnu.org)H.J. Lu3-7/+16
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure for "protected_undef_def". * ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when PROTECTED_WEAK_TEST is defined. Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is defined. Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined. * ld-elfvsb/sh1.c (visibility): Mark protected only if PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST is defined. (visibility_var): Likewise.
2000-06-052000-06-05 H.J. Lu (hjl@gnu.org)H.J. Lu5-8/+211
* 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-212000-05-21 H.J. Lu (hjl@gnu.org)H.J. Lu1-1/+7
* ld-elfvsb/main.c (main_visibility_check): Fix the protected visibility test.
2000-05-132000-05-13 H.J. Lu (hjl@gnu.org)H.J. Lu6-0/+818
* 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.