]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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 6ea6f873bc86461eab271da79fff9c0cb542b655..bddffab8c4d228602430da2f450f4098489e018f 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 8bfdfdc38c2198a0517dc7dedb0073e1241ef7c1..6346570ac34c1de6b47e959cb41d742b4b5810b6 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;