ld/testsuite/
authorBernd Schmidt <bernds@codesourcery.com>
Fri, 20 May 2011 10:10:00 +0000 (10:10 +0000)
committerBernd Schmidt <bernds@codesourcery.com>
Fri, 20 May 2011 10:10:00 +0000 (10:10 +0000)
commit4a73203297f58dc69d033355f166defe8950ea1c
tree05243448236dfff3d27a237cb767e562acc5862e
parentb3c8eb43f1e3f7d21851b3d82f9438ec372f9417
ld/testsuite/
* ld-tic6x/pcr-reloc.d: New test.
* ld-tic6x/pcr-reloc.s: New test.

gas/testsuite/
* gas/tic6x/pcr-relocs.d: New test.
* gas/tic6x/pcr-relocs.s: New test.
* gas/tic6x/pcr-relocs-undef.d: New test.
* gas/tic6x/pcr-relocs-undef.s: New test.
* gas/tic6x/reloc-bad-2.s: Update for pcr_offset.
* gas/tic6x/reloc-bad-2.l: Update for pcr_offset.

bfd/
* elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
R_C6000_PCR_H16 and R_C6000_PCR_L16.
(elf32_tic6x_relocate_section): Handle them.

gas/
* config/tc-tic6x.c (tic6x_operators): Add "pcr_offset".
(tic6x_parse_name): Handle it.
(tic6x_fix_new_exp): Handle O_pcr_offset.
(tic6x_fix_adjustable): Return 0 for the new relocs.
(md_apply_fix): Handle them.
(tc_gen_reloc): Likewise.
* config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
15 files changed:
bfd/ChangeLog
bfd/elf32-tic6x.c
gas/ChangeLog
gas/config/tc-tic6x.c
gas/config/tc-tic6x.h
gas/testsuite/ChangeLog
gas/testsuite/gas/tic6x/pcr-relocs-undef.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/pcr-relocs-undef.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/pcr-relocs.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/pcr-relocs.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-2.l
gas/testsuite/gas/tic6x/reloc-bad-2.s
ld/testsuite/ChangeLog
ld/testsuite/ld-tic6x/pcr-reloc.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcr-reloc.s [new file with mode: 0644]