Nordlöw
Nordlöw

Reputation: 12138

Using Binutils Build on Solaris 10 Fails

I have successfully built and installed latest binutils-2.22 on Solaris 10.

But when I try to use the installed programs such as ld and or I get a run-time error:

ld.so.1: ld: fatal: relocation error: file /home/pernord/alt/bin/ld: symbol __clz_tab: referenced symbol not found

I have search extensively for the error but all the hits seems unrelated to my problem.

From what I have read __clz_tab seems related to 'libgcc`.

At least libgcc contains the symbol clz.

strings /lib/*/libgcc* | grep clz

Ideas anyone?

Upvotes: 2

Views: 848

Answers (1)

Jonathan Wakely
Jonathan Wakely

Reputation: 171293

__clz_tab is a table in libgcc used to implement a CLZ ("count leading zeros") function.

Do your binutils executables depend on libgcc_s.so? What does ldd /home/pernord/alt/bin/ld show?

If libgcc_s.so isn't in your library search path you might need to use crle(1) to add it.

Upvotes: 3

Related Questions