Placing files into output sections
Momchil Velikov
velco@fadata.bg
Mon May 15 07:52:00 GMT 2000
Alan Modra wrote:
>
> On Mon, 15 May 2000, Momchil Velikov wrote:
>
> > Is it possible to include the content of a file into an output
> > section, in a way similar to BYTE, SHORT, LONG, etc. linker
> > script statements.
>
> Use something like
>
> ld -o output obj1.o obj2.o -b binary thefile -b elf32-i386 obj3.o etc.
Thanks, this suites me just fine.
> You may need to use a linker script to put `thefile' in some place
> different from the default
I tried
...
.images : { myfile(*) }
...
with no luck :-(. Any clues ?
Regards,
-velco
More information about the Binutils
mailing list