Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/binutils-apple/files: ld64-127.2-ppc-range-warning.patch
Date: Mon, 06 Feb 2012 12:15:33
Message-Id: 20120206121522.E7C4D2004B@flycatcher.gentoo.org
1 grobian 12/02/06 12:15:22
2
3 Added: ld64-127.2-ppc-range-warning.patch
4 Log:
5 Add patch to treat 32-bits 4GB overflow problem as warning on PowerPC next to ARM and i386.
6
7 (Portage version: 2.2.01.20062-prefix/cvs/SunOS i386)
8
9 Revision Changes Path
10 1.1 sys-devel/binutils-apple/files/ld64-127.2-ppc-range-warning.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/binutils-apple/files/ld64-127.2-ppc-range-warning.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/binutils-apple/files/ld64-127.2-ppc-range-warning.patch?rev=1.1&content-type=text/plain
14
15 Index: ld64-127.2-ppc-range-warning.patch
16 ===================================================================
17 Insipred by the comment here:
18 http://bugs.freepascal.org/view.php?id=20879
19 It looks like the PPC case is missing, hence add this. Without, we get
20 linker errors for compiling packages like Python and TexLive.
21
22 --- src/ld/OutputFile.cpp
23 +++ src/ld/OutputFile.cpp
24 @@ -807,7 +807,7 @@
25 // is encoded in mach-o the same as:
26 // .long _foo + 0x40000000
27 // so if _foo lays out to 0xC0000100, the first is ok, but the second is not.
28 - if ( (_options.architecture() == CPU_TYPE_ARM) || (_options.architecture() == CPU_TYPE_I386) ) {
29 + if ( (_options.architecture() == CPU_TYPE_ARM) || (_options.architecture() == CPU_TYPE_I386) || (_options.architecture() == CPU_TYPE_POWERPC) ) {
30 // Unlikely userland code does funky stuff like this, so warn for them, but not warn for -preload
31 if ( _options.outputKind() != Options::kPreload ) {
32 warning("32-bit absolute address out of range (0x%08llX max is 4GB): from %s + 0x%08X (0x%08llX) to 0x%08llX",