diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-10-06 16:01:53 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-10-06 16:01:53 -0400 |
commit | f4bf5658970543f26f25816b9123ecfd258bdd42 (patch) | |
tree | 80eda13e97de4bb0f7a8dc4c6b135b66aa1f1147 /link.ld | |
parent | b262bb6b956bc044144d47a5e037d4af98a19a30 (diff) |
better startup: all zig, bss and data init'd
Diffstat (limited to 'link.ld')
-rw-r--r-- | link.ld | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -23,24 +23,24 @@ SECTIONS { } > FLASH /* initialized data */ - _sidata = LOADADDR(.data); + __data_flash = LOADADDR(.data); .data : { . = ALIGN(8); - _sdata = .; + __data = .; *(.data) *(.data*) . = ALIGN(8); - _edata = .; + __data_size = . - __data; } > RAM AT > FLASH /* uninitialized data */ .bss : { . = ALIGN(8); - _sbss = .; + __bss = .; *(.bss) *(.bss*) . = ALIGN(8); - _ebss = .; + __bss_size = . - __bss; } > RAM .stack : { |