[sr #107608] duplicate entries in symbol script
Andreas Metzler
INVALID.NOREPLY at gnu.org
Mon Feb 28 20:07:23 CET 2011
URL:
<http://savannah.gnu.org/support/?107608>
Summary: duplicate entries in symbol script
Project: GnuTLS
Submitted by: ametzler
Submitted on: Mo 28 Feb 2011 20:07:23 CET
Category: None
Priority: 5 - Normal
Severity: 2 - Minor
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
Quoting lib/libgnutls.map from 2.10.5:
-------------------------
GNUTLS_2_8
{
global:
[...]
gnutls_session_ticket_key_generate;
gnutls_session_ticket_enable_client;
gnutls_session_ticket_enable_server;
} GNUTLS_1_4;
GNUTLS_2_10
{
global:
gnutls_session_ticket_key_generate;
gnutls_session_ticket_enable_client;
gnutls_session_ticket_enable_server;
[...]
--------------------------
Note how the three symbols are listed in both GNUTLS_2_8 and GNUTLS_2_10
sections. Only one of the entries is actually used, GNU binutils (both ld and
gold) use the first match, as can be seen in the final binaries:
ametzler at argenau:/tmp/GNUTLS/gnutls.git$ objdump -T
/tmp/GNUTLS/libgnutls26_2.10.5-1/usr/lib/libgnutls.so.26.16.14 | grep -E
'gnutls_session_ticket_enable_client|gnutls_session_ticket_enable_server|gnutls_session_ticket_key_generate'
00046310 g DF .text 0000006a GNUTLS_2_8
gnutls_session_ticket_enable_client
00046f80 g DF .text 00000102 GNUTLS_2_8
gnutls_session_ticket_key_generate
00046e80 g DF .text 000000f6 GNUTLS_2_8
gnutls_session_ticket_enable_server
gold actually warns about this error:
/usr/bin/ld: warning: using 'GNUTLS_2_8' as version for
'|gnutls_session_ticket_enable_client' which is also named in version
'GNUTLS_2_10' in script
/usr/bin/ld: warning: using 'GNUTLS_2_8' as version for
'gnutls_session_ticket_enable_server' which is also named in version
'GNUTLS_2_10' in script
/usr/bin/ld: warning: using 'GNUTLS_2_8' as version for
'gnutls_session_ticket_key_generate' which is also named in version
'GNUTLS_2_10
Trivial patch for remotes/origin/gnutls_2_10_x attached. The issue is also
present in HEAD.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mo 28 Feb 2011 20:07:23 CET Name:
0001-fix-duplicate-symbols-in-version-script.patch Size: 904B By: ametzler
bugfix
<http://savannah.gnu.org/support/download.php?file_id=22810>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?107608>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
More information about the Gnutls-devel
mailing list