~ubuntu-branches/debian/sid/gnat-4.4/sid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta
  • Date: 2010-05-09 23:28:13 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100509232813-bykj33gg0mc34opr
Tags: 4.4.4-2
* debian/control.m4, debian/control: make upgrades from Lenny work without
  broken packages or hard decisions.
  (gnat-4.4): replace all previous versions of gnat-X.Y.
  (libgnat{vsn,prj}4.4-dev):
  - Replace the corresponding 4.3 package in addition to Conflicting with it.
  - Suggest the -dbg package, too.
  (libgnat{vsn,prj}4.4-dbg):
  - Depend on the -dev package, too.
  - Do not recommend gnat-gdb, superseded by gdb.
  (libgnatprj4.4-dbg): do not recommend libgnatprj-dev, no longer in the archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 @item -u @var{symbol}
18
18
 @opindex u
19
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
 
@@ -730,6 +730,7 @@ proper position among the other output files.  */
23
 
 #define LINK_COMMAND_SPEC "\
24
 
 %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
25
 
     %(linker) %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\
 
20
--- a/src/gcc/gcc.c~    2010-03-21 09:32:25.000000000 +0100
 
21
+++ b/src/gcc/gcc.c     2010-03-21 09:34:26.434838978 +0100
 
22
@@ -749,6 +749,7 @@
 
23
     %{fuse-ld=gold:-use-gold} \
 
24
     %{fuse-ld=bfd:-use-ld}" \
 
25
     "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\
26
26
+    -z relro\
27
27
     %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
28
28
     %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\