This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Make --execute-only the default for aarch64-fuchsia
ClosedPublic

Authored by abrachet on Sep 20 2022, 10:26 AM.

Details

Summary

Clang already generates code that doesn't use writeable data in executable
sections so the linker flag is all that is necessary.

-Wl,--no-execute-only can be used to turn this default off.

Diff Detail

Event Timeline

abrachet created this revision.Sep 20 2022, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 10:26 AM
abrachet requested review of this revision.Sep 20 2022, 10:26 AM
mcgrathr accepted this revision.Sep 20 2022, 10:48 AM
mcgrathr added inline comments.
clang/lib/Driver/ToolChains/Fuchsia.cpp
95

This is a little confusing to read when it's after the other lines.
I'd put it first in the block with a blank line after it.

This revision is now accepted and ready to land.Sep 20 2022, 10:48 AM
This revision was landed with ongoing or failed builds.Sep 20 2022, 11:26 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 11:26 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
abrachet marked an inline comment as done.Sep 20 2022, 11:26 AM
abrachet added inline comments.
clang/lib/Driver/ToolChains/Fuchsia.cpp
95

Fixed in commit