OSDN Git Service

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 a950ff7..9ff0299 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