This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Problem generating statically linked binaries...


Dear Ian and all,
	I have somehow managed to build the crt* files for my MIPS - R4400 based 
system running the SVR4.2 UNIX, in order to get the GNU linker working.

I am still testing and once I come with something very concrete I will send 
them to you.. I need to work on those startups for profiling also.

O.K In the process I noticed that I am not able to generate statically 
linked binaries.

If I try something like 

gcc -v -static test.c -o test 

or

gcc -v -Xlinker -Bstatic test.c - test

and other combinations ....

I get segmenation faults trying to run those binaries. 

I would like to know , whether the startup files should be modified for 
building statically linked ones....

I have compiled the startup files using the '-KPIC' option. 

Even I tried to use the startups that were not compiled with this option , 
but had no success.

Thanks for any pointers to my problem

With best regards

Koundinya