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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> ---
As I recall the behavior in GNU ld is due to SunOS.  On SunOS when a shared
library defined a common symbol it was required for the main executable to
define the symbol with the same size.  I think the shared library would then
refer to the executable's symbol, so if the size were not the same (or larger)
the program would break.  I think this approach was required for
stdin/stdout/stderr, but I may be misremembering.

If a common symbol in a shared library is going to be resolved to a common
symbol in the main executable, then it seems essential to consider the size of
the common symbol in the shared library.  If the two symbols are going to be
treated as distinct, then it doesn't matter.  So I think the resolution here
hinges on that question.

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

Reply via email to