From 6a51741fc785d21deaaf1b109f0a24c43b1c6d08 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 16 Nov 2019 18:24:28 +0000 Subject: [PATCH] gcore: Don't add VSX notes on powerpcspe powerpcspe does not support VSX at all, but gets the 'VMX' notes for free, providing the SPE registers. --- usr.bin/gcore/elfcore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index 087fcb5f7b46..667f4f44bd62 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -382,7 +382,9 @@ elf_putnotes(pid_t pid, struct sbuf *sb, size_t *sizep) #endif #if defined(__powerpc__) elf_putnote(NT_PPC_VMX, elf_note_powerpc_vmx, tids + i, sb); +#ifndef __SPE__ elf_putnote(NT_PPC_VSX, elf_note_powerpc_vsx, tids + i, sb); +#endif #endif }