aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2013-05-16 15:41:40 +0000
committerTristan Gingold <gingold@adacore.com>2013-05-16 15:41:40 +0000
commit9f6e76f4ea8ddee6d6d2b1aa7c61e9cb69063196 (patch)
tree0fe3c991d60db149e4ee92ae8286ce78b32ba5cf /gas
parentec9fbfea246f1857cf630dae7085829699b1612f (diff)
downloadgdb-9f6e76f4ea8ddee6d6d2b1aa7c61e9cb69063196.zip
gdb-9f6e76f4ea8ddee6d6d2b1aa7c61e9cb69063196.tar.gz
gdb-9f6e76f4ea8ddee6d6d2b1aa7c61e9cb69063196.tar.bz2
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 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index bab74bb..ee6e251 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2013-05-16 Nick Clifton <nickc@redhat.com>
* config/tc-msp430.c: Make -mmcu recognise more part numbers.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 904166e..a764168 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -2428,7 +2428,8 @@ static int
ppc_is_toc_sym (symbolS *sym)
{
#ifdef OBJ_XCOFF
- return symbol_get_tc (sym)->symbol_class == XMC_TC;
+ return (symbol_get_tc (sym)->symbol_class == XMC_TC
+ || symbol_get_tc (sym)->symbol_class == XMC_TC0);
#endif
#ifdef OBJ_ELF
const char *sname = segment_name (S_GET_SEGMENT (sym));