Fix non-ELF powerpc build breakage

* config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
This commit is contained in:
Alan Modra 2016-04-15 23:37:30 +09:30
parent 0796a6293f
commit 05f7541ea7
2 changed files with 6 additions and 0 deletions

View 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.

View 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;