Carl-Daniel Hailfinger wrote:
On 26.09.2009 00:03, Stefan Reinauer wrote:
programs that are compiled with non-default regparm values are miscompiled if they use libgcc. This patch works around the problem for coreboot.
- drop libgcc from coreboot_apc.o, not needed.
- wrap libgcc calls into regparm(0) variants so that coreboot can be compiled with other regparm values
Signed-off-by: Stefan Reinauer stepan@coresystems.de
I'm worried about any libgcc compiled with regparm!=0, but for now this patch improves the situation.
Is there any way around this? Using stdcall or something? We could query the compiler flags used to build gcc, but I think as long as this works for the "normal" gcc case we should be fine. If people do use odd tool chains, they're on their own..
Stefan