summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/testsuite/ld-scripts/phdrs.t
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/ld/testsuite/ld-scripts/phdrs.t')
-rw-r--r--gnu/usr.bin/binutils/ld/testsuite/ld-scripts/phdrs.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/testsuite/ld-scripts/phdrs.t b/gnu/usr.bin/binutils/ld/testsuite/ld-scripts/phdrs.t
new file mode 100644
index 00000000000..8f710e23fdc
--- /dev/null
+++ b/gnu/usr.bin/binutils/ld/testsuite/ld-scripts/phdrs.t
@@ -0,0 +1,14 @@
+PHDRS
+{
+ header PT_PHDR PHDRS ;
+ text PT_LOAD FILEHDR PHDRS ;
+ data PT_LOAD ;
+}
+
+SECTIONS
+{
+ . = 0x80000 + SIZEOF_HEADERS;
+ .text : { *(.text) } :text
+ .data : { *(.data) } :data
+ /DISCARD/ : { *(.reginfo) }
+}