This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Fix executable stack directive on Linux.
ClosedPublic

Authored by manojgupta on May 15 2017, 3:23 PM.

Event Timeline

manojgupta created this revision.May 15 2017, 3:23 PM

I think this should check for GNU platforms, not GNU compatible compilers. As far as I understand we don't want this on NetBSD in both cases libunwind, llvm.

krytarowski requested changes to this revision.May 15 2017, 3:45 PM

__GNU__ is not for GCC but for GNU/Hurd.

This revision now requires changes to proceed.May 15 2017, 3:45 PM
manojgupta updated this revision to Diff 99073.May 15 2017, 3:49 PM
manojgupta edited edge metadata.

Use linux to disable executable for linux.

manojgupta updated this revision to Diff 99081.May 15 2017, 4:15 PM

Removed redundant check for Android since linux should cover it.

From the NetBSD point of view looks good.

manojgupta retitled this revision from [libunwind] Fix a check from __GNU__ to __GNUC__ for disabling executable stack. to [libunwind] Fix executable stack directive on Linux..May 15 2017, 4:24 PM
manojgupta edited the summary of this revision. (Show Details)
phosek edited edge metadata.May 15 2017, 4:43 PM

This is no longer needed on Fuchsia so we may as well take it out, but I'm also happy to send a separate change for that.

Is any further change required or can I submit it now?

krytarowski accepted this revision.May 16 2017, 12:56 PM
This revision is now accepted and ready to land.May 16 2017, 12:56 PM
manojgupta closed this revision.May 16 2017, 1:32 PM