From bc99aad17cf56721b03e8ad185b7121e679a7179 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 7 May 2009 06:16:36 +0000 Subject: [PATCH] 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 --- elf2flt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.11.0