mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
6078a0b64f
While older toolchains produced binaries where the physical load address of ELF segments was the same as the virtual address, newer versions seem to choose a different physical address if it isn't specified explicitly. The means that the test kernel doesn't use the right addresses to access e.g. format strings any more and the whole output disappears, causing all test cases to fail. Fix this by specifying the physical load address of sections explicitly. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
20 lines
303 B
Plaintext
20 lines
303 B
Plaintext
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0x100000;
|
|
.text : AT(ADDR(.text)) {
|
|
*(multiboot)
|
|
*(.text)
|
|
}
|
|
.data ALIGN(4096) : AT(ADDR(.data)) {
|
|
*(.data)
|
|
}
|
|
.rodata ALIGN(4096) : AT(ADDR(.rodata)) {
|
|
*(.rodata)
|
|
}
|
|
.bss ALIGN(4096) : {
|
|
*(.bss)
|
|
}
|
|
}
|