diff options
Diffstat (limited to 'ld/testsuite/ld-scripts/phdrs3.t')
-rw-r--r-- | ld/testsuite/ld-scripts/phdrs3.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/phdrs3.t b/ld/testsuite/ld-scripts/phdrs3.t new file mode 100644 index 0000000..4bd4e85 --- /dev/null +++ b/ld/testsuite/ld-scripts/phdrs3.t @@ -0,0 +1,16 @@ +PHDRS +{ + data PT_LOAD ; + header PT_PHDR PHDRS ; /* OK */ + text PT_LOAD FILEHDR PHDRS ; +} + +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/ : { *(.*) } +} |