diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-05-05 03:33:09 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-05-05 03:33:09 +0000 |
commit | c424e0e973d0cee8125e328fa2716473961afad4 (patch) | |
tree | b331ec3a3c3a2845f0889e3a292ef0014f51db29 /ld/testsuite | |
parent | d31e3dfee9bea01a1d860d6ceae2052f3ded8b83 (diff) | |
download | gdb-c424e0e973d0cee8125e328fa2716473961afad4.zip gdb-c424e0e973d0cee8125e328fa2716473961afad4.tar.gz gdb-c424e0e973d0cee8125e328fa2716473961afad4.tar.bz2 |
bfd/
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers18.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers18.ver | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers19.ver | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/dsowdata.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/elfweak.exp | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/weakdata.dsym | 2 |
7 files changed, 13 insertions, 22 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9a2bb79..372b812 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +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-04 Alexandre Oliva <aoliva@redhat.com> * ld-mips-elf/multi-got-1.d: Force into big-endian mode. diff --git a/ld/testsuite/ld-elfvers/vers18.dsym b/ld/testsuite/ld-elfvers/vers18.dsym index dc3ad7b..c60237a 100644 --- a/ld/testsuite/ld-elfvers/vers18.dsym +++ b/ld/testsuite/ld-elfvers/vers18.dsym @@ -1,7 +1,7 @@ -[0-9a-f]* w DF (\*UND\*) [0-9a-f]* VERS_2.0 (0x[0-9a-f][0-9a-f] )?show_foo [0]* g DO \*ABS\* [0]* VERS_1.1 VERS_1.1 [0]* g DO \*ABS\* [0]* VERS_1.2 VERS_1.2 [0]* g DO \*ABS\* [0]* VERS_2.0 VERS_2.0 [0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* \(Base\) (0x[0-9a-f][0-9a-f] )?show_foo [0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* \(VERS_1.1\) (0x[0-9a-f][0-9a-f] )?show_foo [0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* \(VERS_1.2\) (0x[0-9a-f][0-9a-f] )?show_foo +[0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* VERS_2.0 (0x[0-9a-f][0-9a-f] )?show_foo diff --git a/ld/testsuite/ld-elfvers/vers18.ver b/ld/testsuite/ld-elfvers/vers18.ver index 5df92c8..c6b14e8 100644 --- a/ld/testsuite/ld-elfvers/vers18.ver +++ b/ld/testsuite/ld-elfvers/vers18.ver @@ -3,10 +3,5 @@ Version definitions: 2 0x00 0x0a7927b1 VERS_1.1 3 0x00 0x0a7927b2 VERS_1.2 VERS_1.1 -4 0x02 0x0a7922b0 VERS_2.0 +4 0x00 0x0a7922b0 VERS_2.0 VERS_1.2 - -Version References: - required from tmpdir/vers17.so: - 0x0a7922b0 0x00 05 VERS_2.0 - diff --git a/ld/testsuite/ld-elfvers/vers19.ver b/ld/testsuite/ld-elfvers/vers19.ver index 5969797..28a52c4 100644 --- a/ld/testsuite/ld-elfvers/vers19.ver +++ b/ld/testsuite/ld-elfvers/vers19.ver @@ -1,3 +1,3 @@ Version References: - required from vers17.so: + required from tmpdir/vers18.so: 0x0a7922b0 0x00 0[23] VERS_2.0 diff --git a/ld/testsuite/ld-elfweak/dsowdata.dsym b/ld/testsuite/ld-elfweak/dsowdata.dsym index 0b5cca3..e0f579ae 100644 --- a/ld/testsuite/ld-elfweak/dsowdata.dsym +++ b/ld/testsuite/ld-elfweak/dsowdata.dsym @@ -1 +1 @@ -[0-9a-f]*[ ]+w[ ]+DO[ ]+.data[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)deallocate_foo +[0-9a-f]*[ ]+w[ ]+DO[ ]+.(s|)data[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)deallocate_foo diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp index 11dd323..d67538d 100644 --- a/ld/testsuite/ld-elfweak/elfweak.exp +++ b/ld/testsuite/ld-elfweak/elfweak.exp @@ -443,36 +443,24 @@ if {![ld_link $ld $tmpdir/libbar1a.so "$shared $tmpdir/bar1a.o $tmpdir/libfoo1a. build_lib "ELF DSO weak func first" libfoo "foo.o bar.o" dso.dsym build_lib "ELF DSO weak func last" libfoo "bar.o foo.o" dso.dsym -setup_xfail "*-*-*" build_lib "ELF DSO weak func first DSO" libfoo "foo.o libbar.so" dsow.dsym -setup_xfail "*-*-*" build_lib "ELF DSO weak func last DSO" libfoo "libbar.so foo.o" dsow.dsym build_exec "ELF weak func first" foo "main.o bar.o" "" strong "" strong.sym build_exec "ELF weak func last" foo "bar.o main.o" "" strong "" strong.sym -setup_xfail "*-*-*" build_exec "ELF weak func first DSO" foo "main.o libbar.so" "-rpath ." weak weak.dsym "" -setup_xfail "*-*-*" build_exec "ELF weak func last DSO" foo "libbar.so main.o" "-rpath ." weak weak.dsym "" build_lib "ELF DSO weak data first" libfoo "bar1a.o foo1a.o" dsodata.dsym build_lib "ELF DSO weak data last" libfoo "foo1a.o bar1a.o" dsodata.dsym -setup_xfail "*-*-*" build_lib "ELF DSO weak data first DSO" libfoo "main1.o libfoo1a.so" dsowdata.dsym -setup_xfail "*-*-*" build_lib "ELF DSO weak data last DSO" libfoo "libfoo1a.so main1.o" dsowdata.dsym -setup_xfail "*-*-*" build_lib "ELF DSO weak data first DSO common" libfoo "main1.o libfoo1b.so" dsowdata.dsym -setup_xfail "*-*-*" build_lib "ELF DSO weak data last DSO common" libfoo "libfoo1b.so main1.o" dsowdata.dsym build_exec "ELF weak data first" foo "main1.o bar1a.o foo1a.o" "" strongdata "" strongdata.sym build_exec "ELF weak data last" foo "foo1a.o main1.o bar1a.o" "" strongdata "" strongdata.sym build_exec "ELF weak data first common" foo "main1.o bar1a.o foo1b.o" "" strongdata "" strongcomm.sym build_exec "ELF weak data last common" foo "foo1b.o main1.o bar1a.o" "" strongdata "" strongcomm.sym -setup_xfail "*-*-*" build_exec "ELF weak data first DSO" foo "main1.o libbar1a.so libfoo1a.so" "-rpath ." weakdata weakdata.dsym "" -setup_xfail "*-*-*" build_exec "ELF weak data last DSO" foo "libfoo1a.so main1.o libbar1a.so" "-rpath ." weakdata weakdata.dsym "" -setup_xfail "*-*-*" build_exec "ELF weak data first DSO common" foo "main1.o libbar1a.so libfoo1b.so" "-rpath ." weakdata weakdata.dsym "" -setup_xfail "*-*-*" build_exec "ELF weak data last DSO common" foo "libfoo1b.so main1.o libbar1a.so" "-rpath ." weakdata weakdata.dsym "" diff --git a/ld/testsuite/ld-elfweak/weakdata.dsym b/ld/testsuite/ld-elfweak/weakdata.dsym index 0b5cca3..e0f579ae 100644 --- a/ld/testsuite/ld-elfweak/weakdata.dsym +++ b/ld/testsuite/ld-elfweak/weakdata.dsym @@ -1 +1 @@ -[0-9a-f]*[ ]+w[ ]+DO[ ]+.data[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)deallocate_foo +[0-9a-f]*[ ]+w[ ]+DO[ ]+.(s|)data[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)deallocate_foo |