The patch titled Subject: x86-64: fix vDSO build has been added to the -mm tree. Its filename is x86-64-fix-vdso-build.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/x86-64-fix-vdso-build.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/x86-64-fix-vdso-build.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Jan Beulich" <JBeulich@xxxxxxxx> Subject: x86-64: fix vDSO build Certain ld versions (observed with 2.20.0) put an empty .rela.dyn section into shared object files, breaking the assumption on the number of sections to be copied to the final output. Simply discard any empty SHT_REL and SHT_RELA sections to address this. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Cc: Andy Lutomirski <luto@xxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Tested-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/vdso/vdso2c.h | 3 +++ 1 file changed, 3 insertions(+) diff -puN arch/x86/vdso/vdso2c.h~x86-64-fix-vdso-build arch/x86/vdso/vdso2c.h --- a/arch/x86/vdso/vdso2c.h~x86-64-fix-vdso-build +++ a/arch/x86/vdso/vdso2c.h @@ -93,6 +93,9 @@ static void BITSFUNC(copy_section)(struc uint64_t flags = GET_LE(&in->sh_flags); bool copy = flags & SHF_ALLOC && + (GET_LE(&in->sh_size) || + (GET_LE(&in->sh_type) != SHT_RELA && + GET_LE(&in->sh_type) != SHT_REL)) && strcmp(name, ".altinstructions") && strcmp(name, ".altinstr_replacement"); _ Patches currently in -mm which might be from JBeulich@xxxxxxxx are rtc-efi-check-for-invalid-data-coming-back-from-uefi.patch initramfs-support-initramfs-that-is-bigger-than-2gib.patch x86-64-fix-vdso-build.patch ix86-fix-vdso-build.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html