aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/phdrs.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/phdrs.t')
-rw-r--r--ld/testsuite/ld-scripts/phdrs.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/phdrs.t b/ld/testsuite/ld-scripts/phdrs.t
new file mode 100644
index 0000000..8f710e2
--- /dev/null
+++ b/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) }
+}