diff options
Diffstat (limited to 'tests/tcg/x86_64/system/kernel.ld')
-rw-r--r-- | tests/tcg/x86_64/system/kernel.ld | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/tcg/x86_64/system/kernel.ld b/tests/tcg/x86_64/system/kernel.ld new file mode 100644 index 000000000..ca5d6bd85 --- /dev/null +++ b/tests/tcg/x86_64/system/kernel.ld @@ -0,0 +1,36 @@ +PHDRS { + text PT_LOAD FLAGS(5); /* R_E */ + note PT_NOTE FLAGS(0); /* ___ */ +} + +SECTIONS { + . = 0x100000; + + .text : { + __load_st = .; + *(.head) + *(.text) + } :text + + .rodata : { + *(.rodata) + } :text + + /DISCARD/ : { + *(.note.gnu*) + } + + .notes : { + *(.note.*) + } :note + + .data : { + *(.data) + __load_en = .; + } :text + + .bss : { + *(.bss) + __bss_en = .; + } +} |