x86-64: Check ELF_COMMON_DEF_P for common symbols
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 01:53:26 +0000 (18:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 01:55:55 +0000 (18:55 -0700)
commitad71ce8de7dba823f5fc478e6d5eba03f1a2e822
treec8b86f2fe104d14cd5f1f54f623e8bcf0f94cc0c
parent96d01d93c4025cddeff197c98c7947e2b8f427bd
x86-64: Check ELF_COMMON_DEF_P for common symbols

bfd/

PR ld/22064
* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Check
ELF_COMMON_DEF_P for common symbols.

ld/

PR ld/22064
* testsuite/ld-x86-64/pr22064a.S: New file.
* testsuite/ld-x86-64/pr22064b.c: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/22064 test.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr22064a.S [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr22064b.c [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp