Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2019 03:18:56 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348298 - head/sys/cddl/dev/fbt/powerpc
Message-ID:  <201905270318.x4R3IuGw048310@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Mon May 27 03:18:56 2019
New Revision: 348298
URL: https://svnweb.freebsd.org/changeset/base/348298

Log:
  powerpc/dtrace: Fix fbt function probing for ELFv2
  
  '.' function names exist only in ELFv1.  ELFv2 does away with function
  descriptors, and look more like they do on powerpc(32) and most other
  platforms, as direct function pointers.  Stop blacklisting regular function
  names in ELFv2.
  
  Submitted by:	Brandon Bergren
  Differential Revision:	https://reviews.freebsd.org/D20346

Modified:
  head/sys/cddl/dev/fbt/powerpc/fbt_isa.c

Modified: head/sys/cddl/dev/fbt/powerpc/fbt_isa.c
==============================================================================
--- head/sys/cddl/dev/fbt/powerpc/fbt_isa.c	Mon May 27 02:18:33 2019	(r348297)
+++ head/sys/cddl/dev/fbt/powerpc/fbt_isa.c	Mon May 27 03:18:56 2019	(r348298)
@@ -116,6 +116,7 @@ fbt_provide_module_function(linker_file_t lf, int symi
 	uint32_t *instr, *limit;
 
 #ifdef __powerpc64__
+#if !defined(_CALL_ELF) || _CALL_ELF == 1
 	/*
 	 * PowerPC64 uses '.' prefixes on symbol names, ignore it, but only
 	 * allow symbols with the '.' prefix, so that we don't get the function
@@ -125,6 +126,7 @@ fbt_provide_module_function(linker_file_t lf, int symi
 		name++;
 	else
 		return (0);
+#endif
 #endif
 
 	if (fbt_excluded(name))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905270318.x4R3IuGw048310>