Re: [PATCH v2] compiler-gcc.h: Disable __retain on gcc-11

Geert Uytterhoeven
2024-10-03T08:58:06Z

Hi Andreas,

On Thu, Oct 3, 2024 at 10:42 AM Andreas Schwab <schwab@linux-m68k.org> 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@linux-m68k.org

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