bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/21074] [2.28 Regression] bfd ld stumbles over duplicated symbo


From: nickc at redhat dot com
Subject: [Bug gold/21074] [2.28 Regression] bfd ld stumbles over duplicated symbols generated by gold
Date: Mon, 23 Jan 2017 15:39:08 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21074

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Matthias,

  Would it be possible for you to upload a small test case that reproduces this
problem.  Ideally involving just object files and test libraries so that no
compilation or system libraries are involved ?

  As for what to do about the problem, I am still pondering.  The ELF spec
says:

   "When the link editor combines several relocatable object files,
    it does not allow multiple definitions of STB_GLOBAL symbols with 
    the same name."

  But, in this particular case what we really have is a repeated definition of
the same symbol.  It would be much cleaner, IMHO, if GOLD did not create them
in the first place.  But this might be hard to achieve.  (I am not a GOLD
expert).  So maybe the bfd linker would be better off just filtering out
duplicate symbols.  Hence the desire for a test case to help examine the
situation.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]