2 Now that GNU binutils targets 64-bit by default, gcc needs to explicitly
3 pass --32 to the assembler.
5 --- illumos-gcc-0f5ed4c/gcc/config/i386/sol2-10.h.orig
6 +++ illumos-gcc-0f5ed4c/gcc/config/i386/sol2-10.h
10 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
11 - "%{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)"
12 + "%{Wa,*:%*} %{!m64:--32} %{m64:--64} -s %(asm_cpu)"
14 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
15 "%{Wa,*:%*} %{m32:-xarch=generic} %{m64:-xarch=generic64} " \
16 --- illumos-gcc-0f5ed4c/gcc/configure.orig
17 +++ illumos-gcc-0f5ed4c/gcc/configure
18 @@ -22108,7 +22108,7 @@
19 leal foo@NTPOFF(%ecx), %eax'
22 - tls_as_opt=--fatal-warnings
23 + tls_as_opt="-32 --fatal-warnings"
27 --- illumos-gcc-0f5ed4c/gcc/configure.ac.orig
28 +++ illumos-gcc-0f5ed4c/gcc/configure.ac
30 leal foo@NTPOFF(%ecx), %eax'
33 - tls_as_opt=--fatal-warnings
34 + tls_as_opt="-32 --fatal-warnings"