How do we link a C library like Newlib with a custom linker script?

1

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.

c
linker
linker-scripts
newlib
c-standard-library
asked on Stack Overflow May 6, 2019 by vb000 • edited May 7, 2019 by vb000

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0