Created attachment 9723 [details] proposed fix to gas/configure.tgt for sparcv9* After configuring binutils --build=sparcv9-sun-solaris2.11, I expected that gas(1) would not just be a 64-bit executable, but that it would generate 64-bit objects by default, similar to GCC. Instead, it generates 32-bit objects by default. After some digging I found that gas/configure.tgt currently checks for a number of variants of sparc, but eventually hits 'sparc*' and sets arch to 'sparclite'. It seems like sparcv9 and sparc64 should be equivalent and set arch=v9-64,
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=10ab38d930db6159b93082dfe5e41761bdc0d70b commit 10ab38d930db6159b93082dfe5e41761bdc0d70b Author: Norm Jacobs <norm.jacobs@oracle.com> Date: Wed Jan 4 11:49:00 2017 +0000 When configuring GAS treat as sparcv9 target the same way as a sparc64 target. PR gas/20992 * configure.tgt: Treat sparcv9 as sparc64.
Hi Norm, Thanks for the patch. I have applied it to the sources. Cheers Nick