Don't complain about -fPIC for undefined symbol
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Jan 2015 19:06:33 +0000 (11:06 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Jan 2015 19:08:59 +0000 (11:08 -0800)
commit6333bc0dd6e92dd5a76ba0a6890e08db2a6f7a29
treee63abc4928496451a64b4eac09e5a780ddb716b8
parentd221e7efd61fc80f6fbf862b7e32927835575329
Don't complain about -fPIC for undefined symbol

When building executable, undefined symbol is a fatal error.  We don't
complain about -fPIC if the symbol is undefined.

bfd/

PR ld/17847
* elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain
about -fPIC if the symbol is undefined when building executable.

ld/testsuite/

PR ld/17847
* ld-x86-64/pie1.d: New file.
* ld-x86-64/pie1.s: Likwise.
* ld-x86-64/x86-64.exp: Run pie1.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/pie1.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pie1.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp