This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Placing files into output sections
- To: Momchil Velikov <velco at fadata dot bg>
- Subject: Re: Placing files into output sections
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Mon, 15 May 2000 23:58:52 +1000 (EST)
- cc: Binutils List <binutils at sourceware dot cygnus dot com>
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.