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.
This commit is contained in:
parent
5184c2ae47
commit
7084059433
12 changed files with 46 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
1
ld/testsuite/ld-elfvers/vers32.map
Normal file
1
ld/testsuite/ld-elfvers/vers32.map
Normal file
|
@ -0,0 +1 @@
|
|||
VERS_1 { foo; };
|
1
ld/testsuite/ld-elfvers/vers32a.c
Normal file
1
ld/testsuite/ld-elfvers/vers32a.c
Normal file
|
@ -0,0 +1 @@
|
|||
void foo(void) {}
|
2
ld/testsuite/ld-elfvers/vers32a.dsym
Normal file
2
ld/testsuite/ld-elfvers/vers32a.dsym
Normal file
|
@ -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
|
4
ld/testsuite/ld-elfvers/vers32a.ver
Normal file
4
ld/testsuite/ld-elfvers/vers32a.ver
Normal file
|
@ -0,0 +1,4 @@
|
|||
Version definitions:
|
||||
[1-2] 0x01 0x0670090f vers32a.so
|
||||
[1-2] 0x00 0x05aa7921 VERS_1
|
||||
|
1
ld/testsuite/ld-elfvers/vers32b.c
Normal file
1
ld/testsuite/ld-elfvers/vers32b.c
Normal file
|
@ -0,0 +1 @@
|
|||
/* Empty */
|
2
ld/testsuite/ld-elfvers/vers32b.dsym
Normal file
2
ld/testsuite/ld-elfvers/vers32b.dsym
Normal file
|
@ -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
|
4
ld/testsuite/ld-elfvers/vers32b.ver
Normal file
4
ld/testsuite/ld-elfvers/vers32b.ver
Normal file
|
@ -0,0 +1,4 @@
|
|||
Version definitions:
|
||||
[1-2] 0x01 0x066f990f vers32b.so
|
||||
[1-2] 0x00 0x05aa7921 VERS_1
|
||||
|
2
ld/testsuite/ld-elfvers/vers32c.dsym
Normal file
2
ld/testsuite/ld-elfvers/vers32c.dsym
Normal file
|
@ -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
|
4
ld/testsuite/ld-elfvers/vers32c.ver
Normal file
4
ld/testsuite/ld-elfvers/vers32c.ver
Normal file
|
@ -0,0 +1,4 @@
|
|||
Version definitions:
|
||||
[1-2] 0x01 0x066fa90f vers32c.so
|
||||
[1-2] 0x00 0x05aa7921 VERS_1
|
||||
|
4
ld/testsuite/ld-elfvers/vers32d.ver
Normal file
4
ld/testsuite/ld-elfvers/vers32d.ver
Normal file
|
@ -0,0 +1,4 @@
|
|||
Version definitions:
|
||||
[1-2] 0x01 0x066fb90f vers32d.so
|
||||
[1-2] 0x00 0x05aa7921 VERS_1
|
||||
|
Loading…
Reference in a new issue