svn commit: r354778 - head/usr.bin/gcore

Justin Hibbits jhibbits at FreeBSD.org
Sat Nov 16 18:24:29 UTC 2019


Author: jhibbits
Date: Sat Nov 16 18:24:28 2019
New Revision: 354778
URL: https://svnweb.freebsd.org/changeset/base/354778

Log:
  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.

Modified:
  head/usr.bin/gcore/elfcore.c

Modified: head/usr.bin/gcore/elfcore.c
==============================================================================
--- head/usr.bin/gcore/elfcore.c	Sat Nov 16 16:39:08 2019	(r354777)
+++ head/usr.bin/gcore/elfcore.c	Sat Nov 16 18:24:28 2019	(r354778)
@@ -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
 	}
 


More information about the svn-src-all mailing list