diff options
| -rw-r--r-- | lld/ELF/Options.td | 2 | ||||
| -rw-r--r-- | lld/docs/ld.lld.1 | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 2c356482e85..49f486325be 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -132,7 +132,7 @@ def error_unresolved_symbols: F<"error-unresolved-symbols">, defm exclude_libs: Eq<"exclude-libs", "Exclude static libraries from automatic export">; defm execute_only: B<"execute-only", - "Do not mark executable sections readable", + "Mark executable sections unreadable", "Mark executable sections readable (default)">; defm export_dynamic: B<"export-dynamic", diff --git a/lld/docs/ld.lld.1 b/lld/docs/ld.lld.1 index 3271cd80810..e008c6ec50d 100644 --- a/lld/docs/ld.lld.1 +++ b/lld/docs/ld.lld.1 @@ -144,6 +144,9 @@ Maximum number of errors to emit before stopping. A value of zero indicates that there is no limit. .It Fl -error-unresolved-symbols Report unresolved symbols as errors. +.It Fl -execute-only +Mark executable sections unreadable. This option is currently only +supported on AArch64. .It Fl -exclude-libs Ns = Ns Ar value Exclude static libraries from automatic export. .It Fl -export-dynamic , Fl E |

