[PW_SID:968156] riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment#467
[PW_SID:968156] riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment#467linux-riscv-bot wants to merge 2 commits into
Conversation
.rodata is implicitly included in the PT_DYNAMIC segment due to inheriting the segment of the preceding .dynamic section (in both GNU ld and LLD). When the .rodata section's size is not a multiple of 16 bytes on riscv64, llvm-readelf will report a "PT_DYNAMIC dynamic table is invalid" warning. Note: in the presence of the .dynamic section, GNU readelf and llvm-readelf's -d option decodes the dynamic section using the section. This issue arose after commit 8f8c1ff ("riscv: vdso.lds.S: remove hardcoded 0x800 .text start addr"), which placed .rodata directly after .dynamic by removing .eh_frame. This patch resolves the implicit inclusion into PT_DYNAMIC by explicitly specifying the :text output section phdr. Reported-by: Nathan Chancellor <nathan@kernel.org> Closes: ClangBuiltLinux#2093 Signed-off-by: Fangrui Song <i@maskray.me> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
|
Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment" |
948b274 to
7d18b70
Compare
PR for series 968156 applied to workflow__riscv__fixes
Name: riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=968156
Version: 1