Am Montag, den 22.09.2008, 23:32 +0800 schrieb vincen:
> dear sir
>       If I  compile this helloworld app with option "-D__PIC__ -fpic
> -msingle-pic-base",It run ok in uclinux,but why only add the option
> "-fpic ",the app can not be run?
>        Because I have compiled a library file when only added " -fpic"
> option and i have not the source code,so i don't rebuild the lib with
> option "-D__PIC__ -fpic -msingle-pic-base".After my app link the
> library, the app has been not running in uClinux.Any way to run ?
> 
>            best regards,
>              vincen
When you compile with -fpic, -msingle-pic-base must always be used to
make sure that variables can be adressed with the help of a base
register (r10) that is set up by the uClibc startup code. 

-Erwin


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to