From 378a028d91a1e7536f95ef9e3233374160581f68 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 25 Sep 2018 21:39:08 +0000 Subject: [PATCH] Update a --help message and add -execute-only to the man page. llvm-svn: 343032 --- lld/ELF/Options.td | 2 +- lld/docs/ld.lld.1 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 2c356482e859..49f486325be9 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 3271cd808101..e008c6ec50df 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