On Tue, Aug 17, 2021 at 2:40 AM Niels Möller <[email protected]> wrote: > > Maamoun TK <[email protected]> writes: > > > Forcing ELFv2 abi doesn't work for big-endian mode as this mode has no > > support for ELFv2. ppc64 linux big-endian is deprecated, it' not unexpected > > to get such issues. Dropping big-endian support for powerpc could be an > > option to solve this issue but that will be a drawback for AIX (BE) systems. > > The configuration where it didn't work was > powerpc64-openwrt-linux-musl. I'd like Nettle to work on embedded > systems whenever practical. But support depends on assistance from users > of those systems.
Musl Libc does not support ELFv1, so I don't understand how this configuration is possible. > > As I understood it, this system needs to use the v2 ABI. I would hope > it's easy to detect the abi used by the configured C compiler, and then > select the same prologue sequence as is currently used for > little-endian. I.e., one more configure test, and changing the > "ifelse(WORDS_BIGENDIAN,no," condition in powerpc64/machine.m4 to check > a different configure variable. > > I don't know how the linker detected abi incompatibility (ld error message > like "gcm-hash.o: ABI version 1 is not compatible with ABI version 2 > output"), if that's based just on the presence of the special ".opd" > section, or if there are other attributes in the ELF file, and if so, > how the assembler decides which attributes to attach. The linker looks for the special ELF attribute. Thanks, David _______________________________________________ nettle-bugs mailing list [email protected] http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
