[U-Boot] [RFC] x86: Do no use reparm as it break libgcc linkage

Graeme Russ graeme.russ at gmail.com
Fri Nov 11 02:59:46 CET 2011


Hi Mike,

On Fri, Nov 11, 2011 at 12:55 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Thursday 10 November 2011 20:51:47 Graeme Russ wrote:
>> A few questions (I am unfamiliar with the Linux build environment):
>>
>>  a) Does Linux link to libgcc
>
> no Linux port uses libgcc.  they've always done the equivalent of
> PRIVATE_LIBGCC.  but in the case of x86, i can't see them providing any libgcc
> funcs.  so i don't think u-boot should either.
>
>>  b) Does Linux use regparm
>
> yes, it uses -mregparm=3

Well I think we have an answer - use PRIVATE_LIBGCC but do not implement
any libgcc functions and treat link errors as coding errors. If for some
bizarre reason we need to really, truly, honestly use a 64-bit libgcc
function, we'll port it over then

Regards,

Graeme


More information about the U-Boot mailing list