Hi all,
Using GNU linker ld, I'd like to create a section .rom_code grouping some routines and all its dependencies, including the implicit called ones such as math routines provided by libm.a. Going down in more details, my intention is creating a stand-alone ROM image containing several utility routines (with all its dependencies) that will be used by programs loaded in RAM. The C code is something like:
% cat test.c RAM_CODE .rodata : { *(.rodata*) } > RAM_CODE .got2 : { *(.got*) } > RAM_CODE .data : { *(.data) } > RAM_CODE .sdata : { *(.sdata*) } > RAM_CODE
.text : { *(.text .text.*) } > RAM_CODE
.rom_code : { *(.rom_code) } > ROM_CODE }
Any ideas on how to put also the rom_function() dependencies into ROM?
Tks
Walter