On Mon, Oct 04, 2010 at 01:48:53PM -0400, Peter Jones wrote:
On 10/04/2010 01:01 PM, Alberto Bertogli wrote:
> Do you have any idea what may be causing this?
Do you get the same problem if you invoke /usr/bin/ld.bfd instead of just "ld"?
Yes.
$ ld -o libccheck.so -lc -shared && ldd libccheck.so
not a dynamic executable
$ /usr/bin/ld.bfd -o libccheck.so -lc -shared && ldd libccheck.so
not a dynamic executable
Both generated files are identical.
I also checked and /etc/alternatives/ld points to ld.bfd.
I'm guessing that you're hitting ld.gold by default and
it's behaving slightly
differently than the old binutils linker did.
Actually, using ld.gold by hand complains about -lc and doesn't even link.
Thanks,
Alberto