From: Alan Modra Date: Fri, 15 Apr 2016 14:07:30 +0000 (+0930) Subject: Fix non-ELF powerpc build breakage X-Git-Tag: users/hjl/linux/release/2.26.51.0.2~1^2~60^2~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05f7541ea79d4922f71641e287b610c67ba32b52;p=thirdparty%2Fbinutils-gdb.git Fix non-ELF powerpc build breakage * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF --- 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;