[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25236] common symbol: don't consider definitions in shared objec
From: |
i at maskray dot me |
Subject: |
[Bug ld/25236] common symbol: don't consider definitions in shared objects |
Date: |
Fri, 06 Dec 2019 09:07:16 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25236
--- Comment #3 from Fangrui Song <i at maskray dot me> ---
Maybe we should discuss on the generic ABI mailing list. It is very late here
(01:00) so I'll not do that now. If you create a thread, can you CC me?
My feeling is that a STN_COMMON (STT_COMMON) definition in a shared object
should be treated as a regular definition, not a common symbol. It is subject
to copy relocations. Only STN_COMMON (STT_COMMON) from object files are
assigned st_size comparing semantics.
If we choose the interpretation that the common definition from a shared object
wins, it will break the rule that object file definitions beat shared
definitions.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, amodra at gmail dot com, 2019/12/05
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, amodra at gmail dot com, 2019/12/06
- [Bug ld/25236] common symbol: don't consider definitions in shared objects,
i at maskray dot me <=
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, amodra at gmail dot com, 2019/12/06
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, ian at airs dot com, 2019/12/06
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, i at maskray dot me, 2019/12/06
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, amodra at gmail dot com, 2019/12/06
- [Bug ld/25236] common symbol: don't consider definitions in shared objects, cvs-commit at gcc dot gnu.org, 2019/12/07