This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Sparc/Linux fixes part 1
From: Andrew Cagney <ac131313@cygnus.com>
Date: Fri, 19 Apr 2002 22:46:23 -0400
How does this Kernel, for instance, differentate between a GNU/Linux
sparc binary and a Solaris binary when doing emulation?
I'm going to delete the Solaris binary support any day now as an
aside.
The two binaries look identical, the both look like elf32_sparc.
I don't know how many times I can say this.
"The binaries look identical, but we screwed up on Sparc/Linux
a long time ago and the long double type is 8 bytes instead of
the ABI mandated 16 bytes. We are in no position to change this
with the amount of existing binaries out there."
There is no distinguising characterstic in the elf header nor anywhere
else.
I can't "look at the bfd and elf bits" to "find out" what the long
double type size is. The information simply isn't there.
What the heck do you want me to do? If it's a native 32-bit Sparc
binary running on a Linux/Sparc host, the long double type is 8
bytes. That is the algorithm, and it is what I have implemented.