]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
LoongArch: module: set section addresses to 0x0
authorHuacai Chen <chenhuacai@loongson.cn>
Tue, 18 Apr 2023 11:38:58 +0000 (19:38 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Jun 2023 12:57:55 +0000 (14:57 +0200)
commit984d7c4f8dc3e9ee03416dd9081f670708d6a4dd
treec3daccbc98bf748e9b5939c4482f21973207be0b
parent54b53725682503aeb3dd45e11254669f42e7b992
LoongArch: module: set section addresses to 0x0

BugLink: https://bugs.launchpad.net/bugs/2023929
commit 93eb1215ed794a18ba8753e0654f069d58838966 upstream.

These got*, plt* and .text.ftrace_trampoline sections specified for
LoongArch have non-zero addressses. Non-zero section addresses in a
relocatable ELF would confuse GDB when it tries to compute the section
offsets and it ends up printing wrong symbol addresses. Therefore, set
them to zero, which mirrors the change in commit 5d8591bc0fbaeb6ded
("arm64 module: set plt* section addresses to 0x0").

Cc: stable@vger.kernel.org
Reviewed-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/loongarch/include/asm/module.lds.h