TencentOS-kernel/arch/arm64
Shaoying Xu 3fa6c69d9f 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 5d8591bc0fba ("module: set ksymtab/kcrctab* section
addresses to 0x0").

Reported-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Shaoying Xu <shaoyi@amazon.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210216183234.GA23876@amazon.com
Signed-off-by: Will Deacon <will@kernel.org>
[shaoyi@amazon.com: made same changes in arch/arm64/kernel/module.lds for 5.4]
Signed-off-by: Shaoying Xu <shaoyi@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-12 12:52:43 +08:00
..
boot dts64: mt7622: fix slow sd card access 2021-04-12 12:52:36 +08:00
configs Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
crypto crypto: arm64/sha - add missing module aliases 2021-04-12 12:52:35 +08:00
include arm64: Do not pass tagged addresses to __is_lm_address() 2021-04-12 12:51:49 +08:00
kernel arm64 module: set plt* section addresses to 0x0 2021-04-12 12:52:43 +08:00
kvm KVM: arm64: Don't access PMCR_EL0 when no PMU is available 2021-04-12 12:51:20 +08:00
lib arm64: Change .weak to SYM_FUNC_START_WEAK_PI for arch/arm64/lib/mem*.S 2021-03-16 16:40:17 +08:00
mm arm64: Do not pass tagged addresses to __is_lm_address() 2021-04-12 12:51:49 +08:00
net arm64: bpf: Fix branch offset in JIT 2021-03-16 16:36:18 +08:00
xen Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kbuild Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig arm64: Extend workaround for erratum 1024718 to all versions of Cortex-A55 2021-04-12 12:52:39 +08:00
Kconfig.debug Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig.platforms irqchip/gic-phytium-2500: Add support for GIC of Phytium S2500 2021-03-19 10:33:26 +08:00
Makefile arm64: link with -z norelro regardless of CONFIG_RELOCATABLE 2021-03-16 16:39:28 +08:00