This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Placing files into output sections
- To: Alan Modra <alan at linuxcare dot com dot au>
- Subject: Re: Placing files into output sections
- From: Momchil Velikov <velco at fadata dot bg>
- Date: Mon, 15 May 2000 17:53:22 +0200
- CC: Binutils List <binutils at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.21.0005152346530.31464-100000@front.linuxcare.com.au>
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