Potentially close #18

Needs more testing on real hardware but it works fine on QEMU
This commit is contained in:
Sateallia 2023-11-17 12:22:57 +03:00
parent 47232020b1
commit 2506338b8c
2 changed files with 1 additions and 4 deletions

View File

@ -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 = .;

View File

@ -23,4 +23,5 @@ override LDFLAGS += \
-static \
-pie \
--no-dynamic-linker \
--no-omagic \
-z noexecstack --no-warn-rwx-segments