diff options
author | He Sheng <hesheng@wxiat.com> | 2022-09-16 15:17:44 +0800 |
---|---|---|
committer | guzitao <guzitao@wxiat.com> | 2022-11-01 01:29:12 +0000 |
commit | 625fe3fe4be6d5bf7a23e5bd801a586a9a7c9b46 (patch) | |
tree | bf93386e34c866aedbab97d87fbad0f7cfe2a422 | |
parent | 1c82a34d6d89a743aae1caf5ae713cd211ec82b5 (diff) | |
download | openEuler-kernel-625fe3fe4be6d5bf7a23e5bd801a586a9a7c9b46.tar.gz |
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: He Sheng <hesheng@wxiat.com>
Reviewed-by: Cui Wei <cuiwei@wxiat.com>
Signed-off-by: Gu Zitao <guzitao@wxiat.com>
-rw-r--r-- | arch/sw_64/tools/relocs.c | 1 | ||||
-rw-r--r-- | arch/sw_64/tools/relocs.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/sw_64/tools/relocs.c b/arch/sw_64/tools/relocs.c index a8a9e08a0a658b..06bd4625bc6e0c 100644 --- a/arch/sw_64/tools/relocs.c +++ b/arch/sw_64/tools/relocs.c @@ -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. diff --git a/arch/sw_64/tools/relocs.h b/arch/sw_64/tools/relocs.h index 37ac09ec2a77b4..17c7e31113a0e5 100644 --- a/arch/sw_64/tools/relocs.h +++ b/arch/sw_64/tools/relocs.h @@ -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, ...); |