1
# DP: Turn on -Wl,-z,relro by default.
4
gcc/doc/invoke.texi | 3 +++
6
2 files changed, 4 insertions(+), 0 deletions(-)
8
Index: b/src/gcc/doc/invoke.texi
9
===================================================================
10
--- a/src/gcc/doc/invoke.texi
11
+++ b/src/gcc/doc/invoke.texi
12
@@ -10049,6 +10049,9 @@
13
linker. When using the GNU linker, you can also get the same effect with
14
@option{-Wl,-Map=output.map}.
16
+NOTE: In Ubuntu 8.10 and later versions, for LDFLAGS, the option
17
+@option{-Wl,-z,relro} is used. To disable, use @option{-Wl,-z,norelro}.
21
Pretend the symbol @var{symbol} is undefined, to force linking of
22
Index: b/src/gcc/gcc.c
23
===================================================================
27
"%{flto|flto=*:%<fcompare-debug*} \
28
%{flto} %{flto=*} %l " LINK_PIE_SPEC \
29
"%{fuse-ld=*:-fuse-ld=%*}\
31
%X %{o*} %{e*} %{N} %{n} %{r}\
32
%{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}}\
33
%{static:} %{L*} %(mfwrap) %(link_libgcc) " SANITIZER_EARLY_SPEC " %o\