~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/0f/0fe4dd1bbe724fd45a16f820f359a75a6ad2daf3.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Turn on -Wl,-z,relro by default.
 
2
 
 
3
---
 
4
 gcc/doc/invoke.texi |    3 +++
 
5
 gcc/gcc.c           |    1 +
 
6
 2 files changed, 4 insertions(+), 0 deletions(-)
 
7
 
 
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}.
 
15
 
 
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}.
 
18
+
 
19
 @item -u @var{symbol}
 
20
 @opindex u
 
21
 Pretend the symbol @var{symbol} is undefined, to force linking of
 
22
Index: b/src/gcc/gcc.c
 
23
===================================================================
 
24
--- a/src/gcc/gcc.c
 
25
+++ b/src/gcc/gcc.c
 
26
@@ -741,6 +741,7 @@
 
27
    "%{flto|flto=*:%<fcompare-debug*} \
 
28
     %{flto} %{flto=*} %l " LINK_PIE_SPEC \
 
29
    "%{fuse-ld=*:-fuse-ld=%*}\
 
30
+   -z relro\
 
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\