This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Disable section merging with non-capable linkers
> If the guess about why the failure to merge is correct, then
> the problem is due completely to .debug_info containing
> incorrect section offsets into .debug_str. Since section
> offsets are completely and totally irrelevant to user data,
> it cannot be a problem there.
I'm viewing the problem from a more general perspective: we have a feature
called "section merging" with a configure check that is supposed to disable
it when it doesn't work. It doesn't work with GNU as + Sun ld (not only the
linker doesn't merge anything but it also refuses to concatenate sections
with SHF_MERGE and sections without SHF_MERGE, hence we end up with
effectively two kinds of sections) so I'm proposing to teach the configure
check to disable the feature in that case.
--
Eric Botcazou