[PATCH v6 05/11] powerpc/vdso: Enable the vdsocheck tool

Shivang Upadhyay shivangu at linux.ibm.com
Wed Nov 25 11:19:10 PST 2026


On Mon, Nov 23, 2026 at 02:50:56PM +0100, Thomas Weißschuh wrote:
> +        bindings::EM_PPC64 => AllowedRelocations {
> +            in_object_file: &[
> +                10,  /* R_PPC64_REL24 */
> +                11,  /* R_PPC64_REL14 */
> +                26,  /* R_PPC64_REL32 */
> +                44,  /* R_PPC64_REL64 */
> +                249, /* R_PPC64_REL16 */
> +                250, /* R_PPC64_REL16_LO */
> +                251, /* R_PPC64_REL16_HI */
> +                252, /* R_PPC64_REL16_HA */
> +            ],
Seems to excluise list of all reletive relocations.
I only could find the following being actually used, for defconfig ppc64le.
But good to have all there.

[root at system vdso]# for i in `ls *.o`; do objdump -r -SD $i  | grep -oP 'R_PPC\w*' ; done | sort |  uniq
R_PPC64_REL16_HA
R_PPC64_REL16_LO
R_PPC64_REL24
R_PPC64_REL32
R_PPC64_REL64
[root at system vdso]#

Looks good. Feel free to add,
Reviewed-by: Shivang Upadhyay <shivangu at linux.ibm.com>

~Shivang.



More information about the linux-riscv mailing list