|
From: | meadori at codesourcery dot com |
Subject: | [Bug ld/15149] Weak reference leads to DT_NEEDED entry |
Date: | Wed, 17 Apr 2013 20:56:03 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=15149 --- Comment #9 from Meador Inge <meadori at codesourcery dot com> 2013-04-17 20:56:03 UTC --- (In reply to comment #8) > This change detects the package which behaves differently > when linked with gold. Now the linker issues an error instead > of silently adds DT_NEEDED for weak reference. We can change > error to warning. But it won't fix the package's gold problem. I must be missing something. I am not quite sure what you mean by package. The reproduction case I provided is a standalone C/C++ program that linked before the patch applied for this issue and doesn't after the patch is applied. The issue crops up because of a '__pthread_key_create' weak reference that gets pulled in from 'gthr-default.h' (which is originally derived from 'gthr-posix.h' in libgcc) as a part of the concurrency extension implementation (which I guess gets dragged in with #include <string>). With this patch applied the weak reference to '__pthread_key_create' in test.o gets tracked and thus an error is issued. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |