~ubuntu-branches/ubuntu/trusty/gnat-4.6/trusty-proposed

« back to all changes in this revision

Viewing changes to _MTN/debian/patches/gcc-default-relro.diff

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta, Aurelien Jarno, Ludovic Brenta, Matthias Klose, Marcin Juszkiewicz, Thorsten Glaser
  • Date: 2011-07-23 01:32:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110723013215-l72pag8p1o09ef8z
Tags: 4.6.1-2

[Aurelien Jarno]
* debian/patches/ada-mips.diff: work around a bootstrap comparison
  failure on mips and mipsel.  Closes: #634881, pending a proper fix.

[Ludovic Brenta]
* debian/patches/pr49819.diff: new.  Closes: #635112.

Merge from gcc-4.6 (4.6.1-4) unstable; urgency=low

* Update to SVN 20110714 (r176280) from the gcc-4_6-branch.
  - Fix PR tree-optimization/49094, PR target/39633, PR c++/49672,
    PR fortran/49698, PR fortran/49690, PR fortran/49562, PR libfortran/49296,
    PR target/49487, PR tree-optimization/49651, PR ada/48711.

[ Matthias Klose ]
* Build Go on alpha for gcc-snapshot builds.
* For multicore ARM, clear both caches, not just the dcache (proposed
  patch by Andrew Haley).
* Fix for PR rtl-optimization/{48830,48808,48792}, taken from the trunk.
  LP: #807573.
* Fix PR tree-optimization/49169, optimisations strip the Thumb/ARM mode bit
  off function pointers (Richard Sandiford). LP: #721531.

[ Marcin Juszkiewicz ]
* Define DEB_TARGET_MULTIARCH macro.
* debian/rules2: Macro and configuration consolidation.

Merge from gcc-4.6 (4.6.1-3) unstable; urgency=medium

* Update to SVN 20110709 (r176108) from the gcc-4_6-branch.
  - Fix PR target/49335, PR tree-optimization/49618, PR c++/49598,
    PR fortran/49479, PR target/49621, PR target/46779, PR target/49660,
    PR c/49644, PR debug/49522, PR debug/49522, PR middle-end/49640,
    PR c++/48157, PR c/49644, PR fortran/48926.
  - Apparently fixes a boost issue. Fixes: #632938.
* Apply proposed patch for PR fortran/49690. Fixes: #631204.

* README.Debian: New section 'Former and/or inactive maintainers'.

Merge from gcc-4.6 (4.6.1-2) unstable; urgency=medium

* Update to SVN 20110705 (r175840) from the gcc-4_6-branch.
  - Fix PR target/47997, PR c++/49528, PR c++/49440, PR c++/49418,
    PR target/44643, PR tree-optimization/49615, PR tree-optimization/49572,
    PR target/34734, PR tree-optimization/49539, PR tree-optimizations/49516,
    PR target/49089, PR rtl-optimization/49014, PR target/48273,
    PR fortran/49466, PR libfortran/49296, PR libffi/46660, PR debug/49262,
    PR rtl-optimization/49472, PR rtl-optimization/49619, PR fortran/49623,
    PR fortran/49540.

[ Matthias Klose ]
* Do not install the spu and hppa64 cross compilers into the multiarch path.
* Update the Linaro support to 20110704.

[ Thorsten Glaser ]
* Apply changes from src:gcc-4.4 for m68k support. Fixes: #632380.
  - debian/rules.defs: Remove m68k from locale_no_cpus.
  - debian/patches/gcc-multiarch.diff: Add m68k multiarch_mappings.
  - debian/patches/pr43804.diff: Fix backported from SVN.
  - debian/rules.patch: Add pr43804.

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
 
--- a/src/gcc/doc/invoke.texi
9
 
+++ b/src/gcc/doc/invoke.texi
10
 
@@ -9216,6 +9216,9 @@
11
 
 linker.  When using the GNU linker, you can also get the same effect with
12
 
 @samp{-Wl,-Map=output.map}.
13
 
 
14
 
+NOTE: In Ubuntu 8.10 and later versions, for LDFLAGS, the option
15
 
+@option{-Wl,-z,relro} is used.  To disable, use @option{-Wl,-z,norelro}.
16
 
+
17
 
 @item -u @var{symbol}
18
 
 @opindex u
19
 
 Pretend the symbol @var{symbol} is undefined, to force linking of
20
 
--- a/src/gcc/gcc.c
21
 
+++ b/src/gcc/gcc.c
22
 
@@ -661,6 +661,7 @@
23
 
     }"PLUGIN_COND_CLOSE" \
24
 
     %{flto|flto=*:%<fcompare-debug*} \
25
 
     %{flto} %{flto=*} %l " LINK_PIE_SPEC \
26
 
+   " -z relro "\
27
 
    "%X %{o*} %{e*} %{N} %{n} %{r}\
28
 
     %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}}\
29
 
     %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\