Re: odd endianness toolchains for crosstool
From: Jason A. Donenfeld
Date: Mon Apr 25 2022 - 13:21:07 EST
On Mon, Apr 25, 2022 at 07:01:57PM +0200, Jason A. Donenfeld wrote:
> For ppc32? I'm unable to produce working executables with the toolchain.
> And looking at the target info, -msecure-plt is missing, while
> -mlong-double-64 is there:
> $ ./powerpc-linux-gcc -Q --help=target | grep long-double
> -mlong-double- 64
> $ ./powerpc-linux-gcc -Q --help=target | grep msecure-plt
> -msecure-plt [disabled]
And looking at the actual sections of the binary, indeed the .plt
section is RWX, which means it's not getting -msecure-plt as it should.