Replace "link" with "sh_link"
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Apr 2016 15:36:32 +0000 (08:36 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Apr 2016 15:36:32 +0000 (08:36 -0700)
commit7634c4e679156fc6a93ccb8b33898f5cf41eb233
tree5e4d4d1a9a6ae056bd8de7bc0d61b3a1ec84b3bf
parentd105775eea0442515e9003dc025cd927f4a1805f
Replace "link" with "sh_link"

On Linux/x86, GCC 4.2 issues a warning:

bfd/elf.c: In function ‘_bfd_elf_copy_private_bfd_data’:
bfd/elf.c:1334: warning: declaration of ‘link’ shadows a global declaration
/usr/include/unistd.h:757: warning: shadowed declaration is here
make[6]: *** [elf.lo] Error 1

Replace "link" with "sh_link" fixes it.

* elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
"sh_link".
bfd/ChangeLog
bfd/elf.c