diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-07-10 14:51:55 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-07-10 14:51:55 +0000 |
commit | 70840594337f8310011d772d89783be8bd07f342 (patch) | |
tree | df76c0ada520303b741abef3f24d14d471def865 /ld/testsuite | |
parent | 5184c2ae47954b52118a7ea757407834b59038cf (diff) | |
download | gdb-70840594337f8310011d772d89783be8bd07f342.zip gdb-70840594337f8310011d772d89783be8bd07f342.tar.gz gdb-70840594337f8310011d772d89783be8bd07f342.tar.bz2 |
2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
* ld-elfvers/vers.exp: Add tests for --defsym.
* ld-elfvers/vers32.map: Likewise.
* ld-elfvers/vers32a.c: Likewise.
* ld-elfvers/vers32a.dsym: Likewise.
* ld-elfvers/vers32a.ver: Likewise.
* ld-elfvers/vers32b.c: Likewise.
* ld-elfvers/vers32b.dsym: Likewise.
* ld-elfvers/vers32b.ver: Likewise.
* ld-elfvers/vers32c.dsym: Likewise.
* ld-elfvers/vers32c.ver: Likewise.
* ld-elfvers/vers32d.ver: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 15 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers.exp | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32.map | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32a.c | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32a.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32a.ver | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32b.c | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32b.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32b.ver | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32c.dsym | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32c.ver | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvers/vers32d.ver | 4 |
12 files changed, 46 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 309a3b0..18f32cf 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2007-07-10 H.J. Lu <hongjiu.lu@intel.com> + + * ld-elfvers/vers.exp: Add tests for --defsym. + + * ld-elfvers/vers32.map: Likewise. + * ld-elfvers/vers32a.c: Likewise. + * ld-elfvers/vers32a.dsym: Likewise. + * ld-elfvers/vers32a.ver: Likewise. + * ld-elfvers/vers32b.c: Likewise. + * ld-elfvers/vers32b.dsym: Likewise. + * ld-elfvers/vers32b.ver: Likewise. + * ld-elfvers/vers32c.dsym: Likewise. + * ld-elfvers/vers32c.ver: Likewise. + * ld-elfvers/vers32d.ver: Likewise. + 2007-07-06 Nick Clifton <nickc@redhat.com> * lib/default.exp: Update copyright notice to refer to GPLv3. diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 198a7f6..f163c21 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -991,3 +991,9 @@ build_vers_lib_pic "vers30" vers30.c vers30 "" vers30.map vers30.ver vers30.dsym # Test #31 -- quoted strings in version sections. build_vers_lib_pic "vers31" vers31.c vers31 "" vers31.map vers31.ver vers31.dsym "" + +# Test #32 -- linker --defsym +build_vers_lib_pic "vers32a" vers32a.c vers32a "" vers32.map vers32a.ver vers32a.dsym "" +build_vers_lib_pic_flags "vers32b" vers32b.c vers32b "vers32a.so" vers32.map vers32b.ver vers32b.dsym "" "--defsym foo=0" +build_vers_lib_pic_flags "vers32c" vers32a.c vers32c "vers32a.so" vers32.map vers32c.ver vers32c.dsym "" "--defsym foo=0" +build_vers_lib_pic_flags "vers32d" vers32a.c vers32d "" vers32.map vers32d.ver vers32c.dsym "" "--defsym foo=0" diff --git a/ld/testsuite/ld-elfvers/vers32.map b/ld/testsuite/ld-elfvers/vers32.map new file mode 100644 index 0000000..aef2bd9 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32.map @@ -0,0 +1 @@ +VERS_1 { foo; }; diff --git a/ld/testsuite/ld-elfvers/vers32a.c b/ld/testsuite/ld-elfvers/vers32a.c new file mode 100644 index 0000000..a53eae6 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32a.c @@ -0,0 +1 @@ +void foo(void) {} diff --git a/ld/testsuite/ld-elfvers/vers32a.dsym b/ld/testsuite/ld-elfvers/vers32a.dsym new file mode 100644 index 0000000..14f15d4 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32a.dsym @@ -0,0 +1,2 @@ +[0]* g DO \*ABS\* [0]* VERS_1 VERS_1 +[0-9a-f]* g DF (.text|\*ABS\*) [0-9a-f]* VERS_1 (0x[0-9a-f][0-9a-f] )?foo diff --git a/ld/testsuite/ld-elfvers/vers32a.ver b/ld/testsuite/ld-elfvers/vers32a.ver new file mode 100644 index 0000000..80c04c8 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32a.ver @@ -0,0 +1,4 @@ +Version definitions: +[1-2] 0x01 0x0670090f vers32a.so +[1-2] 0x00 0x05aa7921 VERS_1 + diff --git a/ld/testsuite/ld-elfvers/vers32b.c b/ld/testsuite/ld-elfvers/vers32b.c new file mode 100644 index 0000000..710cecc --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32b.c @@ -0,0 +1 @@ +/* Empty */ diff --git a/ld/testsuite/ld-elfvers/vers32b.dsym b/ld/testsuite/ld-elfvers/vers32b.dsym new file mode 100644 index 0000000..8cc620c --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32b.dsym @@ -0,0 +1,2 @@ +[0-9a-f]* g D \*ABS\* [0-9a-f]* VERS_1 (0x[0-9a-f][0-9a-f] )?foo +[0]* g DO \*ABS\* [0]* VERS_1 VERS_1 diff --git a/ld/testsuite/ld-elfvers/vers32b.ver b/ld/testsuite/ld-elfvers/vers32b.ver new file mode 100644 index 0000000..126129a --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32b.ver @@ -0,0 +1,4 @@ +Version definitions: +[1-2] 0x01 0x066f990f vers32b.so +[1-2] 0x00 0x05aa7921 VERS_1 + diff --git a/ld/testsuite/ld-elfvers/vers32c.dsym b/ld/testsuite/ld-elfvers/vers32c.dsym new file mode 100644 index 0000000..70c7428 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32c.dsym @@ -0,0 +1,2 @@ +[0-9a-f]* g DF \*ABS\* [0-9a-f]* VERS_1 (0x[0-9a-f][0-9a-f] )?foo +[0]* g DO \*ABS\* [0]* VERS_1 VERS_1 diff --git a/ld/testsuite/ld-elfvers/vers32c.ver b/ld/testsuite/ld-elfvers/vers32c.ver new file mode 100644 index 0000000..be90471 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32c.ver @@ -0,0 +1,4 @@ +Version definitions: +[1-2] 0x01 0x066fa90f vers32c.so +[1-2] 0x00 0x05aa7921 VERS_1 + diff --git a/ld/testsuite/ld-elfvers/vers32d.ver b/ld/testsuite/ld-elfvers/vers32d.ver new file mode 100644 index 0000000..9d70622 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers32d.ver @@ -0,0 +1,4 @@ +Version definitions: +[1-2] 0x01 0x066fb90f vers32d.so +[1-2] 0x00 0x05aa7921 VERS_1 + |