Displaying 1 result from an estimated 1 matches for "__stack_size__".
2020 Sep 01
2
[lld] [arm] Linker Cannot Set Custom Section Type to NOBITS
I am linking a program to be loaded in an ARM Cortex-M0+ based
microcontroller. In the linker script, I have a section allocated for the
stack which roughly looks like the following.
.stack : { . += __stack_size__; } > ram
Using the linker in the gcc arm toolchain, arm-none-eabi-ld, this section
is automatically set to type NOBITS, however, when linking with version
10.0.0 of ld.lld, the section type is PROGBITS.
Here is the output when using readelf.
*ld.lld*
Section Headers:
[Nr] Name T...