Potentially close #18
Needs more testing on real hardware but it works fine on QEMU
This commit is contained in:
parent
47232020b1
commit
2506338b8c
@ -10,7 +10,6 @@ SECTIONS
|
||||
KEEP(*(.text.boot))
|
||||
*(.text)
|
||||
}
|
||||
. = ALIGN(4096); /* align to page size */
|
||||
__text_end = .;
|
||||
|
||||
__rodata_start = .;
|
||||
@ -18,7 +17,6 @@ SECTIONS
|
||||
{
|
||||
*(.rodata)
|
||||
}
|
||||
. = ALIGN(4096); /* align to page size */
|
||||
__rodata_end = .;
|
||||
|
||||
__data_start = .;
|
||||
@ -26,7 +24,6 @@ SECTIONS
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
. = ALIGN(4096); /* align to page size */
|
||||
__data_end = .;
|
||||
|
||||
__bss_start = .;
|
||||
@ -35,7 +32,6 @@ SECTIONS
|
||||
bss = .;
|
||||
*(.bss)
|
||||
}
|
||||
. = ALIGN(4096); /* align to page size */
|
||||
__bss_end = .;
|
||||
__bss_size = __bss_end - __bss_start;
|
||||
__end = .;
|
||||
|
@ -23,4 +23,5 @@ override LDFLAGS += \
|
||||
-static \
|
||||
-pie \
|
||||
--no-dynamic-linker \
|
||||
--no-omagic \
|
||||
-z noexecstack --no-warn-rwx-segments
|
||||
|
Loading…
Reference in New Issue
Block a user