This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PowerPC binary tagging
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sourceware dot org
- Date: Tue, 17 Apr 2007 06:59:53 -0400
- Subject: Re: PowerPC binary tagging
- References: <20070416124544.GA31139@caradoc.them.org>
On Mon, Apr 16, 2007 at 08:45:44AM -0400, Daniel Jacobowitz wrote:
> I've encountered twice this month problems with a lack of ABI tagging
> on PowerPC binaries. Both were in the context of GDB. Andreas Schwab
> pointed out that GDB passes vectors in the wrong place for
> powerpc-linux, because GDB assumes -mabi=altivec, and a customer
> discovered that GDB assumes -mhard-float for floating point arguments.
> Of course, it's not just in GDB that this is a problem. Like on many
> other platforms, if the linker knew about the ABI issues, it could
> warn when linking different ABIs together.
>
> Has anyone thought about implementing this for PowerPC?
General summary of responses: no one thinks it's a really great idea.
I think I would pick the way Nick did this for iWMMXt: a GNU-specific
note section specifying the ABI. I'll try to implement that today, if
it turns out to be not too ugly.
--
Daniel Jacobowitz
CodeSourcery