Re: How to create a ROM library using GNU gcc and ld?



On Mar 31, 3:01 am, wyse0...@xxxxxxxxxxxx wrote:
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

You could use partial linking.

Use: ld -r with your object files and libraries to generate another .o
file.

Name this .o file explicitly in your linker script to put it in the
ROM area.
.



Relevant Pages

  • How to group objects from static library in a section?
    ... Using GNU linker ld, I'd like to create a section .rom_code ... ones such as math routines provided by libm.a. ... several utility routines (with all its dependencies) that will be used ... The sin() was placed in .text and not in .rom_code: ...
    (comp.lang.c)
  • How to create a ROM library using GNU gcc and ld?
    ... Using GNU linker ld, I'd like to create a section .rom_code ... some routines and all its dependencies, ... ones such as math routines provided by libm.a. ... The sin() was placed in .text and not in .rom_code: ...
    (comp.arch.embedded)
  • Re: How to group objects from static library in a section?
    ... Using GNU linker ld, I'd like to create a section .rom_code ... ones such as math routines provided by libm.a. ... several utility routines (with all its dependencies) that will be used ... everything to do with your particular tool set and target. ...
    (comp.lang.c)
  • Re: Generating documentation on the structure of a program
    ... student who wrote the code but didn't care to show the structure of ... Now i have to guess what the dependencies are, i mean, ... routines that it calls and vice versa. ...
    (comp.lang.fortran)