diff options
author | Richard Henderson <rth@redhat.com> | 1998-09-29 04:34:32 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1998-09-29 04:34:32 +0000 |
commit | ea0a321df92bb19a23f6c9e39254a0d34351f198 (patch) | |
tree | 316d4a56c87549c25ceea635ceb103b95f56c65d /ld | |
parent | 300a10323ae970a1cf1db76b935d21e009df4685 (diff) | |
download | gdb-ea0a321df92bb19a23f6c9e39254a0d34351f198.zip gdb-ea0a321df92bb19a23f6c9e39254a0d34351f198.tar.gz gdb-ea0a321df92bb19a23f6c9e39254a0d34351f198.tar.bz2 |
Mon Sep 28 21:31:12 1998 Richard Henderson <rth@cygnus.com>
* ld-elfvers/vers.exp: Run tests on alpha-linux.
* ld-elfvers/*.sym, ld-elfvers/*.dsym: Adjust patters to match
Alpha's use of st_other.
1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* ld-elfvers/vers.exp (vers16, vers16a): New tests.
* ld-elfvers/{vers16.*, vers16a.*}: New files.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elfvers/.Sanitize | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers16.c | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers16.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers16.map | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers16a.c | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers16a.dsym | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers16a.ver | 3 |
7 files changed, 35 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvers/.Sanitize b/ld/testsuite/ld-elfvers/.Sanitize index 16b16f3..2dc108a 100644 --- a/ld/testsuite/ld-elfvers/.Sanitize +++ b/ld/testsuite/ld-elfvers/.Sanitize @@ -34,6 +34,12 @@ vers15.c vers15.dsym vers15.sym vers15.ver +vers16.c +vers16.dsym +vers16.map +vers16a.c +vers16a.dsym +vers16a.ver vers2.c vers2.dsym vers2.map diff --git a/ld/testsuite/ld-elfvers/vers16.c b/ld/testsuite/ld-elfvers/vers16.c new file mode 100644 index 0000000..6668bc6 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers16.c @@ -0,0 +1,10 @@ +int show_bar () +{ + return 0; +} +extern int show_foo (); + +int main () +{ + return show_foo (); +} diff --git a/ld/testsuite/ld-elfvers/vers16.dsym b/ld/testsuite/ld-elfvers/vers16.dsym new file mode 100644 index 0000000..6fadf2d --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers16.dsym @@ -0,0 +1,2 @@ +[0-9a-f]* g DF (\.text|\*ABS\*) [0-9a-f]* Base (0x[0-9a-f][0-9a-f] )?show_bar +[0-9a-f]* DF \*UND\* [0-9a-f]* (0x[0-9a-f][0-9a-f] )?show_foo diff --git a/ld/testsuite/ld-elfvers/vers16.map b/ld/testsuite/ld-elfvers/vers16.map new file mode 100644 index 0000000..766332f --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers16.map @@ -0,0 +1,3 @@ +VERS_1.1 { + global: show_bar; +}; diff --git a/ld/testsuite/ld-elfvers/vers16a.c b/ld/testsuite/ld-elfvers/vers16a.c new file mode 100644 index 0000000..153b1fd --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers16a.c @@ -0,0 +1,8 @@ +int show_bar () +{ + return 1; +} +int show_foo () +{ + return show_bar (); +} diff --git a/ld/testsuite/ld-elfvers/vers16a.dsym b/ld/testsuite/ld-elfvers/vers16a.dsym new file mode 100644 index 0000000..058df47 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers16a.dsym @@ -0,0 +1,3 @@ +[0-9a-f]* g DO (\.text|\*ABS\*) [0-9a-f]* VERS_1\.1 VERS_1\.1 +[0-9a-f]* g DF (\.text|\*ABS\*) [0-9a-f]* VERS_1\.1 (0x[0-9a-f][0-9a-f] )?show_bar +[0-9a-f]* g DF (\.text|\*ABS\*) [0-9a-f]* Base (0x[0-9a-f][0-9a-f] )?show_foo diff --git a/ld/testsuite/ld-elfvers/vers16a.ver b/ld/testsuite/ld-elfvers/vers16a.ver new file mode 100644 index 0000000..bccf1df --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers16a.ver @@ -0,0 +1,3 @@ +Version definitions: +1 0x01 0x0601cfbf tmpdir/vers16a.so +2 0x00 0x0a7927b1 VERS_1.1 |