This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix non-ELF powerpc build breakage


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=05f7541ea79d4922f71641e287b610c67ba32b52

commit 05f7541ea79d4922f71641e287b610c67ba32b52
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Apr 15 23:37:30 2016 +0930

    Fix non-ELF powerpc build breakage
    
    	* config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF

Diff:
---
 gas/ChangeLog       | 4 ++++
 gas/config/tc-ppc.c | 2 ++
 2 files changed, 6 insertions(+)

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]