binary filer & linking ..

Lars Segerlund lars.segerlund@comsys.se
Tue May 20 13:21:00 GMT 2003


  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.




More information about the Binutils mailing list