linker script LMA fix

This commit is contained in:
quackerd 2023-11-18 00:11:02 +08:00
parent 0ecfc3f99c
commit a32ba94b9f

View File

@ -10,7 +10,7 @@ SECTIONS
PROVIDE (__executable_start = SEGMENT_START("text-segment",
0xFFFF800000400000));
. = SEGMENT_START("text-segment", 0xFFFF800000400000) + SIZEOF_HEADERS;
.text :
.text : AT(SEGMENT_START("text-segment", 0xFFFF800000400000) + SIZEOF_HEADERS - 0xFFFF800000000000)
{
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.text.unlikely .text.*_unlikely .text.unlikely.*)