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 <email@example.com>:
Author: Norm Jacobs <firstname.lastname@example.org>
Date: Wed Jan 4 11:49:00 2017 +0000
When configuring GAS treat as sparcv9 target the same way as a sparc64 target.
* configure.tgt: Treat sparcv9 as sparc64.
Thanks for the patch. I have applied it to the sources.