commit 3c07ddb43d69e35b2f6e23736c5a5ddb8e00288d
parent 2aec0f02f26857f22c42b51a82dd49b2ef214dce
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 17 Oct 2020 19:55:13 +0200
ld: Fix .text definition
Change-Id: I64833be5058e76126b1a6aedb2eea87b8dce228b
Diffstat:
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/config/toolchain/gnu.ld b/config/toolchain/gnu.ld
@@ -1,21 +1,23 @@
SECTIONS
{
- .text : {
+ .text . : {
text = .;
*crt.o(.text*)
- *(.text)
+ *(.text*)
+ *(.rodata*)
+ *(.eh_frame*)
. = ALIGN(0x1000);
etext = .;
}
- .data : {
- *(.data)
+ .data . : {
+ *(.data*)
edata = .;
}
- .bss : {
- *(.bss)
- *(COMMON)
+ .bss . : {
+ *(COMMON*)
+ *(.bss*)
end = .;
}
}