Re: ld: fatal: too many symbols require `small' PIC references
- From: Dirk Noß <dirknoss@xxxxxx>
- Date: Tue, 04 Nov 2008 19:49:13 +0100
I was linking a lot of libraries on Solaris10 sun studio 12 and I got
the following errors:
ld: fatal: too many symbols require `small' PIC references:
have 3942, maximum 2048 -- recompile some modules -K PIC.
*** Error code 1
make: Fatal error: Command failed for target
of course I tried to re-compile my code using -K PIC I mean c-code,
but it did not solve my problem
How did you try this?
I mean, what files did you recompile?
The Option "pic" resp. "PIC" refers to POSITION INDEPENDENT CODE.
The error message indicates, that there are too many symbols, which have
to be resolved at runtime (not really, but my english is not adequate to
The difference between "pic" and "PIC" is the size of this table for
So, to have some visible results, you shoild consider recompiling you
Libs with "-K PIC", and not your application.
Another point - refereably to check first - is:
Why do you have so many exported symbols?
Could you please at least describe, what kind of code you are working
on? Could post your Makefiles?
The option for linking are: CC -g -qoption ld -i -G.
any idea please?
- Prev by Date: Re: TCP socket, shutdown, eats last few bytes in buffer (rarely)
- Next by Date: Re: TCP socket, shutdown, eats last few bytes in buffer (rarely)
- Previous by thread: TCP socket, shutdown, eats last few bytes in buffer (rarely)
- Next by thread: Re: controlling terminal and virtual terminal