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
> The value of long double can be set at run time by examining information
> provided by the BFD. ARM does this for the ABI, MIPS this for almost
> everything.
>
> I don't see mips-tdep.c using bfd information in it's one and only
> call to set_gdbarch_long_double_bit(), what am I overlooking?
``almost everything''?
> From: Andrew Cagney <ac131313@cygnus.com>
> Date: Fri, 19 Apr 2002 22:13:05 -0400
>
> The value of long double can be set at run time by examining information
> provided by the BFD. ARM does this for the ABI, MIPS this for almost
> everything.
>
> I see what MIPS is doing, it does it for other type.
>
> But this isn't going to help my long double case on
> sparc, the BFD information is going to look identical.
>
> It's elf_sparc 32-bit, but under Linux long double's
> are 8 bytes, and that's all she wrote. :-)
The BFD is the starting point, from there you can root around in all
sorts of nasty places. .note sections, symbols, ....
How does this Kernel, for instance, differentate between a GNU/Linux
sparc binary and a Solaris binary when doing emulation?
Andrew