Move common symbol check after bed->common_definition
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Aug 2017 15:02:12 +0000 (08:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Aug 2017 15:02:29 +0000 (08:02 -0700)
commit2980ccad5958af178f80fd2a2a0fa781bf91b0aa
tree695fd3892c2d21a8d7261943dd707ec9a5c3b88a
parente347efc38b8b1eb6561248875c4bb2f9b074894b
Move common symbol check after bed->common_definition

bfd/

* elflink.c (elf_link_add_object_symbols): Move common symbol
check after bed->common_definition.

ld/

* testsuite/ld-elf/pr21903.s (start): Removed.
(_start): Likewise.
(__start): Likewise.
(main): Likewise.
(bar): New.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/pr21903.s