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


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.

You may need to use a linker script to put `thefile' in some place
different from the default, and of course the `-b elf32-i386' may need to
be different for your system.  The linker creates some symbols that allow
you to access `thefile' data from other object files.

-- 
Linuxcare.  Support for the Revolution.


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