diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-08-09 04:42:44 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-08-09 04:42:44 +0000 |
commit | b16100ad5c5151bd4d2c5ffa8e45ac91e010d30c (patch) | |
tree | 03ee3bfc856e3aa8059ce4d2e4225b2954ee249a /ld | |
parent | d8bbe7789d141942024ccaa7c389f212b4e67a1f (diff) | |
download | gdb-b16100ad5c5151bd4d2c5ffa8e45ac91e010d30c.zip gdb-b16100ad5c5151bd4d2c5ffa8e45ac91e010d30c.tar.gz gdb-b16100ad5c5151bd4d2c5ffa8e45ac91e010d30c.tar.bz2 |
2002-08-08 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp: Add vers22.
* ld-elfvers/vers22.c: New.
* ld-elfvers/vers22.dsym: New.
* ld-elfvers/vers22.map: New.
* ld-elfvers/vers22.ver: New.
* ld-elfvers/vers22a.c: New.
* ld-elfvers/vers22a.dsym: New.
* ld-elfvers/vers22a.sym: New.
* ld-elfvers/vers22a.ver: New.
* ld-elfvers/vers22b.c: New.
* ld-elfvers/vers22b.dsym: New.
* ld-elfvers/vers22b.ver: New.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 16 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers.exp | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22.c | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22.dsym | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22.map | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22.ver | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22a.c | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22a.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22a.sym | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22a.ver | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22b.c | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22b.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers22b.ver | 4 |
13 files changed, 60 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0c2e3b9..22631e2 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,19 @@ +2002-08-08 H.J. Lu <hjl@gnu.org> + + * ld-elfvers/vers.exp: Add vers22. + + * ld-elfvers/vers22.c: New. + * ld-elfvers/vers22.dsym: New. + * ld-elfvers/vers22.map: New. + * ld-elfvers/vers22.ver: New. + * ld-elfvers/vers22a.c: New. + * ld-elfvers/vers22a.dsym: New. + * ld-elfvers/vers22a.sym: New. + * ld-elfvers/vers22a.ver: New. + * ld-elfvers/vers22b.c: New. + * ld-elfvers/vers22b.dsym: New. + * ld-elfvers/vers22b.ver: New. + 2002-08-07 H.J. Lu <hjl@gnu.org> * ld-elfvers/vers.exp: Add --no-undefined-version. diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 7380729..7eb3f2a 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -826,3 +826,8 @@ build_vers_lib "vers20" vers20.c vers20 "vers20a.so vers20b.so" vers20.map vers2 # Test .symver override. build_vers_lib "vers21" vers21.c vers21 "" vers21.map vers21.ver vers21.dsym vers21.sym + +# Test moving default definition from one DSO to another. +build_vers_lib "vers22a" vers22a.c vers22a "" vers22.map vers22a.ver vers22a.dsym vers22a.sym +build_vers_lib "vers22b" vers22b.c vers22b "" vers22.map vers22b.ver vers22b.dsym "" +build_vers_lib "vers22" vers22.c vers22 "vers22a.so vers22b.so" "" vers22.ver vers22.dsym "" diff --git a/ld/testsuite/ld-elfvers/vers22.c b/ld/testsuite/ld-elfvers/vers22.c new file mode 100644 index 0000000..a04695b --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22.c @@ -0,0 +1,7 @@ +extern void bar (); + +void +foo () +{ + bar (); +} diff --git a/ld/testsuite/ld-elfvers/vers22.dsym b/ld/testsuite/ld-elfvers/vers22.dsym new file mode 100644 index 0000000..3c01dd3 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22.dsym @@ -0,0 +1 @@ +[0-9a-f]* DF \*UND\* [0-9a-f]* VERS.0 (0x[0-9a-f][0-9a-f])?bar diff --git a/ld/testsuite/ld-elfvers/vers22.map b/ld/testsuite/ld-elfvers/vers22.map new file mode 100644 index 0000000..9a03b0b --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22.map @@ -0,0 +1,4 @@ +VERS.0 { + global: + bar; +}; diff --git a/ld/testsuite/ld-elfvers/vers22.ver b/ld/testsuite/ld-elfvers/vers22.ver new file mode 100644 index 0000000..05afce7 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22.ver @@ -0,0 +1,4 @@ +Version References: + required from tmpdir/vers22b.so: + 0x05aa7610 0x00 02 VERS.0 + diff --git a/ld/testsuite/ld-elfvers/vers22a.c b/ld/testsuite/ld-elfvers/vers22a.c new file mode 100644 index 0000000..288c820 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22a.c @@ -0,0 +1,6 @@ +__asm__(".symver _old_bar,bar@VERS.0"); + +void +_old_bar () +{ +} diff --git a/ld/testsuite/ld-elfvers/vers22a.dsym b/ld/testsuite/ld-elfvers/vers22a.dsym new file mode 100644 index 0000000..b710e71 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22a.dsym @@ -0,0 +1,2 @@ +[0]*[ ]+g[ ]+DO[ ]+\*ABS\*[ ]+[0]*[ ]+VERS.0[ ]+VERS.0 +[0-9a-f]*[ ]+g[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+\(VERS.0\)[ ]+(0x[0-9a-f]*|)[ ]*bar diff --git a/ld/testsuite/ld-elfvers/vers22a.sym b/ld/testsuite/ld-elfvers/vers22a.sym new file mode 100644 index 0000000..39fd10a --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22a.sym @@ -0,0 +1 @@ +[0-9a-f]*[ ]+g[ ]+F[ ]+.text[ ]+[0-9a-f]* (0x[0-9a-f][0-9a-f] )?bar@VERS.0 diff --git a/ld/testsuite/ld-elfvers/vers22a.ver b/ld/testsuite/ld-elfvers/vers22a.ver new file mode 100644 index 0000000..bb4d3bf --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22a.ver @@ -0,0 +1,4 @@ +Version definitions: +1 0x01 0x0660090f vers22a.so +2 0x00 0x05aa7610 VERS.0 + diff --git a/ld/testsuite/ld-elfvers/vers22b.c b/ld/testsuite/ld-elfvers/vers22b.c new file mode 100644 index 0000000..9e559cc --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22b.c @@ -0,0 +1,4 @@ +void +bar () +{ +} diff --git a/ld/testsuite/ld-elfvers/vers22b.dsym b/ld/testsuite/ld-elfvers/vers22b.dsym new file mode 100644 index 0000000..25d78fa --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22b.dsym @@ -0,0 +1,2 @@ +[0]*[ ]+g[ ]+DO[ ]+\*ABS\*[ ]+[0]*[ ]+VERS.0[ ]+VERS.0 +[0-9a-f]*[ ]+g[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+VERS.0[ ]+(0x[0-9a-f]*|)[ ]*bar diff --git a/ld/testsuite/ld-elfvers/vers22b.ver b/ld/testsuite/ld-elfvers/vers22b.ver new file mode 100644 index 0000000..b1c834b --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers22b.ver @@ -0,0 +1,4 @@ +Version definitions: +1 0x01 0x065f990f vers22b.so +2 0x00 0x05aa7610 VERS.0 + |