From owner-p4-projects@FreeBSD.ORG Mon Jan 28 02:56:59 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6174716A421; Mon, 28 Jan 2008 02:56:59 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DCFA16A419 for ; Mon, 28 Jan 2008 02:56:59 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EA43D13C43E for ; Mon, 28 Jan 2008 02:56:58 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0S2uwUs087574 for ; Mon, 28 Jan 2008 02:56:58 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0S2uv80087569 for perforce@freebsd.org; Mon, 28 Jan 2008 02:56:57 GMT (envelope-from jb@freebsd.org) Date: Mon, 28 Jan 2008 02:56:57 GMT Message-Id: <200801280256.m0S2uv80087569@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 134277 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2008 02:56:59 -0000 http://perforce.freebsd.org/chv.cgi?CH=134277 Change 134277 by jb@jb_freebsd1 on 2008/01/28 02:56:39 IFdtrace Affected files ... .. //depot/projects/dtrace7/src/lib/libelf/Makefile#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/Version.map#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/_libelf.h#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_begin.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_begin.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_cntl.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_cntl.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_data.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_dump.c#1 branch .. //depot/projects/dtrace7/src/lib/libelf/elf_dump_argv.c#1 branch .. //depot/projects/dtrace7/src/lib/libelf/elf_end.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_end.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_errmsg.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_errmsg.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_errno.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_fill.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_fill.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_flag.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_flagdata.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getarhdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getarhdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getarsym.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getarsym.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getbase.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getbase.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getdata.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getident.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getident.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getphnum.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getscn.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getshnum.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_getshstrndx.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_hash.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_hash.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_kind.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_kind.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_memory.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_memory.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_next.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_next.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_phnum.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_rand.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_rand.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_rawfile.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_rawfile.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_scn.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_shnum.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_shstrndx.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_strptr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_strptr.c#3 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_types.m4#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_update.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_update.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_version.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/elf_version.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf.h#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_cap.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_checksum.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_checksum.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_dyn.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_ehdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_fsize.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_fsize.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getcap.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getclass.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getclass.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getdyn.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getehdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getmove.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getphdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getrel.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getrela.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getshdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getsym.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getsyminfo.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_getsymshndx.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_move.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_newehdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_newphdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_phdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_rel.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_rela.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_shdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_sym.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_syminfo.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_symshndx.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_update_ehdr.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_xlate.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/gelf_xlatetof.3#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf.h#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_align.c#3 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_allocate.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_ar.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_checksum.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_convert.m4#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_data.c#3 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_dump.c#1 branch .. //depot/projects/dtrace7/src/lib/libelf/libelf_ehdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_extended.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_fsize.m4#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_msize.m4#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_phdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_shdr.c#2 integrate .. //depot/projects/dtrace7/src/lib/libelf/libelf_xlate.c#3 integrate Differences ... ==== //depot/projects/dtrace7/src/lib/libelf/Makefile#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/Version.map#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/_libelf.h#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf.3#2 (text+ko) ==== @@ -1,4 +1,4 @@ -.\" Copyright (c) 2006 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/elf.3,v 1.3 2006/12/11 09:03:27 jkoshy Exp $ +.\" $FreeBSD: src/lib/libelf/elf.3,v 1.5 2007/11/23 11:29:36 jkoshy Exp $ .\" -.Dd December 11, 2006 +.Dd October 21, 2007 .Os .Dt ELF 3 .Sh NAME @@ -375,6 +375,7 @@ .It Dv SHT_SYMTAB_SHNDX Ta Dv ELF_T_WORD Ta Used with extended section numbering. .It Dv SHT_GNU_verdef Ta Dv ELF_T_VDEF Ta Symbol version definitions. .It Dv SHT_GNU_verneed Ta Dv ELF_T_VNEED Ta Symbol versioning requirements. +.It Dv SHT_GNU_versym Ta Dv ELF_T_HALF Ta Version symbols. .It Dv SHT_SUNW_move Ta Dv ELF_T_MOVE Ta ELF move records. .It Dv SHT_SUNW_syminfo Ta Dv ELF_T_SYMINFO Ta Additional symbol flags. .El @@ -521,6 +522,9 @@ .Xr elf_flagelf 3 , following which the library will use the data offsets and alignments specified by the application when laying out the file. +Application control of file layout is described further in the +.Xr elf_update 3 +manual page. .Pp Gaps in between sections will be filled with the fill character set by function ==== //depot/projects/dtrace7/src/lib/libelf/elf_begin.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_begin.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_cntl.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_cntl.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_data.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_end.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_end.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_errmsg.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_errmsg.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_errno.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_fill.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_fill.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_flag.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_flagdata.3#2 (text+ko) ==== @@ -1,4 +1,4 @@ -.\" Copyright (c) 2006 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/elf_flagdata.3,v 1.2 2006/11/13 09:46:15 ru Exp $ +.\" $FreeBSD: src/lib/libelf/elf_flagdata.3,v 1.3 2007/10/22 03:38:43 jkoshy Exp $ .\" -.Dd August 10, 2006 +.Dd October 22, 2007 .Os .Dt ELF_FLAGDATA 3 .Sh NAME @@ -51,7 +51,7 @@ .Ft "unsigned int" .Fn elf_flagshdr "Elf_Scn *scn" "Elf_Cmd cmd" "unsigned int flags" .Sh DESCRIPTION -These functions are used to query, set or reset flag bits on data +These functions are used to query, set or reset flags on data structures associated with an ELF file. .Pp Arguments @@ -59,7 +59,7 @@ .Ar elf and .Ar scn -denote the data structures whose status bits need to be changed. +denote the data structures whose flags need to be changed. These values are allowed to be NULL to simplify error handling in application code. .Pp @@ -70,16 +70,16 @@ .It Dv ELF_C_CLR The argument .Ar flags -specifies the bits to be cleared. +specifies the flags to be cleared. .It Dv ELF_C_SET The argument .Ar flags -specifies the bits to be set. +specifies the flags to be set. .El .Pp The argument .Ar flags -is allowed to have the following bits set: +is allowed to have the following flags set: .Bl -tag -width ELF_F_LAYOUT .It Dv ELF_F_DIRTY Mark the associated data structure as needing to be written back @@ -111,7 +111,7 @@ will return the current set of flags for the data structure being queried. .Sh RETURN VALUES -These functions return the updated bits is successful, and zero if +These functions return the updated flags is successful, and zero if an error is detected. .Sh ERRORS These functions may fail with the following errors: @@ -123,7 +123,7 @@ .It Bq Er ELF_E_ARGUMENT Argument .Ar flags -had unsupported flag bits set. +had unsupported flags set. .It Bq Er ELF_E_ARGUMENT The argument .Ar elf ==== //depot/projects/dtrace7/src/lib/libelf/elf_getarhdr.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getarhdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getarsym.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getarsym.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getbase.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getbase.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getdata.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getident.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getident.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getphnum.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getscn.3#2 (text+ko) ==== @@ -1,4 +1,4 @@ -.\" Copyright (c) 2006 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/elf_getscn.3,v 1.2 2006/11/13 09:46:15 ru Exp $ +.\" $FreeBSD: src/lib/libelf/elf_getscn.3,v 1.3 2007/10/22 03:38:43 jkoshy Exp $ .\" -.Dd August 26, 2006 +.Dd October 22, 2007 .Os .Dt ELF_GETSCN 3 .Sh NAME @@ -73,7 +73,7 @@ .Ar elf , and will set the .Dv ELF_F_DIRTY -bit for the new section. +flag on the returned section descriptor. For ELF descriptors opened for writing, the ELF library will automatically create an empty section at index zero .Dv ( SHN_UNDEF ) ==== //depot/projects/dtrace7/src/lib/libelf/elf_getshnum.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_getshstrndx.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_hash.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_hash.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_kind.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_kind.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_memory.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_memory.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_next.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_next.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_phnum.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_rand.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_rand.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_rawfile.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_rawfile.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_scn.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_shnum.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_shstrndx.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_strptr.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_strptr.c#3 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_types.m4#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_update.3#2 (text+ko) ==== @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/elf_update.3,v 1.4 2007/09/08 08:20:12 jkoshy Exp $ +.\" $FreeBSD: src/lib/libelf/elf_update.3,v 1.5 2007/10/22 03:38:43 jkoshy Exp $ .\" -.Dd September 08, 2007 +.Dd October 22, 2007 .Os .Dt ELF_UPDATE 3 .Sh NAME @@ -63,7 +63,7 @@ .Dv ELF_F_LAYOUT flag has been set on the ELF descriptor, the application assumes full responsibility for the layout of the ELF object. -If this bit is not set, the ELF library will compute the layout of the +If this flag is not set, the ELF library will compute the layout of the file from its associated section descriptors. .Pp It is the application's responsibility to manage the the following ==== //depot/projects/dtrace7/src/lib/libelf/elf_update.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_version.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/elf_version.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf.h#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_cap.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_checksum.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_checksum.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_dyn.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_ehdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_fsize.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_fsize.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getcap.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getclass.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getclass.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getdyn.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getehdr.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getmove.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getphdr.3#2 (text+ko) ==== @@ -1,4 +1,4 @@ -.\" Copyright (c) 2006 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/gelf_getphdr.3,v 1.3 2006/12/25 02:24:39 jkoshy Exp $ +.\" $FreeBSD: src/lib/libelf/gelf_getphdr.3,v 1.4 2007/10/21 05:15:07 jkoshy Exp $ .\" -.Dd December 16, 2006 +.Dd October 21, 2007 .Os .Dt GELF_GETPHDR 3 .Sh NAME @@ -57,10 +57,9 @@ descriptors respectively. These descriptors are described in .Xr elf 5 . -The number of entries in this array is specified by the -.Va e_phnum -field of the executable header for ELF descriptor -.Ar elf . +The number of entries in this array may be determined using the +.Xr elf_getphnum 3 +function. .Pp Function .Fn gelf_getphdr @@ -134,6 +133,7 @@ .Xr elf64_getehdr 3 , .Xr elf64_newphdr 3 , .Xr elf_flagphdr 3 , +.Xr elf_getphnum 3 , .Xr gelf 3 , .Xr gelf_getehdr 3 , .Xr gelf_newphdr 3 , ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getrel.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getrela.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getshdr.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getsym.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getsyminfo.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_getsymshndx.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_move.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_newehdr.3#2 (text+ko) ==== @@ -1,4 +1,4 @@ -.\" Copyright (c) 2006 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/gelf_newehdr.3,v 1.3 2006/12/25 02:24:39 jkoshy Exp $ +.\" $FreeBSD: src/lib/libelf/gelf_newehdr.3,v 1.4 2007/10/22 03:38:43 jkoshy Exp $ .\" -.Dd December 16, 2006 +.Dd October 22, 2007 .Os .Dt GELF_NEWEHDR 3 .Sh NAME @@ -122,7 +122,7 @@ .Pp If successful, these three functions set the .Dv ELF_F_DIRTY -bit on ELF descriptor +flag on ELF descriptor .Ar elf . .Sh RETURN VALUES These functions return a pointer to a translated header descriptor ==== //depot/projects/dtrace7/src/lib/libelf/gelf_newphdr.3#2 (text+ko) ==== @@ -1,4 +1,4 @@ -.\" Copyright (c) 2006 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -21,9 +21,9 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/gelf_newphdr.3,v 1.2 2006/11/13 09:46:16 ru Exp $ +.\" $FreeBSD: src/lib/libelf/gelf_newphdr.3,v 1.4 2007/10/22 03:38:43 jkoshy Exp $ .\" -.Dd August 25, 2006 +.Dd October 22, 2007 .Os .Dt GELF_NEWPHDR 3 .Sh NAME @@ -81,14 +81,8 @@ .Ar elf . .Pp The functions set the -.Va e_phnum -field of the executable header for ELF descriptor -.Ar elf -to -.Ar count , -and also set the .Dv ELF_F_DIRTY -bit on the program header table. +flag on the program header table. All members of the returned array of Phdr structures will be initialized to zero. .Pp @@ -132,6 +126,7 @@ .Xr elf64_getphdr 3 , .Xr elf64_newehdr 3 , .Xr elf_flagphdr 3 , +.Xr elf_getphnum 3 , .Xr gelf 3 , .Xr gelf_getphdr 3 , .Xr gelf_newehdr 3 , ==== //depot/projects/dtrace7/src/lib/libelf/gelf_phdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_rel.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_rela.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_shdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_sym.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_syminfo.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_symshndx.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_update_ehdr.3#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_xlate.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/gelf_xlatetof.3#2 (text+ko) ==== @@ -21,7 +21,7 @@ .\" out of the use of this software, even if advised of the possibility of .\" such damage. .\" -.\" $FreeBSD: src/lib/libelf/gelf_xlatetof.3,v 1.2 2006/11/13 09:46:16 ru Exp $ +.\" $FreeBSD: src/lib/libelf/gelf_xlatetof.3,v 1.3 2007/11/26 03:09:33 jkoshy Exp $ .\" .Dd July 24, 2006 .Os @@ -208,12 +208,6 @@ .It Bq Er ELF_E_DATA The .Ar src -argument had a zero -.Va d_size -field. -.It Bq Er ELF_E_DATA -The -.Ar src argument specified a buffer size that was not an integral multiple of its underlying type. .It Bq Er ELF_E_DATA ==== //depot/projects/dtrace7/src/lib/libelf/libelf.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf.h#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_align.c#3 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_allocate.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_ar.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_checksum.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_convert.m4#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_data.c#3 (text+ko) ==== @@ -78,6 +78,8 @@ case SHT_SUNW_syminfo: return (ELF_T_SYMINFO); #endif + case SHT_AMD64_UNWIND: /* == SHT_IA_64_UNWIND */ + return (ELF_T_BYTE); default: return (-1); } ==== //depot/projects/dtrace7/src/lib/libelf/libelf_ehdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_extended.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_fsize.m4#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_msize.m4#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_phdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_shdr.c#2 (text+ko) ==== ==== //depot/projects/dtrace7/src/lib/libelf/libelf_xlate.c#3 (text+ko) ====