I'm porting newlib for a manycore architecture being developed in our research group. Up until now, we were writing bare metal code with a minimal crt.S and a linker script. The manycore processor can be programmed using single program multiple data (SPMD) programming model. It requires thread-specific sections to be placed into the region 0x1000-0x2000
. While the rest of the program should be placed after 0x80000000
. How can I handle myriad number of input sections found in default link script with our custom link script?
Or, is there a way to use newlib's default linker script along with our custom script? So that, all contents from lib*.a
would be linked with newlib's link script and that linked content can be placed after 0x80000000
by the custom script.
User contributions licensed under CC BY-SA 3.0