[Midnightbsd-cvs] src [10766] U trunk/lib/libelf: sync with freebsd 10 stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jun 9 22:24:46 EDT 2018
Revision: 10766
http://svnweb.midnightbsd.org/src/?rev=10766
Author: laffer1
Date: 2018-06-09 22:24:46 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
sync with freebsd 10 stable
Modified Paths:
--------------
trunk/lib/libelf/Makefile
trunk/lib/libelf/Version.map
trunk/lib/libelf/elf.3
trunk/lib/libelf/elf_begin.3
trunk/lib/libelf/elf_errmsg.c
trunk/lib/libelf/elf_getphdrnum.3
trunk/lib/libelf/elf_getphnum.3
trunk/lib/libelf/elf_getshdrnum.3
trunk/lib/libelf/elf_getshdrstrndx.3
trunk/lib/libelf/elf_getshnum.3
trunk/lib/libelf/elf_getshstrndx.3
trunk/lib/libelf/elf_types.m4
trunk/lib/libelf/gelf.3
trunk/lib/libelf/libelf_convert.m4
Property Changed:
----------------
trunk/lib/libelf/README
trunk/lib/libelf/Version.map
trunk/lib/libelf/elf.3
trunk/lib/libelf/elf_begin.3
trunk/lib/libelf/elf_cntl.3
trunk/lib/libelf/elf_end.3
trunk/lib/libelf/elf_errmsg.3
trunk/lib/libelf/elf_fill.3
trunk/lib/libelf/elf_flagdata.3
trunk/lib/libelf/elf_getarhdr.3
trunk/lib/libelf/elf_getarsym.3
trunk/lib/libelf/elf_getbase.3
trunk/lib/libelf/elf_getdata.3
trunk/lib/libelf/elf_getident.3
trunk/lib/libelf/elf_getphdrnum.3
trunk/lib/libelf/elf_getphnum.3
trunk/lib/libelf/elf_getscn.3
trunk/lib/libelf/elf_getshdrnum.3
trunk/lib/libelf/elf_getshdrstrndx.3
trunk/lib/libelf/elf_getshnum.3
trunk/lib/libelf/elf_getshstrndx.3
trunk/lib/libelf/elf_hash.3
trunk/lib/libelf/elf_kind.3
trunk/lib/libelf/elf_memory.3
trunk/lib/libelf/elf_next.3
trunk/lib/libelf/elf_rand.3
trunk/lib/libelf/elf_rawfile.3
trunk/lib/libelf/elf_strptr.3
trunk/lib/libelf/elf_types.m4
trunk/lib/libelf/elf_update.3
trunk/lib/libelf/elf_version.3
trunk/lib/libelf/gelf.3
trunk/lib/libelf/gelf_checksum.3
trunk/lib/libelf/gelf_fsize.3
trunk/lib/libelf/gelf_getcap.3
trunk/lib/libelf/gelf_getclass.3
trunk/lib/libelf/gelf_getdyn.3
trunk/lib/libelf/gelf_getehdr.3
trunk/lib/libelf/gelf_getmove.3
trunk/lib/libelf/gelf_getphdr.3
trunk/lib/libelf/gelf_getrel.3
trunk/lib/libelf/gelf_getrela.3
trunk/lib/libelf/gelf_getshdr.3
trunk/lib/libelf/gelf_getsym.3
trunk/lib/libelf/gelf_getsyminfo.3
trunk/lib/libelf/gelf_getsymshndx.3
trunk/lib/libelf/gelf_newehdr.3
trunk/lib/libelf/gelf_newphdr.3
trunk/lib/libelf/gelf_update_ehdr.3
trunk/lib/libelf/gelf_xlatetof.3
trunk/lib/libelf/libelf_convert.m4
trunk/lib/libelf/libelf_fsize.m4
trunk/lib/libelf/libelf_msize.m4
Modified: trunk/lib/libelf/Makefile
===================================================================
--- trunk/lib/libelf/Makefile 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/Makefile 2018-06-10 02:24:46 UTC (rev 10766)
@@ -55,10 +55,23 @@
${GENSRCS}
INCS= libelf.h gelf.h
+#
+# We need to link against the correct version of these files. One
+# solution is to include ../../sys in the include path. This causes
+# problems when a header file in sys depends on a file in another
+# part of the tree, e.g. a machine dependent header.
+#
+SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h
+
GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c
CLEANFILES= ${GENSRCS}
-CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../sys
+CLEANDIRS= sys
+CFLAGS+= -I${.CURDIR} -I.
+sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET}
+ mkdir -p ${.OBJDIR}/sys
+ ln -sf ${.CURDIR}/../../sys/${.TARGET} ${.TARGET}
+
SHLIB_MAJOR= 1
MAN= elf.3 \
Index: trunk/lib/libelf/README
===================================================================
--- trunk/lib/libelf/README 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/README 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/README
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/Version.map
===================================================================
--- trunk/lib/libelf/Version.map 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/Version.map 2018-06-10 02:24:46 UTC (rev 10766)
@@ -1,5 +1,5 @@
-/*
- * $FreeBSD$
+/* $MidnightBSD$
+ * $FreeBSD: stable/10/lib/libelf/Version.map 210345 2010-07-21 12:14:50Z kaiw $
*/
FBSD_1.0 {
global:
Property changes on: trunk/lib/libelf/Version.map
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf.3
===================================================================
--- trunk/lib/libelf/elf.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -385,9 +385,9 @@
This section contains a brief overview of the available functionality
in the ELF library.
Each function listed here is described further in its own manual page.
-.Bl -tag -width indent
+.Bl -tag -width 2n
.It "Archive Access"
-.Bl -tag -compact
+.Bl -tag -width 17n -compact
.It Fn elf_getarsym
Retrieve the archive symbol table.
.It Fn elf_getarhdr
@@ -404,7 +404,7 @@
archive.
.El
.It "Data Structures"
-.Bl -tag -compact
+.Bl -tag -width 17n -compact
.It Fn elf_getdata
Retrieve translated data for an ELF section.
.It Fn elf_getscn
@@ -437,7 +437,7 @@
Allocate or resize the Program Header Table in an ELF object.
.El
.It "Data Translation"
-.Bl -tag -compact
+.Bl -tag -width 17n -compact
.It Fn elf32_xlatetof , Fn elf64_xlatetof
Translate an ELF data structure from its native representation to its
file representation.
@@ -446,7 +446,7 @@
native representation.
.El
.It "Error Reporting"
-.Bl -tag -compact
+.Bl -tag -width 17n -compact
.It Fn elf_errno
Retrieve the current error.
.It Fn elf_errmsg
@@ -453,7 +453,7 @@
Retrieve a human readable description of the current error.
.El
.It "Initialization"
-.Bl -tag -compact
+.Bl -tag -width 17n -compact
.It Fn elf_begin
Opens an
.Xr ar 1
@@ -468,7 +468,7 @@
Sets the operating version.
.El
.It "IO Control"
-.Bl -tag -width ".Fn elf_setshstrndx" -compact
+.Bl -tag -width 17n -compact
.It Fn elf_cntl
Manage the association between and ELF descriptor and its underlying file.
.It Fn elf_flagdata
@@ -492,7 +492,7 @@
back to the underlying file.
.El
.It "Queries"
-.Bl -tag -width ".Fn elf_getshstrndx" -compact
+.Bl -tag -width 17n -compact
.It Fn elf32_checksum , Fn elf64_checkum
Compute checksum of an ELF object.
.It Fn elf_getident
Property changes on: trunk/lib/libelf/elf.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_begin.3
===================================================================
--- trunk/lib/libelf/elf_begin.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_begin.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -252,7 +252,7 @@
.It Bq Er ELF_E_ARGUMENT
An
.Xr ar 1
-archive was opened with with
+archive was opened with
.Ar cmd
set to
.Dv ELF_C_RDWR .
Property changes on: trunk/lib/libelf/elf_begin.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_cntl.3
===================================================================
--- trunk/lib/libelf/elf_cntl.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_cntl.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_cntl.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_end.3
===================================================================
--- trunk/lib/libelf/elf_end.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_end.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_end.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_errmsg.3
===================================================================
--- trunk/lib/libelf/elf_errmsg.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_errmsg.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_errmsg.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_errmsg.c
===================================================================
--- trunk/lib/libelf/elf_errmsg.c 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_errmsg.c 2018-06-10 02:24:46 UTC (rev 10766)
@@ -36,7 +36,7 @@
* Retrieve a human readable translation for an error message.
*/
-const char *_libelf_errors[] = {
+static const char *_libelf_errors[] = {
#define DEFINE_ERROR(N,S) [ELF_E_##N] = S
DEFINE_ERROR(NONE, "No Error"),
DEFINE_ERROR(ARCHIVE, "Malformed ar(1) archive"),
Index: trunk/lib/libelf/elf_fill.3
===================================================================
--- trunk/lib/libelf/elf_fill.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_fill.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_fill.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_flagdata.3
===================================================================
--- trunk/lib/libelf/elf_flagdata.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_flagdata.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_flagdata.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_getarhdr.3
===================================================================
--- trunk/lib/libelf/elf_getarhdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getarhdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_getarhdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_getarsym.3
===================================================================
--- trunk/lib/libelf/elf_getarsym.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getarsym.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_getarsym.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_getbase.3
===================================================================
--- trunk/lib/libelf/elf_getbase.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getbase.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_getbase.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_getdata.3
===================================================================
--- trunk/lib/libelf/elf_getdata.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getdata.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_getdata.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_getident.3
===================================================================
--- trunk/lib/libelf/elf_getident.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getident.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_getident.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_getphdrnum.3
===================================================================
--- trunk/lib/libelf/elf_getphdrnum.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getphdrnum.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -24,8 +24,8 @@
.\" $MidnightBSD$
.\"
.Dd August 5, 2009
+.Dt ELF_GETPHDRNUM 3
.Os
-.Dt ELF_GETPHDRNUM 3
.Sh NAME
.Nm elf_getphdrnum
.Nd return the number of program headers in an ELF file
@@ -45,7 +45,6 @@
.Pp
This routine allows applications to uniformly process both normal ELF
objects and ELF objects that use extended numbering.
-.Pp
.Sh RETURN VALUES
Function
.Fn elf_getphdrnum
Property changes on: trunk/lib/libelf/elf_getphdrnum.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_getphnum.3
===================================================================
--- trunk/lib/libelf/elf_getphnum.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getphnum.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -50,7 +50,6 @@
.Pp
This routine allows applications to uniformly process both normal ELF
objects and ELF objects that use extended numbering.
-.Pp
.Sh RETURN VALUES
Function
.Fn elf_getphnum
Property changes on: trunk/lib/libelf/elf_getphnum.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_getscn.3
===================================================================
--- trunk/lib/libelf/elf_getscn.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getscn.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_getscn.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_getshdrnum.3
===================================================================
--- trunk/lib/libelf/elf_getshdrnum.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getshdrnum.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -24,8 +24,8 @@
.\" $MidnightBSD$
.\"
.Dd August 4, 2009
+.Dt ELF_GETSHDRNUM 3
.Os
-.Dt ELF_GETSHDRNUM 3
.Sh NAME
.Nm elf_getshdrnum
.Nd return the number of sections in an ELF file
@@ -45,7 +45,6 @@
.Pp
This routine allows applications to uniformly process both normal ELF
objects, and ELF objects that use extended section numbering.
-.Pp
.Sh RETURN VALUES
Function
.Fn elf_getshdrnum
Property changes on: trunk/lib/libelf/elf_getshdrnum.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_getshdrstrndx.3
===================================================================
--- trunk/lib/libelf/elf_getshdrstrndx.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getshdrstrndx.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -24,8 +24,8 @@
.\" $MidnightBSD$
.\"
.Dd August 5, 2009
+.Dt ELF_GETSHDRSTRNDX 3
.Os
-.Dt ELF_GETSHDRSTRNDX 3
.Sh NAME
.Nm elf_getshdrstrndx
.Nd retrieve the index of the section name string table
@@ -46,7 +46,6 @@
.Pp
This function allow applications to process both normal ELF
objects and ELF objects that use extended section numbering uniformly.
-.Pp
.Sh RETURN VALUES
These functions return zero if successful, or -1 in case of an error.
.Sh ERRORS
Property changes on: trunk/lib/libelf/elf_getshdrstrndx.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_getshnum.3
===================================================================
--- trunk/lib/libelf/elf_getshnum.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getshnum.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -50,7 +50,6 @@
.Pp
This routine allows applications to uniformly process both normal ELF
objects, and ELF objects that use extended section numbering.
-.Pp
.Sh RETURN VALUES
Function
.Fn elf_getshnum
Property changes on: trunk/lib/libelf/elf_getshnum.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_getshstrndx.3
===================================================================
--- trunk/lib/libelf/elf_getshstrndx.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_getshstrndx.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -60,7 +60,6 @@
.Pp
These routines allow applications to process both normal ELF
objects and ELF objects that use extended section numbering uniformly.
-.Pp
.Sh RETURN VALUES
These functions return a non-zero value if successful, or zero in case
of an error.
Property changes on: trunk/lib/libelf/elf_getshstrndx.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_hash.3
===================================================================
--- trunk/lib/libelf/elf_hash.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_hash.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_hash.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_kind.3
===================================================================
--- trunk/lib/libelf/elf_kind.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_kind.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_kind.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_memory.3
===================================================================
--- trunk/lib/libelf/elf_memory.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_memory.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_memory.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_next.3
===================================================================
--- trunk/lib/libelf/elf_next.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_next.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_next.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_rand.3
===================================================================
--- trunk/lib/libelf/elf_rand.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_rand.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_rand.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_rawfile.3
===================================================================
--- trunk/lib/libelf/elf_rawfile.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_rawfile.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_rawfile.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_strptr.3
===================================================================
--- trunk/lib/libelf/elf_strptr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_strptr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_strptr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/elf_types.m4
===================================================================
--- trunk/lib/libelf/elf_types.m4 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_types.m4 2018-06-10 02:24:46 UTC (rev 10766)
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $FreeBSD$
+ * $MidnightBSD$
*/
/*
Property changes on: trunk/lib/libelf/elf_types.m4
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_update.3
===================================================================
--- trunk/lib/libelf/elf_update.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_update.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_update.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/elf_version.3
===================================================================
--- trunk/lib/libelf/elf_version.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/elf_version.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/elf_version.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/gelf.3
===================================================================
--- trunk/lib/libelf/gelf.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf.3 2018-06-10 02:24:46 UTC (rev 10766)
@@ -115,7 +115,7 @@
for the underlying ELF data type.
.Ss Namespace use
The GElf interface uses the following symbols:
-.Bl -tag
+.Bl -tag -width 8n
.It GElf_*
Class-independent data types.
.It gelf_*
@@ -125,9 +125,9 @@
This section provides an overview of the GElf programming APIs.
Further information is provided in the manual page of each function
listed here.
-.Bl -tag
+.Bl -tag -width 2n
.It "Allocating ELF Data Structures"
-.Bl -tag -compact
+.Bl -tag -width 19n -compact
.It Fn gelf_newehdr
Allocate a new ELF Executable Header.
.It Fn gelf_newphdr
@@ -134,7 +134,7 @@
Allocate a new ELF Program Header Table.
.El
.It "Data Translation"
-.Bl -tag -compact
+.Bl -tag -width 19n -compact
.It Fn gelf_xlatetof
Translate the native representation of an ELF data structure to its
file representation.
@@ -143,7 +143,7 @@
native representation.
.El
.It "Retrieving ELF Data"
-.Bl -tag -compact
+.Bl -tag -width 19n -compact
.It Fn gelf_getdyn
Retrieve an ELF
.Sy .dynamic
@@ -162,7 +162,7 @@
Retrieve an ELF symbol table entry.
.El
.It Queries
-.Bl -tag -compact
+.Bl -tag -width 19n -compact
.It Fn gelf_checksum
Retrieves the ELF checksum for an ELF descriptor.
.It Fn gelf_fsize
@@ -171,7 +171,7 @@
Retrieves the ELF class of an ELF descriptor.
.El
.It "Updating ELF Data"
-.Bl -tag -compact -width ".Fn gelf_update_shdr"
+.Bl -tag -width 19n -compact
.It Fn gelf_update_dyn
Copy back an ELF
.Sy .dynamic
Property changes on: trunk/lib/libelf/gelf.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_checksum.3
===================================================================
--- trunk/lib/libelf/gelf_checksum.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_checksum.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_checksum.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_fsize.3
===================================================================
--- trunk/lib/libelf/gelf_fsize.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_fsize.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_fsize.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getcap.3
===================================================================
--- trunk/lib/libelf/gelf_getcap.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getcap.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getcap.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getclass.3
===================================================================
--- trunk/lib/libelf/gelf_getclass.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getclass.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getclass.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getdyn.3
===================================================================
--- trunk/lib/libelf/gelf_getdyn.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getdyn.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getdyn.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getehdr.3
===================================================================
--- trunk/lib/libelf/gelf_getehdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getehdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getehdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getmove.3
===================================================================
--- trunk/lib/libelf/gelf_getmove.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getmove.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getmove.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getphdr.3
===================================================================
--- trunk/lib/libelf/gelf_getphdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getphdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getphdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getrel.3
===================================================================
--- trunk/lib/libelf/gelf_getrel.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getrel.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getrel.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getrela.3
===================================================================
--- trunk/lib/libelf/gelf_getrela.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getrela.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getrela.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getshdr.3
===================================================================
--- trunk/lib/libelf/gelf_getshdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getshdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getshdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getsym.3
===================================================================
--- trunk/lib/libelf/gelf_getsym.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getsym.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getsym.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getsyminfo.3
===================================================================
--- trunk/lib/libelf/gelf_getsyminfo.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getsyminfo.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getsyminfo.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_getsymshndx.3
===================================================================
--- trunk/lib/libelf/gelf_getsymshndx.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_getsymshndx.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_getsymshndx.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_newehdr.3
===================================================================
--- trunk/lib/libelf/gelf_newehdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_newehdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_newehdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_newphdr.3
===================================================================
--- trunk/lib/libelf/gelf_newphdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_newphdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_newphdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_update_ehdr.3
===================================================================
--- trunk/lib/libelf/gelf_update_ehdr.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_update_ehdr.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_update_ehdr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/gelf_xlatetof.3
===================================================================
--- trunk/lib/libelf/gelf_xlatetof.3 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/gelf_xlatetof.3 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/gelf_xlatetof.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libelf/libelf_convert.m4
===================================================================
--- trunk/lib/libelf/libelf_convert.m4 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/libelf_convert.m4 2018-06-10 02:24:46 UTC (rev 10766)
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
#include <sys/types.h>
#include <sys/elf32.h>
@@ -796,6 +796,11 @@
descsz = en->n_descsz;
type = en->n_type;
+ sz = namesz;
+ ROUNDUP2(sz, 4);
+ sz += descsz;
+ ROUNDUP2(sz, 4);
+
SWAP_WORD(namesz);
SWAP_WORD(descsz);
SWAP_WORD(type);
@@ -805,12 +810,8 @@
WRITE_WORD(dst, type);
src += sizeof(Elf_Note);
+ count -= sizeof(Elf_Note);
- ROUNDUP2(namesz, 4);
- ROUNDUP2(descsz, 4);
-
- sz = namesz + descsz;
-
if (count < sz)
sz = count;
Property changes on: trunk/lib/libelf/libelf_convert.m4
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/libelf_fsize.m4
===================================================================
--- trunk/lib/libelf/libelf_fsize.m4 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/libelf_fsize.m4 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/libelf_fsize.m4
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/lib/libelf/libelf_msize.m4
===================================================================
--- trunk/lib/libelf/libelf_msize.m4 2018-06-10 02:17:19 UTC (rev 10765)
+++ trunk/lib/libelf/libelf_msize.m4 2018-06-10 02:24:46 UTC (rev 10766)
Property changes on: trunk/lib/libelf/libelf_msize.m4
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list