CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/07/22 09:39:15
Modified files:
gnu/usr.bin/binutils-2.17/bfd: elflink.c
Log message:
Prefer the definition of a variable in the executable over a definition
in a shared library, even for commons. This is what the current generation
of linkers (current bfd, gold, lld) do. This fixes the
relocation R_X86_64_PC32 against `xxx' can not be used when making a
shared object; recompile with -fPIC
warnings that we have seen in ports with clang.
This change is somewhat suspect as a similar change was reverted in upstream
binutils at some point. However that was for another corner case on an
architecture (s390) that we do not run on.
Tested by naddy@, sthen@