diff options
author | Tom Rix <trix@redhat.com> | 2002-05-31 01:07:21 +0000 |
---|---|---|
committer | Tom Rix <trix@redhat.com> | 2002-05-31 01:07:21 +0000 |
commit | 1b164155d99ce479dd12bd4004447719a2af0db5 (patch) | |
tree | 456154b0a7285a15e6488c56b97314e43cb796d8 /bfd/coff-rs6000.c | |
parent | 9ce5c36a4b3ab64d6cd1ee189e6c566370d1761c (diff) | |
download | binutils-gdb-1b164155d99ce479dd12bd4004447719a2af0db5.tar.gz |
Add 16 bit R_RBA.
Diffstat (limited to 'bfd/coff-rs6000.c')
-rw-r--r-- | bfd/coff-rs6000.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index f560c7f1968..6d5597875aa 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -948,6 +948,21 @@ reloc_howto_type xcoff_howto_table[] = 0xffff, /* dst_mask */ false), /* pcrel_offset */ + /* Modifiable branch relative. */ + HOWTO (R_RBA, /* type */ + 0, /* rightshift */ + 1, /* size (0 = byte, 1 = short, 2 = long) */ + 16, /* bitsize */ + false, /* pc_relative */ + 0, /* bitpos */ + complain_overflow_signed, /* complain_on_overflow */ + 0, /* special_function */ + "R_RBA_16", /* name */ + true, /* partial_inplace */ + 0xffff, /* src_mask */ + 0xffff, /* dst_mask */ + false), /* pcrel_offset */ + }; void @@ -968,6 +983,8 @@ xcoff_rtype2howto (relent, internal) relent->howto = &xcoff_howto_table[0x1c]; else if (R_RBR == internal->r_type) relent->howto = &xcoff_howto_table[0x1d]; + else if (R_RBA == internal->r_type) + relent->howto = &xcoff_howto_table[0x1e]; } /* The r_size field of an XCOFF reloc encodes the bitsize of the |