提交 625fe3fe 编写于 作者: H He Sheng 提交者: guzitao

sw64: tools: add R_SW64_LITERAL_GOT support for relocs

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG

--------------------------------
Signed-off-by: NHe Sheng <hesheng@wxiat.com>
Reviewed-by: NCui Wei <cuiwei@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 1c82a34d
......@@ -487,6 +487,7 @@ static int do_reloc(struct section *sec, Elf_Rel *rel, Elf_Sym *sym,
case R_SW64_SREL32:
case R_SW64_GPRELHIGH:
case R_SW64_GPRELLOW:
case R_SW64_LITERAL_GOT:
/*
* NONE can be ignored and PC relative relocations don't
* need to be adjusted.
......
......@@ -53,6 +53,7 @@
#define R_SW64_TPRELHI 39
#define R_SW64_TPRELLO 40
#define R_SW64_TPREL16 41
#define R_SW64_LITERAL_GOT 43 /* GP relative */
void die(char *fmt, ...);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册