Browse Source
PR ld/22393 * testsuite/ld-x86-64/pr22393-3a.c: New file. * testsuite/ld-x86-64/pr22393-3a.rd: Likewise. * testsuite/ld-x86-64/pr22393-3b.c: Likewise. * testsuite/ld-x86-64/pr22393-3b.rd: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code -z max-page-size=0x1000.binutils-2_30-branch
6 changed files with 113 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||
|
#include <stdio.h> |
||||
|
|
||||
|
void |
||||
|
test() |
||||
|
{ |
||||
|
printf ("PASS\n"); |
||||
|
} |
||||
@ -0,0 +1,9 @@ |
|||||
|
#source: pr22393-1.s |
||||
|
#ld: -shared -z textonly |
||||
|
#readelf: -l --wide |
||||
|
#target: *-*-linux-gnu *-*-gnu* *-*-nacl* |
||||
|
|
||||
|
#failif |
||||
|
#... |
||||
|
+[0-9]+ +.*(\.note|\.gnu|\.hash|\.dyn|\.rel).*\.text.* |
||||
|
#... |
||||
@ -0,0 +1,7 @@ |
|||||
|
void test(void); |
||||
|
|
||||
|
int main() |
||||
|
{ |
||||
|
test(); |
||||
|
return 0; |
||||
|
} |
||||
@ -0,0 +1,9 @@ |
|||||
|
#source: pr22393-1.s |
||||
|
#ld: -shared -z textonly |
||||
|
#readelf: -l --wide |
||||
|
#target: *-*-linux-gnu *-*-gnu* *-*-nacl* |
||||
|
|
||||
|
#failif |
||||
|
#... |
||||
|
+[0-9]+ +.*(\.note|\.gnu|\.hash|\.dyn|\.rel).*\.text.* |
||||
|
#... |
||||
Loading…
Reference in new issue