PERFORCE change 142350 for review

John Birrell jb at FreeBSD.org
Tue May 27 03:37:19 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=142350

Change 142350 by jb at freebsd3 on 2008/05/27 03:36:57

	Add the linker methods.

Affected files ...

.. //depot/projects/dtrace7/src/sys/kern/kern_linker.c#4 edit
.. //depot/projects/dtrace7/src/sys/kern/linker_if.m#3 edit

Differences ...

==== //depot/projects/dtrace7/src/sys/kern/kern_linker.c#4 (text+ko) ====

@@ -647,6 +647,12 @@
 	return (0);
 }
 
+int
+linker_ctf_get(linker_file_t file, linker_ctf_t *lc)
+{
+	return (LINKER_CTF_GET(file, lc));
+}
+
 static int
 linker_file_add_dependency(linker_file_t file, linker_file_t dep)
 {
@@ -695,7 +701,7 @@
  */
 int
 linker_file_function_listall(linker_file_t lf,
-    int (*callback_func)(linker_file_t, linker_symval_t *, void *), void *arg)
+    linker_function_nameval_callback_t callback_func, void *arg)
 {
 	return (LINKER_EACH_FUNCTION_NAMEVAL(lf, callback_func, arg));
 }

==== //depot/projects/dtrace7/src/sys/kern/linker_if.m#3 (text+ko) ====

@@ -23,7 +23,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 #
-# $FreeBSD: src/sys/kern/linker_if.m,v 1.6 2005/01/06 23:35:39 imp Exp $
+# $FreeBSD: src/sys/kern/linker_if.m,v 1.8 2008/05/23 04:06:49 jb Exp $
 #
 
 #include <sys/linker.h>
@@ -96,6 +96,15 @@
 };
 
 #
+# Load CTF data if necessary and if there is a .SUNW_ctf section
+# in the ELF file, returning info in the linker CTF structure.
+#
+METHOD int ctf_get {
+	linker_file_t	file;
+	linker_ctf_t	*lc;
+};
+
+#
 # Load a file, returning the new linker_file_t in *result.  If
 # the class does not recognise the file type, zero should be
 # returned, without modifying *result.  If the file is


More information about the p4-projects mailing list