diff options
author | Tristan Gingold <gingold@adacore.com> | 2013-05-16 15:41:40 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2013-05-16 15:41:40 +0000 |
commit | 735c8c1b611637d087b3003f6cfb5370ed11ba3a (patch) | |
tree | 5f43e10a55d657361d8567101161378ca76911b5 /bfd | |
parent | 1b1a2c45b4846e928a46c983465cc19552439d71 (diff) | |
download | binutils-redhat-735c8c1b611637d087b3003f6cfb5370ed11ba3a.tar.gz |
bfd/
2013-05-16 Tristan Gingold <gingold@adacore.com>
* coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16.
* coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
gas/
2013-05-16 Tristan Gingold <gingold@adacore.com>
* config/tc-ppc.c (ppc_is_toc_sym): Symbols of class XMC_TC
are also TOC symbols.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/coff-rs6000.c | 4 | ||||
-rw-r--r-- | bfd/coff64-rs6000.c | 3 |
3 files changed, 11 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 24231ca50f..0f5986376c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-05-16 Tristan Gingold <gingold@adacore.com> + + * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16. + * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise. + 2013-05-15 Andreas Schwab <schwab@suse.de> * elf64-aarch64.c (elf_backend_default_execstack): Define to 0. diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 0945aca0ef..aa61afbbac 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -1098,7 +1098,6 @@ reloc_howto_type xcoff_howto_table[] = 0xffff, /* src_mask */ 0xffff, /* dst_mask */ FALSE), /* pcrel_offset */ - }; void @@ -1146,6 +1145,9 @@ _bfd_xcoff_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, return &xcoff_howto_table[8]; case BFD_RELOC_PPC_TOC16: return &xcoff_howto_table[3]; + case BFD_RELOC_16: + /* Note that this relocation is only internally used by gas. */ + return &xcoff_howto_table[0xc]; case BFD_RELOC_32: case BFD_RELOC_CTOR: return &xcoff_howto_table[0]; diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c index 5f4a502c5f..56a0d2573b 100644 --- a/bfd/coff64-rs6000.c +++ b/bfd/coff64-rs6000.c @@ -1826,6 +1826,9 @@ xcoff64_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, return &xcoff64_howto_table[8]; case BFD_RELOC_PPC_TOC16: return &xcoff64_howto_table[3]; + case BFD_RELOC_16: + /* Note that this relocation is only internally used by gas. */ + return &xcoff64_howto_table[0xc]; case BFD_RELOC_32: case BFD_RELOC_CTOR: return &xcoff64_howto_table[0x1c]; |