This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker not able to locate std libraries


Hi,

As per the MIPS3264.pdf Secssion1., I tried building the hello.c program using the following command

mipsisa32-elf-gcc -g hello.c –Tatlas32.ld -o hello.exe

It worked very well & built the hello.exe

Then I thought of trying the compile & link separately using the following commands...

mipsisa32-elf-gcc -c hello.c -o hello.o
mipsisa32-elf-ld –g –Tatlas32.ld -o hello.exe –oformat elf32-littlemips hello.o

Now the linker is reporting with “cannot open linker script file atlas32.ld: No such file or directory”

Why is this happening & that to it happens only when I split the build process into compile & link with 2 separate commands?

To get around this, I copied the atlas.ld to the same directory where I am building, I get Similar errors for libc.a & libgcc.a files.

In my actual application I have to do it in this faction.. Compile all the .c & .s file into .o & then finally link them all into an elf (.exe). While linking I run into problems (The linker is not able to locate the standard linker scripts & standard library files (libc.a, libgcc.a & like).

Please do help me...

Thanks,
-Mike.


_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp


------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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