diff options
author | Paul Brook <paul@codesourcery.com> | 2004-10-26 13:46:05 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2004-10-26 13:46:05 +0000 |
commit | 3e3b46e5c8d9d578ea136983b5dd1de82dbff86b (patch) | |
tree | a13b75dade8cca9fa4f7c3a28053364ae1787145 /ld/testsuite/ld-elfvers/vers.exp | |
parent | b3f21e4a58cbbeca439d4270f4234ef565a59030 (diff) | |
download | binutils-gdb-3e3b46e5c8d9d578ea136983b5dd1de82dbff86b.tar.gz |
bfd/
* 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.
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers.exp')
-rw-r--r-- | ld/testsuite/ld-elfvers/vers.exp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 3ee42e868af..9662a6b2b97 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -498,7 +498,7 @@ proc objdump_versionstuff { objdump object expectfile } { } } -proc build_binary { shared pic test source libname other mapfile verexp versymexp symexp } { +proc build_binary { shared pic test source libname other mapfile verexp versymexp symexp ldargs } { global ld global srcdir global subdir @@ -534,7 +534,7 @@ proc build_binary { shared pic test source libname other mapfile verexp versymex set script_arg "$script $srcdir/$subdir/$mapfile" } - if {![ld_simple_link $ld $tmpdir/$libname.so "$shared $tmpdir/$libname.o $other_lib $script_arg"]} { + if {![ld_simple_link $ld $tmpdir/$libname.so "$shared $tmpdir/$libname.o $other_lib $script_arg $ldargs"]} { fail "$test" return } @@ -566,18 +566,24 @@ proc build_binary { shared pic test source libname other mapfile verexp versymex } proc build_executable { test source libname other mapfile verexp versymexp symexp } { - build_binary "" "" $test $source $libname $other $mapfile $verexp $versymexp $symexp + build_binary "" "" $test $source $libname $other $mapfile $verexp $versymexp $symexp "" } proc build_vers_lib_no_pic { test source libname other mapfile verexp versymexp symexp } { global shared - build_binary $shared "" $test $source $libname $other $mapfile $verexp $versymexp $symexp + build_binary $shared "" $test $source $libname $other $mapfile $verexp $versymexp $symexp "" } proc build_vers_lib_pic { test source libname other mapfile verexp versymexp symexp } { global picflag global shared - build_binary $shared $picflag $test $source $libname $other $mapfile $verexp $versymexp $symexp + build_binary $shared $picflag $test $source $libname $other $mapfile $verexp $versymexp $symexp "" +} + +proc build_vers_lib_pic_flags { test source libname other mapfile verexp versymexp symexp ldargs } { + global picflag + global shared + build_binary $shared $picflag $test $source $libname $other $mapfile $verexp $versymexp $symexp $ldargs } proc test_ldfail { test flag source execname other mapfile whyfail } { @@ -944,3 +950,4 @@ build_executable "vers27d5" vers27d3.c vers27d5 "vers27d4.so vers27b.o vers27a.s build_vers_lib_pic "vers28a" vers28a.c vers28a "" "" vers28a.ver vers28a.dsym "" build_vers_lib_pic "vers28b" vers28b.c vers28b "" vers28b.map vers28b.ver vers28b.dsym "" build_vers_lib_pic "vers28c" vers28c.c vers28c "vers28b.so vers28a.so" "" vers28c.ver vers28c.dsym "" +build_vers_lib_pic_flags "vers29" vers29.c vers29 "" "" vers29.ver vers29.dsym "" "--default-symver" |