diff options
author | Alan Modra <amodra@gmail.com> | 2016-04-15 23:37:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-04-15 23:43:20 +0930 |
commit | 05f7541ea79d4922f71641e287b610c67ba32b52 (patch) | |
tree | 1e9572bbbee866938586335cbb0b3495b6439054 /gas | |
parent | 0796a6293fca5a6f4fd17e6ec38fb0db5dd3a36a (diff) | |
download | gdb-05f7541ea79d4922f71641e287b610c67ba32b52.zip gdb-05f7541ea79d4922f71641e287b610c67ba32b52.tar.gz gdb-05f7541ea79d4922f71641e287b610c67ba32b52.tar.bz2 |
Fix non-ELF powerpc build breakage
* config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 6ea6f87..bddffab 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. 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; |