diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-02-14 14:15:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-02-14 14:15:52 +0000 |
commit | fab4a87f1bd9ec148d24bdaca9faf0f6bded94aa (patch) | |
tree | ce747bd2c90f481a27b2d8a487ff00b5372cd9f7 /ld/testsuite/ld-elf/shared.exp | |
parent | b279a55c19a2826fa8b5b08ec13e8df13ff5b9f5 (diff) | |
download | gdb-fab4a87f1bd9ec148d24bdaca9faf0f6bded94aa.zip gdb-fab4a87f1bd9ec148d24bdaca9faf0f6bded94aa.tar.gz gdb-fab4a87f1bd9ec148d24bdaca9faf0f6bded94aa.tar.bz2 |
bfd/
2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3953
* elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
when adding default symbol.
ld/testsuite/
2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3953
* ld-elf/beginwarn.c: New file.
* ld-elf/warn.out: Likewise.
* ld-elf/shared.exp (build_tests): Add "Build warn libbar.so".
(run_tests): Add "Run warn with versioned libfoo.so".
* lib/ld-lib.exp (default_ld_relocate): Make exec_output global
and remove target first.
(default_ld_link): Likewise.
(default_ld_simple_link): Likewise.
(run_ld_link_exec_tests): Take an optional linker warning and
check it.
(default_ld_link): Check pruned linker output.
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index 19c22a9..c38294c 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -42,6 +42,9 @@ set build_tests { {"Build libbar.so" "-shared" "-fPIC" {begin.c end.c} {} "libbar.so"} + {"Build warn libbar.so" + "-shared" "-fPIC" + {beginwarn.c end.c} {} "libbarw.so"} {"Build hidden libbar.so" "-shared" "-fPIC" {begin.c endhidden.c} {} "libbarh.so"} @@ -126,6 +129,10 @@ set run_tests { {"Run normal with versioned libfoo.so" "tmpdir/begin.o tmpdir/libfoov.so tmpdir/end.o" "" {main.c} "normalv" "normal.out"} + {"Run warn with versioned libfoo.so" + "tmpdir/beginwarn.o tmpdir/libfoov.so" "" + {main.c} "warn" "warn.out" + "" "" "^.*\\\): warning: function foo is deprecated$"} {"Run protected with versioned libfoo.so" "tmpdir/begin.o tmpdir/libfoov.so tmpdir/endprotected.o" "" {main.c} "protected" "normal.out"} |