Update a --help message and add -execute-only to the man page.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@343032 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/ELF/Options.td b/ELF/Options.td
index 2c35648..49f4863 100644
--- a/ELF/Options.td
+++ b/ELF/Options.td
@@ -132,7 +132,7 @@
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/docs/ld.lld.1 b/docs/ld.lld.1
index 3271cd8..e008c6e 100644
--- a/docs/ld.lld.1
+++ b/docs/ld.lld.1
@@ -144,6 +144,9 @@
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