aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers
AgeCommit message (Collapse)AuthorFilesLines
2009-09-23Tolerate some whitespace differences in readelf output.Alan Modra1-2/+2
2009-09-02update copyright datesAlan Modra1-2/+2
2009-04-29[ld/ChangeLog]Chris Demetriou1-0/+4
2009-04-29 Chris Demetriou <cgd@google.com> * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC. (ld_options): Likewise. (parse_args): Likewise. * ld.texinfo: Document --no-export-dynamic. * NEWS: Mention --no-export-dynamic. [ld/testsuite/ChangeLog] 2009-04-29 Chris Demetriou <cgd@google.com> * ld-elfvers/vers.exp (vers4b): New test to verify that --no-export-dynamic undoes --export-dynamic.
2008-01-28* ld-elfvers/vers.exp (test_ar): Sort the expected output so thatNick Clifton1-1/+1
it has matches the ordering of the obtained output.
2007-07-102007-07-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu11-0/+31
* 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-06Update sources to GPLv3Nick Clifton1-6/+9
2006-06-06 * ld-elfvers/vers.exp (objdump_versionstuff): Allow versions inAlan Modra27-88/+77
any order. * ld-elfvers/vers1.ver: Update. * ld-elfvers/vers2.ver: Update. * ld-elfvers/vers4a.ver: Update. * ld-elfvers/vers7a.ver: Update. * ld-elfvers/vers8.ver: Update. * ld-elfvers/vers9.ver: Update. * ld-elfvers/vers15.ver: Update. * ld-elfvers/vers16a.ver: Update. * ld-elfvers/vers17.ver: Update. * ld-elfvers/vers18.ver: Update. * ld-elfvers/vers20.ver: Update. * ld-elfvers/vers20a.ver: Update. * ld-elfvers/vers21.ver: Update. * ld-elfvers/vers22a.ver: Update. * ld-elfvers/vers22b.ver: Update. * ld-elfvers/vers23a.ver: Update. * ld-elfvers/vers23b.ver: Update. * ld-elfvers/vers23c.ver: Update. * ld-elfvers/vers25a.ver: Update. * ld-elfvers/vers26a.ver: Update. * ld-elfvers/vers27a.ver: Update. * ld-elfvers/vers27d.ver: Update. * ld-elfvers/vers28b.ver: Update. * ld-elfvers/vers29.ver: Update. * ld-elfvers/vers30.ver: Update. * ld-elfvers/vers31.ver: Update.
2006-04-302006-04-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-19/+51
* ld-elfvers/vers.exp: Xfail vers7a, vers7, vers23a, vers23b, vers23c, vers23d, vers23, vers25a, vers25b1, vers25b2, vers27a, vers27b, vers27c1, vers27c2, vers27d4 and vers27d5 if PIC is required.
2005-10-13 * ld.texino: Describe double-quoted string syntax for versionMark Mitchell5-0/+19
nodes. * ldlang.h (lang_new_vers_pattern): Add literal_p parameter. * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER. Adjust calls to lang_new_vers_pattern to pass literal_p argument. * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match version nodes without a pattern. (lang_new_vers_pattern): Add literal_p parameter. (lang_do_version_exports_section): Pass it. * ld-elfvers/vers.exp: Add vers31. * ld-elfvers/vers31.c: New file. * ld-elfvers/vers31.dsym: Likewise. * ld-elfvers/vers31.map: Likewise. * ld-elfvers/vers31.ver: Likewise.
2005-08-17 * ldgram.y (vers_defns): Don't lose pattern list beforeJakub Jelinek5-0/+26
extern NAME {}. Handle global, local and extern symbol names. ld/testsuite/ * ld-elfvers/vers.exp: Add a new test, vers30. * ld-elfvers/vers30.c: New file. * ld-elfvers/vers30.map: New file. * ld-elfvers/vers30.ver: New file. * ld-elfvers/vers30.dsym: New file.
2005-05-12Update FSF addressesNick Clifton1-1/+1
2005-03-03update copyright datesAlan Modra1-1/+2
2005-02-14gas/Jan Beulich1-6/+14
2005-02-13 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn. (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default indicator. (ia64_init): Set md.detect_dv. (ia64_start_line): New static variable warned. Warn only once when encountering explicit stops in automatic mode. * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx. * NEWS: Mention new default mode. gas/testsuite/ 2005-02-13 Jan Beulich <jbeulich@novell.com> * gas/ia64/label.l: Adjust line numbers. * gas/ia64/label.s: Add .explicit. * gas/ia64/nop_x.s: Likewise. * gas/ia64/opc-a.d: Add assembler option -xnone. * gas/ia64/opc-b.d: Likewise. * gas/ia64/opc-f.d: Likewise. * gas/ia64/opc-i.d: Likewise. * gas/ia64/opc-m.d: Likewise. * gas/ia64/opc-x.d: Likewise. * gas/ia64/pseudo.d: Likewise. * gas/ia64/regs.d: Likewise. * gas/ia64/tls.d: Likewise. * gas/ia64/unwind-err.l: Adjust line numbers. * gas/ia64/unwind-err.s: Remove explicit stops. ld/testsuite/ 2005-02-13 Jan Beulich <jbeulich@novell.com> * ld-elfvers/vers.exp (as_options): New. Set to -x for ia64. (build_binary): Pass as_options to ld_assemble. (test_ldfail): Likewise. (build_exec): Likewise. Pass as_options to run_ld_link_tests. * ld-ia64/tlsbin.s: Add .explicit. * ld-ia64/tlsbinpic.s: Likewise. * ld-ia64/tlspic1.s: Likewise.
2004-10-26Missed from previous commit.Paul Brook3-0/+9
ld/testsuite/ * ld-elfvers/vers29.c: New file. * ld-elfvers/vers29.dsym: New file. * ld-elfvers/vers29.ver: New file.
2004-10-26bfd/Paul Brook1-5/+12
* elflink.c (elf_finalize_dynstr): Skip shared aux structure. (bfd_elf_size_dynamic_sections): Create default version definition. (elf_link_output_extsym): Adjust for default symbol version. include/ * bfdlink.h (struct bfd_link_info): Add create_default_symver. ld/ * ld.texinfo: Document --default-symver. * ldmain.c (main): Set link_info.create_default_symver. * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER. (ld_options): Add default-symver. (parse_args): Handle OPTION_DEFAULT_SYMVER. ld/testsuite/ * ld-elfvers/vers.exp (build_binary): Add ldargs parameter. (build_vers_lib_pic_flags): New function. Add vers29 test. * ld-elfvers/vers29.c: New file. * ld-elfvers/vers29.dsym: New file. * ld-elfvers/vers29.ver: New file.
2004-06-242004-06-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-17/+17
* ld-elfvers/vers.exp: Use PIC for shared libraries by default.
2004-03-192004-03-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu11-0/+35
* ld-elfvers/vers.exp: Add new tests for versioned weak definition. * ld-elfvers/vers28a.c: New file. * ld-elfvers/vers28a.dsym: Likewise. * ld-elfvers/vers28a.ver: Likewise. * ld-elfvers/vers28b.c: Likewise. * ld-elfvers/vers28b.dsym: Likewise. * ld-elfvers/vers28b.map: Likewise. * ld-elfvers/vers28b.ver: Likewise. * ld-elfvers/vers28c.c: Likewise. * ld-elfvers/vers28c.dsym: Likewise. * ld-elfvers/vers28c.ver: Likewise.
2003-10-232003-10-23 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-1/+1
* ld-elfvers/vers.exp (test_ldfail): Add "-Wl," to pass the linker option from gcc.
2003-05-162003-05-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-5/+3
* 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-082003-05-08 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+6
* 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. Lu1-2/+12
* ld-elfvers/vers27d3.c (__start): New. (start): New.
2003-05-082003-05-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu7-4/+43
* 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-062003-05-06 H.J. Lu <hjl@gnu.org>H.J. Lu11-1/+15
* 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-8/+3
2003-05-04 H.J. Lu <hjl@gnu.org> * elflink.h (elf_merge_symbol): Correctly handle weak definiton. ld/testsuite/ 2003-05-04 H.J. Lu <hjl@gnu.org> * ld-elfvers/vers18.dsym: Updated for weak definiton change. * ld-elfvers/vers18.ver: Likewise. * ld-elfvers/vers19.ver: Likewise. * ld-elfweak/elfweak.exp: Remove xfail.
2003-05-032003-05-03 H.J. Lu <hjl@gnu.org>H.J. Lu11-0/+20
* ld-elfvers/vers.exp: Add vers27a, vers27b, vers27c1 and vers27c2 to test versioned definition vs. hidden definition in different files. * ld-elfvers/vers27a.c: New file. * ld-elfvers/vers27a.dsym: Likewise. * ld-elfvers/vers27a.map: Likewise. * ld-elfvers/vers27a.ver: Likewise. * ld-elfvers/vers27b.c: Likewise. * ld-elfvers/vers27b.dsym: New empty file. * ld-elfvers/vers27b.ver: Likwise. * ld-elfvers/vers27c.c: Likwise. * ld-elfvers/vers27c.dsym: Likwise. * ld-elfvers/vers27c.ver: Likwise.
2003-05-02 * ld-elfvers/vers.exp (build_exec): Disable vers26b3 on x86-64-linux.Andreas Jaeger1-2/+7
2003-04-28bfd/H.J. Lu8-21/+82
2003-04-28 H.J. Lu <hjl@gnu.org> * elflink.h (elf_merge_symbol): Call elf_backend_copy_indirect_symbol to copy any information related to dynamic linking when we flip the indirection. ld/testsuite/ 2003-04-28 H.J. Lu <hjl@gnu.org> * ld-elfvers/vers.exp (picflag): Set PIC flag for compiler. (build_vers_lib): Support PIC. (build_vers_lib_no_pic): New. Change all calls to build_vers_lib to build_vers_lib_no_pic. (build_vers_lib_pic): New. Add tests vers26a, vers26b1, vers26b2 and vers26b3 for versioned definition vs. normal definition in different files. * ld-elfvers/vers26a.c: New file. * ld-elfvers/vers26a.dsym: Likewise. * ld-elfvers/vers26a.map: Likewise. * ld-elfvers/vers26a.ver: Likewise. * ld-elfvers/vers26b.c: Likewise. * ld-elfvers/vers26b.dsym: New empty file. * ld-elfvers/vers26b.ver: Likewise.
2003-04-23Check in the new files.H.J. Lu4-0/+12
2003-04-232003-04-23 H.J. Lu <hjl@gnu.org>H.J. Lu4-0/+15
* ld-elfvers/vers.exp (objdump_dynsymstuff): Support empty files. (objdump_versionstuff): Likewise. Add tests vers25a, vers25b1 and vers25b2 for versioned definition vs. normal definition in different files. * ld-elfvers/vers25a.c: New file. * ld-elfvers/vers25a.dsym: Likewise. * ld-elfvers/vers25a.map: Likewise. * ld-elfvers/vers25a.ver: Likewise. * ld-elfvers/vers25b.c: New empty file. * ld-elfvers/vers25b.dsym: Likewise. * ld-elfvers/vers25b.ver: Likewise.
2003-02-13bfd/Jakub Jelinek8-4/+67
* 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-10-042002-10-03 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc 3.x.
2002-08-142002-08-13 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+8
* ld-elfvers/vers.exp: Add vers23c and vers23d. * ld-elfvers/vers23c.ver: New. * ld-elfvers/vers23d.dsym: New.
2002-08-122002-08-12 H.J. Lu <hjl@gnu.org>H.J. Lu13-0/+58
* ld-elfvers/vers.exp: Add vers23. * ld-elfvers/vers23.c: New. * ld-elfvers/vers23.dsym: New. * ld-elfvers/vers23.ver: New. * ld-elfvers/vers23a.c: New. * ld-elfvers/vers23a.dsym: New. * ld-elfvers/vers23a.map: New. * ld-elfvers/vers23a.sym: New. * ld-elfvers/vers23a.ver: New. * ld-elfvers/vers23b.c: New. * ld-elfvers/vers23b.dsym: New. * ld-elfvers/vers23b.map: New. * ld-elfvers/vers23b.ver: New.
2002-08-09Add the missing space.H.J. Lu1-1/+1
2002-08-092002-08-08 H.J. Lu <hjl@gnu.org>H.J. Lu12-0/+44
* ld-elfvers/vers.exp: Add vers22. * ld-elfvers/vers22.c: New. * ld-elfvers/vers22.dsym: New. * ld-elfvers/vers22.map: New. * ld-elfvers/vers22.ver: New. * ld-elfvers/vers22a.c: New. * ld-elfvers/vers22a.dsym: New. * ld-elfvers/vers22a.sym: New. * ld-elfvers/vers22a.ver: New. * ld-elfvers/vers22b.c: New. * ld-elfvers/vers22b.dsym: New. * ld-elfvers/vers22b.ver: New.
2002-08-08Check symbols with undefine version.H.J. Lu4-11/+2
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-07-162002-07-15 H.J. Lu <hjl@gnu.org>H.J. Lu6-0/+54
* ld-elfvers/vers.exp: Add vers21. * ld-elfvers/vers21.c: New. * ld-elfvers/vers21.dsym: New. * ld-elfvers/vers21.map: New. * ld-elfvers/vers21.sym: New. * ld-elfvers/vers21.ver: New.
2002-02-182002-02-17 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
* vers.exp: Do not call diff -q.
2001-11-302001-11-30 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* ld-elfvers/vers.exp (build_vers_lib): Preserve the library order.
2001-11-302001-11-29 H.J. Lu <hjl@gnu.org>H.J. Lu6-4/+27
* ld-elfvers/vers.exp (build_vers_lib): Support linking against more than one libraries. Add "vers20a" and "vers20" tests for common symbols. * ld-elfvers/vers20.c: New. * ld-elfvers/vers20.dsym: New. * ld-elfvers/vers20.map: New. * ld-elfvers/vers20.ver: New. * ld-elfvers/vers20a.ver: New.
2001-06-062001-06-06 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+1
* 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-05-25s/linuxaout/linux*aout/, s/linuxoldld/linux*oldld/Alan Modra1-3/+3
2001-05-182001-05-18 H.J. Lu <hjl@gnu.org>H.J. Lu5-5/+5
* ld-elfvers/vers.exp: Revert the last change. * ld-elfvers/vers2.ver: Put back "tmpdir/" the version references. * ld-elfvers/vers3.ver: Likewise. * ld-elfvers/vers6.ver: Likewise. * ld-elfvers/vers18.ver: Likewise.
2001-05-182001-05-17 H.J. Lu <hjl@gnu.org>H.J. Lu13-15/+15
* ld-elfvers/vers.exp: Pass "-rpath .:$tmpdir" to "vers19". * ld-elfvers/vers1.ver: Remove "tmpdir/" from the version definition. * ld-elfvers/vers2.ver: Likewise. * ld-elfvers/vers3.ver: Likewise. * ld-elfvers/vers4a.ver: Likewise. * ld-elfvers/vers6.ver: Likewise. * ld-elfvers/vers7a.ver: Likewise. * ld-elfvers/vers8.ver: Likewise. * ld-elfvers/vers9.ver: Likewise. * ld-elfvers/vers15.ver: Likewise. * ld-elfvers/vers16a.ver: Likewise. * ld-elfvers/vers17.ver: Likewise. * ld-elfvers/vers18.ver: Likewise.
2001-05-032001-05-03 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* ld-elfvers/vers19.ver: Expect vers17.so instead of *tmpdir/vers17.so.
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-0/+2
* 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-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.