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

Geert Uytterhoeven
2024-10-03T07:57:48Z

Hi Andreas,

On Wed, Oct 2, 2024 at 7:00 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Okt 02 2024, Geert Uytterhoeven wrote:
>
> > + * Optional: only supported since gcc >= 11 (partial), clang >= 13
>
> This is misleading. gcc fully supports it since 11 as long as binutils
> supports SHF_GNU_RETAIN.

It fails for me with arm-linux-gnueabihf-gcc-11 (gcc version 11.4.0
(Ubuntu 11.4.0-1ubuntu1~22.04)).

$ arm-linux-gnueabihf-as -v
GNU assembler version 2.38 (arm-linux-gnueabihf) using BFD version
(GNU Binutils for Ubuntu) 2.38

In response to v1, you replied:

| 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?

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