mainGnuTLS - Support: sr #107608, duplicate entries in symbol script

 
 

sr #107608: duplicate entries in symbol script

Submitter:  Andreas Metzler <ametzler>
Submitted:  Mon 28 Feb 2011 07:07:23 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Done
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 01 Mar 2011 09:58:41 PM UTC, comment #1: 

Applied... thank you!

Nikos Mavrogiannopoulos <nmav>
Group administrator
Mon 28 Feb 2011 07:07:23 PM UTC, original submission:  

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@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.

Andreas Metzler <ametzler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by ametzler (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-01 nmav StatusNone Done
        Assigned toNone nmav
        Open/ClosedOpen Closed
    2011-02-28 ametzler Attached File- Added 0001-fix-duplicate-symbols-in-version-script.patch, #22810

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code