]> git.wh0rd.org Git - elf2flt.git/commitdiff
Since the nios2 port is the only one to use the get_gp_value() function,
authorDavid McCullough <davidm@snapgear.com>
Thu, 7 May 2009 06:16:36 +0000 (06:16 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 7 May 2009 06:16:36 +0000 (06:16 +0000)
stick it behind a TARGET_nios2 ifdef.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
elf2flt.c

index a950ff74a34bc29dab4cf2c99f43e45b6df14f1d..9ff02995b850b16f615d06a335bad85a448ce4e7 100644 (file)
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -281,6 +281,7 @@ get_symbol_offset(char *name, asection *sec, asymbol **symbol_table, long number
 
 
 
+#ifdef TARGET_nios2
 long
 get_gp_value(asymbol **symbol_table, long number_of_symbols)
 {
@@ -291,7 +292,8 @@ get_gp_value(asymbol **symbol_table, long number_of_symbols)
   }
   return -1;
 }
+#endif
+
 
 
 int32_t