Fix non-ELF powerpc build breakage
authorAlan Modra <amodra@gmail.com>
Fri, 15 Apr 2016 14:07:30 +0000 (23:37 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 15 Apr 2016 14:13:20 +0000 (23:43 +0930)
* config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF

gas/ChangeLog
gas/config/tc-ppc.c

index 6ea6f87..bddffab 100644 (file)
@@ -1,3 +1,7 @@
+2016-04-15  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
+
 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
        * config/tc-nios2.c (nios2_as_options): Make file static.
index 8bfdfdc..6346570 100644 (file)
@@ -206,11 +206,13 @@ ppc_cpu_t sticky = 0;
 /* Value for ELF e_flags EF_PPC64_ABI.  */
 unsigned int ppc_abiversion = 0;
 
+#ifdef OBJ_ELF
 /* Flags set on encountering toc relocs.  */
 static enum {
   has_large_toc_reloc = 1,
   has_small_toc_reloc = 2
 } toc_reloc_types;
+#endif
 
 /* Warn on emitting data to code sections.  */
 int warn_476;