Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79e73552 authored by Shaoying Xu's avatar Shaoying Xu Committed by Greg Kroah-Hartman
Browse files

arm64 module: set plt* section addresses to 0x0



commit f5c6d0fcf90ce07ee0d686d465b19b247ebd5ed7 upstream.

These plt* and .text.ftrace_trampoline sections specified for arm64 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 5d8591bc ("module: set ksymtab/kcrctab* section
addresses to 0x0").

Reported-by: default avatarFrank van der Linden <fllinden@amazon.com>
Signed-off-by: default avatarShaoying Xu <shaoyi@amazon.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210216183234.GA23876@amazon.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
[shaoyi@amazon.com: made same changes in arch/arm64/kernel/module.lds for 5.4]
Signed-off-by: default avatarShaoying Xu <shaoyi@amazon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b16b4cbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment