patches/binutils/2.20.1/200-document-new-dtags-behaviour.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Feb 21 23:39:46 2011 +0100 (2011-02-21)
changeset 2312 8b9938edd3d8
parent 1614 3f76cdbceb6e
permissions -rw-r--r--
libc/glibc: add fortify option

By default, recent versions of glibc and eglibc will build some
functions that take format strings (eg. printf, syslog...) with
run-time checks against some format string attacks. This is
called a fortified build.

Unfortunately, this fails somehow while building the instrumented
version of syslog, with some kind of circular dependency...

Disable fortified builds by default, and hide the enabling option
behind EXPERIMENTAL for daring users...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1614
     1
Index: binutils-2.19.51.0.5/ld/ld.texinfo
yann@1614
     2
===================================================================
yann@2088
     3
yann@2088
     4
diff -durN binutils-2.20.1.orig/ld/ld.texinfo binutils-2.20.1/ld/ld.texinfo
yann@2088
     5
--- binutils-2.20.1.orig/ld/ld.texinfo	2009-07-06 15:48:51.000000000 +0200
yann@2088
     6
+++ binutils-2.20.1/ld/ld.texinfo	2010-08-17 19:32:16.000000000 +0200
yann@2088
     7
@@ -2026,8 +2026,9 @@
yann@1614
     8
 systems may not understand them. If you specify
yann@1614
     9
 @option{--enable-new-dtags}, the dynamic tags will be created as needed.
yann@1614
    10
 If you specify @option{--disable-new-dtags}, no new dynamic tags will be
yann@1614
    11
-created. By default, the new dynamic tags are not created. Note that
yann@1614
    12
-those options are only available for ELF systems.
yann@1614
    13
+created. On Gentoo, by default, the new dynamic tags are created (this
yann@1614
    14
+differs from upstream behaviour). Note that those options are only
yann@1614
    15
+available for ELF systems.
yann@1614
    16
 
yann@1614
    17
 @kindex --hash-size=@var{number}
yann@1614
    18
 @item --hash-size=@var{number}