https://sourceware.org/bugzilla/show_bug.cgi?id=27412

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2021-02-13
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Sergei Trofimovich from comment #0)
> When building current linux-5.10 (or master) with gcc-11/binutins-2.36 gas
> complains about incorrect (used) section flags. Minimal reproducer:
> 
> $ cat bug.c
>     static const int _note_55 __attribute__((__used__))
> __attribute__((section(".note.Linux"))) = 42;
> 
> $ gcc-11.0.0 -c bug.c -o bug-11.o -fno-ident
>   /tmp/ccJ9p7TD.s: Assembler messages:
>   /tmp/ccJ9p7TD.s:3: Warning: setting incorrect section attributes for
> .note.Linux

This is an assembler bug.

> 
> Is it a real problem or a false positive warning? Currently
> gcc-11/binutils-2.36 generates kernels that can't load some modules and
> complain about a bunch of orphan sections. I wonder if this warhing is
> related and somehow affects future linking.

Please try:

https://github.com/hjl-tools/linux/commit/d97c4aeb041b756861bb16ee895e2616f4b4061a

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to