Adding library info to elf shared object

Ian Lance Taylor iant@google.com
Mon Jan 4 18:46:00 GMT 2010


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

> Ian Lance Taylor wrote:
>> erik.rull@rdsoftware.de writes:
>>
>>> I'm searching for a possibility to add a (length limited) text comment to a
>>> shared object file so that a program is able to read them out and display
>>> them to the user. I need just something additional to the filename and
>>> soname that describes the shared object.
>>
>> See objcopy --add-section.
>>
>> Ian
>
> 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



More information about the Gcc-help mailing list