bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/23570] AVR .noinit section defaults to PROGBITS used to be NOBI


From: rauter.gabriel at gmail dot com
Subject: [Bug gas/23570] AVR .noinit section defaults to PROGBITS used to be NOBITS
Date: Mon, 03 Sep 2018 15:49:56 +0000

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

--- Comment #2 from Gabriel Rauter <rauter.gabriel at gmail dot com> ---
Hi Nick,

yes the patch fixes the issue and the .noinit section gets correctly set to
NOBITS. Sadly i can not comment on other special sections since i only
investigated this issue since it broke a popular custom keyboard firmware when
using avr-gcc 8.2. https://github.com/qmk/qmk_firmware/issues/3657

But as far as i can tell the .noinit section is the only one who needs to be
set to NOBITS since the section is part of the .bss section.
https://www.nongnu.org/avr-libc/user-manual/mem_sections.html

I am quiet unsure why gcc stopped setting NOBITS for the .noinit section. They
still warn you when you try to initialize a variable set to the .noinit section
tough. And it looks like they set the bss flags even commenting it should be
nobits
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/avr/avr.c?revision=257301&view=markup#l10322.

Thanks for your help
Gabriel

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]