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))
|
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 = .;
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user