elf: Correct DT_TEXTREL warning in PDE
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 19 Jun 2021 23:33:24 +0000 (16:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 19 Jun 2021 23:33:35 +0000 (16:33 -0700)
commit83b1d8f4a69ab5803ae33e05dcf14d8f26848ff2
tree83071abd40e1659806b18fb4ac93829a13695be1
parentce3ec98acd2f344ae911de3f41dd2e3c6c68b141
elf: Correct DT_TEXTREL warning in PDE

Change

ld: warning: creating DT_TEXTREL in a PIE

to

ld: warning: creating DT_TEXTREL in a PDE

on PDE.

bfd/

* elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
PDE.

ld/

* testsuite/ld-x86-64/textrel-1.err: New file.
* testsuite/ld-x86-64/textrel-1a.s: Likewise.
* testsuite/ld-x86-64/textrel-1b.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-x86-64/textrel-1.err [new file with mode: 0644]
ld/testsuite/ld-x86-64/textrel-1a.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/textrel-1b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp