Commit 09a0f6e3 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

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: default avatarHe Sheng <hesheng@wxiat.com>
Reviewed-by: default avatarCui Wei <cuiwei@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 6dd8947d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.
+1 −0
Original line number Diff line number Diff line
@@ -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, ...);