[Top] [All Lists]

Linking assembled PIC code with Linux libc library

Subject: Linking assembled PIC code with Linux libc library
From: Sergio Ruiz <>
Date: Sat, 9 Apr 2005 14:09:14 +0200
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta;; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=SL75hivYYRvQENuVO+yKsnInxdsLpmeln7ilZ2hyR9bgjlq7VGFusnnpMn9GFxeou0jLyRF5rtfNxbpNTxaPYVTOETYzCTrtZ588BLWwgYPA85pik68jcNRdexvNt3m1ejgTPnOSOWylaHAXR0rhmahFPqQ+Z5CP40wmBo5T3RE=
Original-recipient: rfc822;
Reply-to: Sergio Ruiz <>
Hi, i can't link assembled pic code against the libc running my
embedded-mips-box under debian, and this is what i do:

bluebox@bluebox:~$ as -al -EL -membedded-pic -mips1 -o prueba."o" prueba."s"

ld -L/usr/lib -lc -EL -o prueba prueba.o
ld: aviso: no se puede encontrar el símbolo de entrada __start; usando
por omisión 0000000000400280
prueba.o: En la función `main':
prueba.o(.text+0x8): relocation truncated to fit: R_MIPS_GNU_REL16_S2

I've been looking everywhere without any luck.
Any help is appreciated!

<Prev in Thread] Current Thread [Next in Thread>