This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC binary tagging


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]