This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

collect2 & porting [was Re: config/mips/x-mips -lmld and linux [bug] ]


Your message dated: Sun, 06 Dec 1998 19:35:08 CST
>[ Please drop egcs from any discussion of this patch. ] 

[i would, but i'm asking something better suited for egcs...]

>> egcs-1.1.1 is misdefining CLIB in gcc/Makefile when doing a make
>> bootstrap on mips-unknown-linux-gnu.  
>When I first looked at it last week, I came to the conclusion that MIPS
>support in EGCS for Linux was a hoax.  You could probably graft this
>patch into 1.1.1 pretty easily:
>	http://www.cygnus.com/ml/egcs-patches/1998-Dec/0052.html

humm, the gcc-2.7.2 patch from ftp.linux.sgi.com has a bit more
defined. 

>You will probably also need to patch that patch with a patch like this
>untested one making its debut on egcs-patches right now:

well, the 2.7.2 one seems to work.  i just did a make bootstrap w/o too
much dancing.  the one thing that seemed to help quite a but was doing a
'./configure --host=mips-unknown-linux-gnuelf' the elf seems very
important.

>> the offending lib is coming from /gcc/config/mips/x-mips:
>> # -lmld is so we can link collect2 running native.
>> CLIB            = -lmld
>And things like this support my hoax theory...

no comment.

So, i can get it to build ok now.  But, it fails miserably when trying
to compile collect2.  If i just comment out all of the collect stuff in
the makefiles, it completes the make bootstrap.  

since i'm using gnu binutils, am i going to have all sorts of problems
from skipping this step - or does gnu ld take care of this?? it does get
built on the stage1/xgcc build pass so the final gcc is passwd through
collect2...

and provided it's ok to skip the collect2 stage on the first step in the
make bootstrap, what should i be editing?  i can roughly see how to skip
it entirely, but not just on stage0...  (yes, it's likely a problem w/
gcc-2.7.2 on mips, but it's a real enough problem.)

thanks.  i'll send a patch that cleans up mips-gnuelf support as soon as
i sort out this collect2 stuff.

job



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