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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Last reconfirmed|                            |2025-12-25
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
The fact that empty output sections are deleted is a feature, not a bug.  See
ld info doc, node Output Section Discarding.

However, I would say choosing .tdata for the symbols in the excluded .noinit
section is a bug, due to a defect in _bfd_nearby_section.  Fixing it is easy
but requires moving the function into ldlang.c so that memory regions can be
compared too when choosing a "nearby" section.  This will result in
_noinit_start and _noinit_end being tacked on to the end of .bss.

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

Reply via email to