[PATCH] GCC compatibility: pass -z linker options to the linker

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 15 16:57:42 PDT 2014


On Tue, Jul 15, 2014 at 03:11:23PM -0700, Eric Christopher wrote:
> I'm sorry Joerg, you've got sufficient people disagreeing with you
> here and this is a fairly well established option in gcc that we're
> just getting compatibility with here. A warning would be both annoying
> for users and pointless. I'm going to go ahead and have the patch
> submitted.

How is -z well established when it wasn't even documented? GCC passing
unknown flags to the linker is a misfeature. Warning about it is the
very least we should do. While it might be too late for -u, no new
option should be added to this list. That said, I would like to see a
sane use case for -u, independent of whether it should be warned about
or not. I tried to use it in the past and it didn't do the things I
expected from it.

Joerg



More information about the cfe-commits mailing list