qemu-patch-raspberry4/tests/tcg/x86_64/system/kernel.ld
Alex Bennée db61edad7a tests/tcg/x86_64: add a PVH crt.o for x86_64 system tests
Instead of doing the full real to 64 bit dance we are attempting to
leverage Xen's PVH boot spec to go from 32 bit to 64 bit.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2019-06-12 17:53:23 +01:00

34 lines
438 B
Plaintext

PHDRS {
text PT_LOAD FLAGS(5); /* R_E */
note PT_NOTE FLAGS(0); /* ___ */
}
SECTIONS {
. = 0x100000;
.text : {
__load_st = .;
*(.head)
*(.text)
} :text
.rodata : {
*(.rodata)
} :text
/* Keep build ID and PVH notes in same section */
.notes : {
*(.note.*)
} :note
.data : {
*(.data)
__load_en = .;
} :text
.bss : {
*(.bss)
__bss_en = .;
}
}