[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] auto-generate libgcc.h

From: rubisher
Subject: Re: [PATCH] auto-generate libgcc.h
Date: Wed, 21 Oct 2009 15:55:16 +0000
User-agent: Mozilla-Thunderbird (X11/20090701)

Vladimir 'phcoder' Serbinenko wrote:
Robert Millan wrote:
This should be a much cleaner option than maintaining libgcc.h by hand.  Only
tested on sparc, but it should also cast out the build problems on powerpc.

1) Doesn't work in cross-compiler environment. You confused CC and TARGET_CC

Tbh, when I look in the libgcc.h, excepted the header, it was empty. It seems that the forked sh doesn't known anything about CC, so I tried:
+       CC=$(TARGET_CC) /bin/sh $< > $@ || (rm -f $@; exit 1)

2) Symbols don't get included into symlist.c so it's unlikely to work.
Well, finaly it doesn't help a lot, the dpkg-build... still failed at the same 

_restgpr_29_x in boot is not defined

Just note that it's not any more _restgpr_31_x(), I presume just because nm 
list it first?

I'll test on imac g3 today
3) Even if it works it would result in a largely bloated kernel.img due
to unused libgcc routines

Well, whatever src tree (svn 2641, 2642, dpkg 1.9-beta3, 1.9-beta4) which I reach to all build with gcc-4.3, it always failed to boot:

Welcome to GRUB!

the symbol `__lshrdi3' not found
Aborted. Press any key to exit.

As I am newbe to grub2 (and have few programming knowledge), can you advise me 
if it's a well known issue?

Thanks for all effort,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]