libs/libc/machine/risc-v/rv64/arch_elf.c: Don't assume binfo expansion

This commit is contained in:
YAMAMOTO Takashi 2020-11-22 17:21:26 +09:00 committed by Xiang Xiao
parent c7a2ee11ca
commit f0fc385232

View File

@ -43,19 +43,16 @@
* Private Data Types
****************************************************************************/
#ifdef CONFIG_DEBUG_BINFMT_INFO
struct rname_code_s
{
const char *name;
int type;
};
#endif
/****************************************************************************
* Private Data
****************************************************************************/
#ifdef CONFIG_DEBUG_BINFMT_INFO
static struct rname_code_s _rname_table[] =
{
{"RELAX", R_RISCV_RELAX},
@ -68,14 +65,12 @@ static struct rname_code_s _rname_table[] =
{"RVC_JUMP", R_RISCV_RVC_JUMP},
{"RVC_BRANCH", R_RISCV_RVC_BRANCH},
};
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
#ifdef CONFIG_DEBUG_BINFMT_INFO
const char *_get_rname(int type)
static const char *_get_rname(int type)
{
int i = 0;
@ -91,7 +86,6 @@ const char *_get_rname(int type)
return "?????";
}
#endif
/****************************************************************************
* Name: _get_val, set_val, _add_val