Ryan Mansfield(deleted)
|
Re: huge of "unknown symbol" with new 4.2.1
|
Ryan Mansfield(deleted)
11/28/2007 3:25 PM
post3065
|
Re: huge of "unknown symbol" with new 4.2.1
> Hello to all,
> I have downloaded the new compiler (4.2.1) that permit to use advance
> instruction sets (like MMX, SSE*, and so on).
> I am compiling a library with this new version. All works fine until I run the
> a program that use it. At runtime I have a huge of "unknown symbol:" without
> information regarding the symbol itself.
> With the old compilers (2.95 and 3.3.5) all works fine from the build to the
> execution.
> Can the problem be the runtime linker or newer loader library?
> I have forced (in compilation) explicity visibility of the symbol, I have
> changed the library search path to the new one (such as libcpp and libc under
> 4.2.1 path), but nothing happens.
> Can anyone direct me in right direction?
Somehow R_386_NONE relocations are being generated. You can use ntox86-readelf -r to confirm. This can happen if you
link non-PIC code into PIC object. It can also be caused by a bug in the linker where it fails to clean up unused
relocations.
Please make sure you're not linking in non-PIC code. If you are sure everything is PIC, can you post a small test case
for me to look at.
Regards,
Ryan Mansfield
|
|
|