This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Placing files into output sections


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]