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

--- Comment #9 from Cary Coutant <ccoutant at gmail dot com> ---
> When the gold linker is used, it sometimes generates duplicated symbols.
> It's not something new, and can be seen for example in
> qtbase-opensource-src 5.7.1+dfsg-2:
> 
>   1081: 00000000004caf88     0 NOTYPE  GLOBAL DEFAULT ABS __bss_start@Qt_5
>   1082: 00000000004caf88     0 NOTYPE  GLOBAL DEFAULT ABS __bss_start@Qt_5

OK, I found these two symbols in libQt5Core.so.5.7.1 (sorry, I don't know what
"qtbase-opensource-src 5.7.1+dfsg-2" refers to), but the test case only
provides this file; it doesn't provide a repro for building it.


>   /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.7.1:(*IND*+0x0): multiple
> definition of `__bss_start'
>   /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.7.1:(*IND*+0x0): multiple
> definition of `_edata'
>   /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.7.1:(*IND*+0x0): multiple
> definition of `_end'

There's only one definition of each of these symbols in libQt5Gui.so.5.7.1, so
I don't know why ld is complaining about duplicate symbols. These are shared
libraries, and it shouldn't complain about duplicates across shared libraries.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to