Re: Adding library info to elf shared object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik Rull <erik.rull@xxxxxxxxxxxxx> writes:

> Ian Lance Taylor wrote:
>> erik.rull@xxxxxxxxxxxxx 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux