From: Richard Henderson Date: Tue, 29 Sep 1998 04:34:32 +0000 (+0000) Subject: Mon Sep 28 21:31:12 1998 Richard Henderson X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea0a321df92bb19a23f6c9e39254a0d34351f198;p=binutils-gdb.git Mon Sep 28 21:31:12 1998 Richard Henderson * 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 * ld-elfvers/vers.exp (vers16, vers16a): New tests. * ld-elfvers/{vers16.*, vers16a.*}: New files. --- diff --git a/ld/testsuite/ld-elfvers/.Sanitize b/ld/testsuite/ld-elfvers/.Sanitize index 16b16f31181..2dc108ac93d 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 00000000000..6668bc60621 --- /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 00000000000..6fadf2d8b66 --- /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 00000000000..766332fcfb2 --- /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 00000000000..153b1fdc779 --- /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 00000000000..058df47ee8e --- /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 00000000000..bccf1df7cc9 --- /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