PERFORCE change 104304 for review

John Birrell jb at FreeBSD.org
Wed Aug 16 21:39:21 UTC 2006


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

Change 104304 by jb at jb_freebsd2 on 2006/08/16 21:38:21

	Add a few more macros.

Affected files ...

.. //depot/projects/dtrace/src/sys/sys/elf64.h#5 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sys/elf64.h#5 (text+ko) ====

@@ -147,6 +147,11 @@
 /* Macro for constructing r_info from field values. */
 #define ELF64_R_INFO(sym, type)	(((sym) << 32) + ((type) & 0xffffffffL))
 
+#define	ELF64_R_TYPE_DATA(info)	(((Elf64_Xword)(info)<<32)>>40)
+#define	ELF64_R_TYPE_ID(info)	(((Elf64_Xword)(info)<<56)>>56)
+#define	ELF64_R_TYPE_INFO(data, type)	\
+		(((Elf64_Xword)(data)<<8)+(Elf64_Xword)(type))
+
 /*
  *	Note entry header
  */


More information about the p4-projects mailing list