| Summary: | ld ppc64: unneeded R_PPC64_NONE in .rela.dyn when linking Linux vdso | ||
|---|---|---|---|
| Product: | binutils | Reporter: | Fangrui Song <maskray> |
| Component: | ld | Assignee: | Alan Modra <amodra> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Target Milestone: | 2.40 | ||
| Host: | Target: | powerpc64-linux | |
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
|
Description
Fangrui Song
2022-08-30 20:14:21 UTC
Despite the use of a powerpc64le-linux compiler, defconfig builds an ELFv1 kernel not ELFv2. So this is a powerpc64-linux problem triggerered by discarding .opd in the linker script. The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=365bf300da35c11e27bb8cdd3964f82e3d32f094 commit 365bf300da35c11e27bb8cdd3964f82e3d32f094 Author: Alan Modra <amodra@gmail.com> Date: Sat Sep 10 12:58:44 2022 +0930 PR29540, R_PPC64_NONE in .rela.dyn when linking Linux vdso PR 29540 * elf64-ppc.c (allocate_dynrelocs): Don't alloc space for relocs against discarded sections. (ppc64_elf_size_dynamic_sections): Use standard test for discarded sections. * elf32-ppc.c (allocate_dynrelocs): Don't alloc space for relocs against discarded sections. (ppc_elf_size_dynamic_sections): Use standard test for discarded sections. Fixed for 2.40 |