This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix non-ELF powerpc build breakage
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 15 Apr 2016 23:44:42 +0930
- Subject: Fix non-ELF powerpc build breakage
- Authentication-results: sourceware.org; auth=none
Silence and unused variable warning. Committed.
* config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 8bfdfdc..6346570 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -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;
--
Alan Modra
Australia Development Lab, IBM