mips64 compiler complains: linking PIC files with non-PIC files
jestin james
james.jestin@gmail.com
Fri Apr 25 05:29:00 GMT 2014
Hi,
Passing the LD Flag "--no-warn-mismatch" (-Wl,--no-warn-mismatch")
helped me to suppress the warning to go ahead with dejagnu tests.
Still yet to know:
1. How do we know whether a binary is PIC file or non-PIC file?
2. How do I know which are the non-PIC files in this case? (crt1.o was
built with -fPIC)
I am using gcc 4.2.1.
Thanks in advance for your time.
~Jestin
On Fri, Apr 25, 2014 at 10:22 AM, jestin james <james.jestin@gmail.com> wrote:
> Hi,
>
> I have built my mips64 cross compiler and simple programs are running
> on the target board.
> But while compiling, it shows the following warning:
> mips64-xxx-ld: /path/to/sysroot/usr/lib/crt1.o: warning: linking PIC
> files with non-PIC files
>
> How do we know whether a file is PIC file or non-PIC file?
> How do I know which are the non-PIC files in this case? (crt1.o was
> built with -fPIC)
>
> Is there a way to suppress this warning temporarily? Due to this
> warning my dejagnu test cases are failing.
>
> Regards,
> Jestin
More information about the Gcc-help
mailing list