aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texi
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-06-17 09:57:40 -0700
committerFangrui Song <maskray@google.com>2021-06-17 09:57:40 -0700
commite8f6c2a5bab10b039a12b69a30a8248c91161e11 (patch)
tree4ced3beb85ae6e760db5aa1c291f7e1a06282d93 /ld/ld.texi
parent2af6d46fd331b8e632bb9245614bad0c974392a4 (diff)
downloadgdb-e8f6c2a5bab10b039a12b69a30a8248c91161e11.zip
gdb-e8f6c2a5bab10b039a12b69a30a8248c91161e11.tar.gz
gdb-e8f6c2a5bab10b039a12b69a30a8248c91161e11.tar.bz2
ld: Add -no-pie
gold has had this option for many years. Not having this option caused some confusion to users. The help message clarifies the default state. ld/ * ldlex.h (enum option_values): Add OPTION_NO_PIE. * lexsup.c (struct ld_options): Add -no-pie. (parse_args): Handle -no-pie. * ld.texi: Document -no-pie.
Diffstat (limited to 'ld/ld.texi')
-rw-r--r--ld/ld.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ld.texi b/ld/ld.texi
index e16c638..f810536 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -2150,6 +2150,11 @@ address the OS chooses for them (which can vary between invocations). Like
normal dynamically linked executables they can be executed and symbols
defined in the executable cannot be overridden by shared libraries.
+@kindex -no-pie
+@item -no-pie
+@cindex position dependent executables
+Create a position dependent executable. This is the default.
+
@kindex -qmagic
@item -qmagic
This option is ignored for Linux compatibility.