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)) KEEP(*(.text.boot))
*(.text) *(.text)
} }
. = ALIGN(4096); /* align to page size */
__text_end = .; __text_end = .;
__rodata_start = .; __rodata_start = .;
@ -18,7 +17,6 @@ SECTIONS
{ {
*(.rodata) *(.rodata)
} }
. = ALIGN(4096); /* align to page size */
__rodata_end = .; __rodata_end = .;
__data_start = .; __data_start = .;
@ -26,7 +24,6 @@ SECTIONS
{ {
*(.data) *(.data)
} }
. = ALIGN(4096); /* align to page size */
__data_end = .; __data_end = .;
__bss_start = .; __bss_start = .;
@ -35,7 +32,6 @@ SECTIONS
bss = .; bss = .;
*(.bss) *(.bss)
} }
. = ALIGN(4096); /* align to page size */
__bss_end = .; __bss_end = .;
__bss_size = __bss_end - __bss_start; __bss_size = __bss_end - __bss_start;
__end = .; __end = .;

View File

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