Browse Source
* ld/elfvers/{vers17.*, vers18.*, vers19.*}: New files.
gdb-premipsmulti-2000-06-06-branch
14 changed files with 114 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
int |
|||
show_foo () |
|||
{ |
|||
return 99; |
|||
} |
|||
@ -0,0 +1,2 @@ |
|||
[0]* g DO \*ABS\* [0]* VERS_2.0 VERS_2.0 |
|||
[0-9a-f]* g DF (.text|\*ABS\*) [0-9a-f]* VERS_2.0 (0x[0-9a-f][0-9a-f] )?show_foo |
|||
@ -0,0 +1,4 @@ |
|||
VERS_2.0 { |
|||
global: |
|||
show_foo; |
|||
}; |
|||
@ -0,0 +1,3 @@ |
|||
Version definitions: |
|||
1 0x01 0x02605d3f tmpdir/vers17.so |
|||
2 0x00 0x0a7922b0 VERS_2.0 |
|||
@ -0,0 +1,42 @@ |
|||
int |
|||
bar () |
|||
{ |
|||
return 3; |
|||
} |
|||
|
|||
#pragma weak hide_original_foo |
|||
|
|||
int |
|||
hide_original_foo () |
|||
{ |
|||
return 1 + bar (); |
|||
} |
|||
|
|||
#pragma weak hide_old_foo |
|||
|
|||
int |
|||
hide_old_foo () |
|||
{ |
|||
return 10 + bar(); |
|||
} |
|||
|
|||
#pragma weak hide_old_foo1 |
|||
|
|||
int |
|||
hide_old_foo1 () |
|||
{ |
|||
return 100 + bar (); |
|||
} |
|||
|
|||
#pragma weak hide_new_foo |
|||
|
|||
int |
|||
hide_new_foo () |
|||
{ |
|||
return 1000 + bar (); |
|||
} |
|||
|
|||
__asm__(".symver hide_original_foo,show_foo@"); |
|||
__asm__(".symver hide_old_foo,show_foo@VERS_1.1"); |
|||
__asm__(".symver hide_old_foo1,show_foo@VERS_1.2"); |
|||
__asm__(".symver hide_new_foo,show_foo@@VERS_2.0"); |
|||
@ -0,0 +1,7 @@ |
|||
[0-9a-f]* w DF (\*UND\*) [0-9a-f]* VERS_2.0 (0x[0-9a-f][0-9a-f] )?show_foo |
|||
[0]* g DO \*ABS\* [0]* VERS_1.1 VERS_1.1 |
|||
[0]* g DO \*ABS\* [0]* VERS_1.2 VERS_1.2 |
|||
[0]* g DO \*ABS\* [0]* VERS_2.0 VERS_2.0 |
|||
[0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* \(Base\) (0x[0-9a-f][0-9a-f] )?show_foo |
|||
[0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* \(VERS_1.1\) (0x[0-9a-f][0-9a-f] )?show_foo |
|||
[0-9a-f]* w DF (.text|\*ABS\*) [0-9a-f]* \(VERS_1.2\) (0x[0-9a-f][0-9a-f] )?show_foo |
|||
@ -0,0 +1,15 @@ |
|||
VERS_1.1 { |
|||
global: |
|||
foo1; |
|||
local: |
|||
hide_old*; |
|||
hide_original*; |
|||
hide_new*; |
|||
}; |
|||
|
|||
VERS_1.2 { |
|||
foo2; |
|||
} VERS_1.1; |
|||
|
|||
VERS_2.0 { |
|||
} VERS_1.2; |
|||
@ -0,0 +1,4 @@ |
|||
[0-9a-f]* w F .text [0-9a-f]* (0x[0-9a-f][0-9a-f] )?show_foo@ |
|||
[0-9a-f]* w F .text [0-9a-f]* (0x[0-9a-f][0-9a-f] )?show_foo@VERS_1.1 |
|||
[0-9a-f]* w F .text [0-9a-f]* (0x[0-9a-f][0-9a-f] )?show_foo@VERS_1.2 |
|||
[0-9a-f]* w F .text [0-9a-f]* (0x[0-9a-f][0-9a-f] )?show_foo@@VERS_2.0 |
|||
@ -0,0 +1,12 @@ |
|||
Version definitions: |
|||
1 0x01 0x02608d3f tmpdir/vers18.so |
|||
2 0x00 0x0a7927b1 VERS_1.1 |
|||
3 0x00 0x0a7927b2 VERS_1.2 |
|||
VERS_1.1 |
|||
4 0x02 0x0a7922b0 VERS_2.0 |
|||
VERS_1.2 |
|||
|
|||
Version References: |
|||
required from tmpdir/vers17.so: |
|||
0x0a7922b0 0x00 05 VERS_2.0 |
|||
|
|||
@ -0,0 +1,6 @@ |
|||
int |
|||
main () |
|||
{ |
|||
printf ("%d\n", show_foo ()); |
|||
return 0; |
|||
} |
|||
@ -0,0 +1 @@ |
|||
[0-9a-f]* DF \*UND\* [0-9a-f]* VERS_2.0 (0x[0-9a-f][0-9a-f] )?show_foo |
|||
@ -0,0 +1,3 @@ |
|||
Version References: |
|||
required from *tmpdir/vers17.so: |
|||
0x0a7922b0 0x00 02 VERS_2.0 |
|||
Loading…
Reference in new issue