On Mon, Jul 12, 2010 at 9:36 PM, Mark Mitchell mark@codesourcery.com wrote:
[...]
You could try to get away without a source attribute and have the linker generate fixup code when you call a function using the wrong ABI. That's theoretically possible, but it's a lot of work, and I don't really see that it's necessary.
Unfortunately, converting between ABIs requires knowledge of the type and order of arguments - so while the compiler can do it if function prototypes are appropriately marked, I think the linker probably doesn't have the information it would need to generate the required fixups... unless the .o files contain more information about function symbols that I'm currently aware of.
Cheers ---Dave