# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/binutils/muslx32.patch # Copyright (C) 2021 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- --- binutils-2.39/ld/configure.tgt.vanilla 2022-09-01 14:25:14.933770324 +0200 +++ binutils-2.39/ld/configure.tgt 2022-09-01 14:25:58.587767722 +0200 @@ -993,11 +993,11 @@ x86_64-*-haiku*) targ_emul=elf_x86_64_haiku targ_extra_emuls="elf_x86_64 elf_i386_haiku" ;; -x86_64-*-linux-gnux32) targ_emul=elf32_x86_64 +x86_64-*-linux-*x32) targ_emul=elf32_x86_64 targ_extra_emuls="elf_x86_64 elf_i386 elf_iamcu" targ_extra_libpath="elf_i386 elf_iamcu elf_x86_64" - tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` - tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` + tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/x32//'` + tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/x32//'` ;; x86_64-*-linux-*) targ_emul=elf_x86_64 targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu" --- binutils-2.37/gold/configure.vanilla 2021-10-18 14:50:16.080292218 +0200 +++ binutils-2.37/gold/configure 2021-10-18 14:50:33.380293110 +0200 @@ -5269,7 +5269,7 @@ target_x32=no if test "$targ_obj" = "x86_64"; then case "$target" in - x86_64*-linux-gnux32) + x86_64*-linux-*x32) target_x32=yes default_size=32 ;; --- binutils-2.37/gas/configure.tgt.vanilla 2021-10-18 14:49:18.207289232 +0200 +++ binutils-2.37/gas/configure.tgt 2021-10-18 14:49:49.502290847 +0200 @@ -231,7 +231,7 @@ i386-*-openbsd*) fmt=elf em=nbsd ;; i386-*-linux-*) fmt=elf em=linux case ${cpu}-${os} in - x86_64*-linux-gnux32) arch=x86_64:32 ;; + x86_64*-linux-*x32) arch=x86_64:32 ;; esac ;; i386-*-lynxos*) fmt=elf em=lynx ;; i386-*-redox*) fmt=elf ;;