This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
binary filer & linking ..
- From: Lars Segerlund <lars dot segerlund at comsys dot se>
- To: binutils at sources dot redhat dot com
- Date: Tue, 20 May 2003 15:21:05 +0200
- Subject: binary filer & linking ..
I have a short question,
Is it possible to include a binary file in the linking ?
What I want to do is the following:
I have a file test.bin which I want to be able to link in with my
application program, and locate by symbols.
I intend to do this by a linker script, but I can't find how to
include a binary file in the linking ? ( I can parse the file and have a
lot of BYTE(xx) statements :-) ) but there should be an easier way.
I know how to get the symbols as documented in the ld info pages, so
all that I'm stumbling on now is how to include the data.
/ regards, Lars Segerlund.