Browse Source
PR ld/10744 * ld-scripts/phdrs3.exp: Run phdrs3a. * ld-scripts/phdrs3a.d: New. * ld-scripts/phdrs3a.t: Likewise.gdb_7_1-branch
4 changed files with 33 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
#name: PHDRS headers 3a |
|||
#source: phdrs.s |
|||
#ld: -T phdrs3a.t |
|||
#readelf: -l --wide |
|||
|
|||
#... |
|||
[ \t]+LOAD[ x0-9a-f]+ R [ x0-9a-f]+ |
|||
[ \t]+LOAD[ x0-9a-f]+ E [ x0-9a-f]+ |
|||
#pass |
|||
@ -0,0 +1,15 @@ |
|||
PHDRS |
|||
{ |
|||
data PT_LOAD FILEHDR PHDRS FLAGS(4); |
|||
text PT_LOAD FILEHDR PHDRS FLAGS(1); |
|||
} |
|||
|
|||
SECTIONS |
|||
{ |
|||
/* This test will fail on architectures where the startaddress below |
|||
is less than the constant MAXPAGESIZE. */ |
|||
. = 0x800000 + SIZEOF_HEADERS; |
|||
.text : { *(.text) } :text |
|||
.data : { *(.data) } :data |
|||
/DISCARD/ : { *(.*) } |
|||
} |
|||
Loading…
Reference in new issue