Adding library info to elf shared object

Ian Lance Taylor iant@google.com
Thu Jan 7 00:36:00 GMT 2010


Erik Rull <erik.rull@rdsoftware.de> writes:

> Ian Lance Taylor wrote:
>> Erik Rull <erik.rull@rdsoftware.de> writes:
>>
>>> Hi Ian,
>>>
>>> thanks a lot! Are there any possibilities to do that operation with
>>> gcc / ld directly during linkage process? Would make life easier :-)
>>> An option like the adding of the .so - name to the shared library content.
>>
>> See the .incbin assembler directive.
>>
>> Ian
>
> Hi Ian,
>
> err - is that cross-platform compatible? I want this to work with ARM
> and x86...

Yes, assuming you are using the GNU assembler.  It works for any GNU
assembler target.

Ian



More information about the Gcc-help mailing list