From 05f7541ea79d4922f71641e287b610c67ba32b52 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 15 Apr 2016 23:37:30 +0930 Subject: [PATCH] Fix non-ELF powerpc build breakage * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF --- gas/ChangeLog | 4 ++++ gas/config/tc-ppc.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6ea6f873bc8..bddffab8c4d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2016-04-15 Alan Modra + + * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF + 2016-04-14 Trevor Saunders * config/tc-nios2.c (nios2_as_options): Make file static. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 8bfdfdc38c2..6346570ac34 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; -- 2.30.2