Re: mips64 compiler complains: linking PIC files with non-PIC files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux