This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/77422] -fdata-sections should put each constant in its own section


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77422

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That doesn't make sense.  The mergeable sections really need to be the same,
otherwise nothing gets merged.  And, unused constants/strings in those can be
removed if nothing uses them, the linker has all the relocations into them and
can figure out what is used and what is unused.  At least I thought it was
working properly from the introduction of mergeable sections in the linker,
though haven't tried to verify that.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]