This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/77422] -fdata-sections should put each constant in its own section
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 31 Aug 2016 16:25:42 +0000
- Subject: [Bug middle-end/77422] -fdata-sections should put each constant in its own section
- Auto-submitted: auto-generated
- References: <bug-77422-4@http.gcc.gnu.org/bugzilla/>
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.