diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-05-20 10:10:00 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@codesourcery.com> | 2011-05-20 10:10:00 +0000 |
commit | 4a73203297f58dc69d033355f166defe8950ea1c (patch) | |
tree | 05243448236dfff3d27a237cb767e562acc5862e /gas/config/tc-tic6x.h | |
parent | b3c8eb43f1e3f7d21851b3d82f9438ec372f9417 (diff) | |
download | gdb-4a73203297f58dc69d033355f166defe8950ea1c.zip gdb-4a73203297f58dc69d033355f166defe8950ea1c.tar.gz gdb-4a73203297f58dc69d033355f166defe8950ea1c.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-tic6x.h')
-rw-r--r-- | gas/config/tc-tic6x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-tic6x.h b/gas/config/tc-tic6x.h index ca85968..12bdead 100644 --- a/gas/config/tc-tic6x.h +++ b/gas/config/tc-tic6x.h @@ -142,6 +142,9 @@ typedef struct instruction, whereas a non-constant represents a DP-relative value counting in the appropriate units). */ bfd_boolean fix_adda; + /* The symbol to be subtracted in case of a PCR_H16 or PCR_L16 + reloc. */ + symbolS *fix_subsy; } tic6x_fix_info; #define TC_FIX_TYPE tic6x_fix_info #define TC_INIT_FIX_DATA(fixP) tic6x_init_fix_data (fixP) |