linker_script: include subsections and provide text_{start,end}
@@ -6,13 +6,40 @@ SECTIONS
{
. = 0x7f000000;
START = .;
- .start ALIGN(4096): { *(.start)}
+
+ .start ALIGN(4096):
+ {
+ *(.start)
+ }
+
/* the default linker aligns the file and text without throwing
away a page..but for today...*/
- .text : ALIGN(4096) { *(.text)}
- .rodata : { *(.rodata)}
- .data : { *(.data) }
+ text_start = .;
+ .text : ALIGN(4096)
+ {
+ *(.text)
+ *(.text.*)
+ }
+ text_end = .;
+
+ .rodata : ALIGN(4096)
+ {
+ *(.rodata)
+ *(.rodata.*)
+ }
+
+ .data : ALIGN(4096)
+ {
+ *(.data)
+ *(.data.*)
+ }
+
PROVIDE(bss_start = .);
- .bss ALIGN(32): { *(.bss) }
+ .bss ALIGN(32):
+ {
+ *(.bss)
+ *(.bss.*)
+ *(COMMON)
+ }
PROVIDE(bss_end = .);
}
