embed memory region information into an elf file

Massimiliano Cialdi cialdi@gmail.com
Tue Mar 31 21:04:51 GMT 2020


The context where I'm surfing is bare-metal, and gcc/binutils toolchain

Is there any magic argument of ld, or some plugin, that allows to
embed the information of memory regions (usually present in the linker
script) into the elf file?

This way I could get the information I need (name, base address and
size) directly from the elf, and I would no longer need to have the
linker script (and parse it).

best regards
Max

-- 
Et nunc, auxilium solis, vincam!
Oppugnatio solaris!
VIS!

Massimiliano Cialdi
cialdi@gmail.com



More information about the Binutils mailing list