aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-10-12 16:36:14 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-10-12 16:36:14 +0800
commit59b3d4a9b0cc065a6a88446f8dd9b6d4659cc3df (patch)
tree1635c79ad548cbffc9da58559874a73d1037e4f9 /tools/perf/scripts/python/export-to-postgresql.py
parentLoongArch: Support PC-relative relocations in modules (diff)
downloadlinux-dev-59b3d4a9b0cc065a6a88446f8dd9b6d4659cc3df.tar.xz
linux-dev-59b3d4a9b0cc065a6a88446f8dd9b6d4659cc3df.zip
LoongArch: Support R_LARCH_GOT_PC_{LO12,HI20} in modules
GCC >= 13 and GNU assembler >= 2.40 use these relocations to address external symbols, so we need to add them. Let the module loader emit GOT entries for data symbols so we would be able to handle GOT relocations. The GOT entry is just the data's symbol address. In module.lds, emit a stub .got section for a section header entry. The actual content of the section entry will be filled at runtime by module_ frob_arch_sections(). Tested-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Xi Ruoyao <xry111@xry111.site> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions