mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
93eb1215ed
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 5d8591bc0f
("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>
10 lines
243 B
C
10 lines
243 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2020-2022 Loongson Technology Corporation Limited */
|
|
SECTIONS {
|
|
. = ALIGN(4);
|
|
.got 0 : { BYTE(0) }
|
|
.plt 0 : { BYTE(0) }
|
|
.plt.idx 0 : { BYTE(0) }
|
|
.ftrace_trampoline 0 : { BYTE(0) }
|
|
}
|