From: David McCullough Date: Thu, 7 May 2009 06:16:36 +0000 (+0000) Subject: Since the nios2 port is the only one to use the get_gp_value() function, X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bc99aad17cf56721b03e8ad185b7121e679a7179;p=elf2flt.git Since the nios2 port is the only one to use the get_gp_value() function, stick it behind a TARGET_nios2 ifdef. Signed-off-by: Mike Frysinger --- diff --git a/elf2flt.c b/elf2flt.c index a950ff7..9ff0299 100644 --- 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