Skip to content

[PW_SID:968156] riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment#467

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw968156
Closed

[PW_SID:968156] riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment#467
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw968156

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

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

Linux RISC-V bot and others added 2 commits May 14, 2025 13:11
.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>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 107.14 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 997.54 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1285.17 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.68 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.89 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.71 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 67.46 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
kdoc
Desc: Detects for kdoc errors
Duration: 0.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 1.88 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch 2 times, most recently from 948b274 to 7d18b70 Compare June 10, 2025 21:45
@linux-riscv-bot linux-riscv-bot deleted the pw968156 branch June 10, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants