Dash:
[t2-trunk.git] / architecture / sparc64 / pkg_binutils.diff
blobf6fc7f166e1053c3df6303a9af9712e00e2efd40
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/sparc64/pkg_binutils.diff
5 # Copyright (C) 2006 - 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
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
14 # version.
15 # --- T2-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,
21 by default as well.
23 - Rene Rebe <rene@exactcode.de>
25 --- binutils-2.34/ld/configure.tgt.vanilla 2020-02-05 19:12:07.555475478 +0100
26 +++ binutils-2.34/ld/configure.tgt 2020-02-05 19:13:23.855475515 +0100
27 @@ -843,10 +843,10 @@
28 targ_extra_libpath=$targ_extra_emuls
29 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
31 -sparc64-*-linux-*) targ_emul=elf64_sparc
32 - targ_extra_emuls="elf32_sparc"
33 - targ_extra_libpath=elf32_sparc
34 - tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
35 +sparc64-*-linux-*) targ_emul=elf32_sparc
36 + targ_extra_emuls="elf64_sparc"
37 + targ_extra_libpath=elf64_sparc
38 + tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/32//'`
40 sparc64-*-*bsd*) targ_emul=elf64_sparc
41 targ_extra_emuls="elf32_sparc"
42 --- binutils-2.34/gas/configure.tgt.vanilla 2020-06-30 12:06:38.560577820 +0200
43 +++ binutils-2.34/gas/configure.tgt 2020-06-30 12:06:52.316577827 +0200
44 @@ -100,7 +100,7 @@
45 score*) cpu_type=score endian=big ;;
46 sh*le) cpu_type=sh endian=little ;;
47 sh*) cpu_type=sh endian=big ;;
48 - sparc64* | sparcv9*) cpu_type=sparc arch=v9-64 ;;
49 + sparc64* | sparcv9*) cpu_type=sparc arch=v8a ;;
50 sparc86x*) cpu_type=sparc arch=sparc86x ;;
51 sparclet*) cpu_type=sparc arch=sparclet ;;
52 sparclite*) cpu_type=sparc arch=sparclite ;;