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.
Paths
| Differential D134289
[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 -Wl,--no-execute-only can be used to turn this default off.
Diff Detail Event TimelineThis 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 Closed by commit rG16f735d2fbe8: [Driver] Make --execute-only the default for aarch64-fuchsia (authored by abrachet). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 461609 clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/test/Driver/fuchsia.c
|
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.