[haiku-gsoc] Re: BResources and x86_64 binaries

On 01/08/2012 10:17, Alex Smith wrote:
> On 31 July 2012 19:32, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> 
>>> Perhaps I could change the behaviour only for ELF64 binaries?
>>
>> Absolutely. In fact it would be even better to store the resources in an
>> ELF section, so that they don't get lost when the file is processed with
>> ELF tools. Obviously that's a bit more work than just changing the
>> alignment. It's your decision.
>>
> 
> Hmm. Adding an ELF section would be the better solution but that would
> require significant modifications to the ELF file, e.g. possibly needing to
> move the location of the section header table in the file if there is not
> enough space to expand it. objcopy has a --add-section command, but we
> can't really just call objcopy from BResources. If there were a library for
> working with ELF files that could be used it would be helpful.

Well, binutils do use their own library, BFD. It's probably GPLed though.

François.

Other related posts: