summaryrefslogtreecommitdiff
path: root/tests/contiguous-note-sections.ld
diff options
context:
space:
mode:
Diffstat (limited to 'tests/contiguous-note-sections.ld')
-rw-r--r--tests/contiguous-note-sections.ld24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/contiguous-note-sections.ld b/tests/contiguous-note-sections.ld
new file mode 100644
index 0000000..230b8dc
--- /dev/null
+++ b/tests/contiguous-note-sections.ld
@@ -0,0 +1,24 @@
+PHDRS
+{
+ headers PT_PHDR PHDRS ;
+ notes PT_NOTE;
+ text PT_LOAD FILEHDR PHDRS ;
+ data PT_LOAD ;
+ interp PT_INTERP ;
+ dynamic PT_DYNAMIC ;
+}
+
+SECTIONS
+{
+ . = SIZEOF_HEADERS;
+ . = ALIGN(4);
+
+ .note.my-section0 : { *(.note.my-section0) } :notes :text
+ .note.my-section1 : { *(.note.my-section1) } :notes :text
+
+ .interp : { *(.interp) } :text :interp
+ .text : { *(.text) } :text
+ .rodata : { *(.rodata) } /* defaults to :text */
+
+ .data : { *(.data) } :data
+}