Re: [PATCH v2] compiler-gcc.h: Disable __retain on gcc-11
From: Geert Uytterhoeven
Date: Thu Oct 03 2024 - 04:58:28 EST
Hi Andreas,
On Thu, Oct 3, 2024 at 10:42 AM Andreas Schwab <schwab@xxxxxxxxxxxxxx> wrote:
> On Okt 03 2024, Geert Uytterhoeven wrote:
> > | That ultimately depends on binutils support for SHF_GNU_RETAIN (2.36+).
> >
> > So binutils 2.38-4ubuntu2.6 is sufficiently new, but it doesn't work?
>
> It ultimately depends on the binutils version the compiler was built
> against.
Is there an easy way to check that version?
debian/rules for the gcc-11-cross-11ubuntu1.3 source package contains:
VER_BINUTILS := 2.37-5
MIN_VER_BINUTILS := 2.37-5
so in theory it could have been built again 2.37, which is still
sufficiently new.
"dpkg -s gcc-11-arm-linux-gnueabihf" says:
Depends: [...] binutils-arm-linux-gnueabihf (>= 2.38) [...]
so I guess it was actually built against 2.38, which is OK.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds