elf2flt icon indicating copy to clipboard operation
elf2flt copied to clipboard

elf2flt: libbfd API issue with binutils-2.34+

Open RomainNaour opened this issue 6 years ago • 2 comments

Hi,

The latest Binutils release (2.34) is not compatible with elf2flt due to a change in bfd_section_* macros.

The issue has been reported to the Binutils mailing list but Alan Modra recommend to bundle libbfd library sources into each projects using it. That's because the API is not stable over the time without any backward compatibility guaranties.

See: https://sourceware.org/ml/binutils/2020-02/msg00044.html

Best regards, Romain

RomainNaour avatar Feb 05 '20 12:02 RomainNaour

we don't bundle bfd, and we're not going to start. it simply doesn't work for our integration model (where people are using random forked copies of binutils to support their arch/target).

we'll need to have the code detect the version and adjust API usage based on it.

vapier avatar Feb 10 '20 18:02 vapier

Hello,

I sent a PR to check the libbfd API.

Best regards, Romain

RomainNaour avatar Feb 12 '20 20:02 RomainNaour

Fixed. Romain Naour's patch applied.

gregungerer avatar Apr 18 '23 14:04 gregungerer