bfd/
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 5 May 2011 16:05:19 +0000 (16:05 +0000)
committerBernd Schmidt <bernds@codesourcery.com>
Thu, 5 May 2011 16:05:19 +0000 (16:05 +0000)
commitc6a8f6e0ed6e27fff6f17d373d628fe3cce49345
treeede8b1283802db9025891810a59c135e0f1e8465
parenta3fcb948d3897e47ad7e952297ba61422757997b
bfd/
* elf32-tic6x.c (elf32_tic6x_final_link): New function.
(elf32_tic6x_merge_attributes): Do not warn for PID or PIC
mismatch.  Choose the lower of the two values.
(bfd_elf32_bfd_final_link): New macro.

ld/testsuite/
* ld-tic6x/shared-nopic.d: New test.
* ld-tic6x/shared-nopid.d: New test.
* ld-tic6x/attr-pid-21.d: Don't expect a warning; check readelf
output instead.
* ld-tic6x/attr-pid-12.d: Likewise.
* ld-tic6x/attr-pic-01.d: Likewise.
* ld-tic6x/attr-pic-10.d: Likewise.
* ld-tic6x/attr-pid-01.d: Likewise.
* ld-tic6x/attr-pid-10.d: Likewise.
* ld-tic6x/attr-pid-02.d: Likewise.
* ld-tic6x/attr-pid-20.d: Likewise.
* ld-tic6x/got-reloc-inrange.d: Pass -mpic and -mpid options to gas.
14 files changed:
bfd/ChangeLog
bfd/elf32-tic6x.c
ld/testsuite/ChangeLog
ld/testsuite/ld-tic6x/attr-pic-01.d
ld/testsuite/ld-tic6x/attr-pic-10.d
ld/testsuite/ld-tic6x/attr-pid-01.d
ld/testsuite/ld-tic6x/attr-pid-02.d
ld/testsuite/ld-tic6x/attr-pid-10.d
ld/testsuite/ld-tic6x/attr-pid-12.d
ld/testsuite/ld-tic6x/attr-pid-20.d
ld/testsuite/ld-tic6x/attr-pid-21.d
ld/testsuite/ld-tic6x/got-reloc-inrange.d
ld/testsuite/ld-tic6x/shared-nopic.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/shared-nopid.d [new file with mode: 0644]