1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: architecture/sparc64/pkg_binutils.diff
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- SDE-COPYRIGHT-NOTE-END ---
17 As GCC, we want the the linker to use elf32 by default, otherwise we would
18 have to patch packages like mozilla* or exact-image (and potentially other
19 exact-build based packages) that assume they can "pre"-link objects using
20 "ld -r". Of course the linker should accept the the default compiler output,
23 - Rene Rebe <rene@exactcode.de>
25 --- binutils-2.17.50.0.2/ld/configure.tgt.vanilla 2006-07-24 19:31:25.000000000 +0000
26 +++ binutils-2.17.50.0.2/ld/configure.tgt 2006-07-24 19:33:11.000000000 +0000
28 targ_extra_emuls="elf32_sparc sun4"
29 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
30 tdir_sun4=sparc-sun-sunos4 ;;
31 -sparc64-*-linux-*) targ_emul=elf64_sparc
32 - targ_extra_emuls="elf32_sparc sparclinux sun4"
33 - targ_extra_libpath=elf32_sparc
34 - tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
35 - tdir_sparclinux=${tdir_elf32_sparc}aout
36 +sparc64-*-linux-*) targ_emul=elf32_sparc
37 + targ_extra_emuls="sparclinux elf64_sparc sun4"
38 + targ_extra_libpath=elf64_sparc
39 + tdir_sparclinux=${targ_alias}aout
40 + tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
41 tdir_sun4=sparc-sun-sunos4 ;;
42 sparc*-*-linux-*) targ_emul=elf32_sparc
43 targ_extra_emuls="sparclinux elf64_sparc sun4"