Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 1999 22:32:53 +0900
From:      horikawa@jp.FreeBSD.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/15139: elf.5 typo fix
Message-ID:  <19991128223253U.k-horik@yk.rim.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         15139
>Category:       docs
>Synopsis:       elf.5 typo fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 28 05:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Kazuo Horikawa
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
jpman project
>Environment:

	elf.5 from 3.3-19991127-STABLE
.\"     $FreeBSD: src/share/man/man5/elf.5,v 1.1.2.2 1999/10/31 04:02:25 green Exp $

>Description:

	o Two words (`This member') are repeated.
	o `exists' should be `exits', because .fini section should be
	  executed when a program is terminated.
	o Two sentences are repeated.
	o Descripotions for ELF[32|64]_ST_BIND, ELF[32|64]_ST_TYPO,
	  ELF[32|64]_ST_INFO are not correct (see
	  /usr/include/sys/elf32.h and /usr/include/sys/elf64.h for
	  confirmation).

>How-To-Repeat:

	$ man 5 elf

>Fix:
	
--- elf.5.eng.bak	Tue Nov 23 23:24:45 1999
+++ elf.5.eng	Tue Nov 23 23:07:36 1999
@@ -295,7 +295,7 @@
 This member holds the size in bytes of one entry in the file's program header
 table; all entries are the same size.
 .It Dv e_phnum
-This member This member holds the number of entries in the program header
+This member holds the number of entries in the program header
 table. Thus the product of
 .Sy e_phentsize
 and
@@ -807,7 +807,7 @@
 .Sy SHF_ALLOC .
 .It .fini
 This section holds executable instructions that contribute to the process
-termination code. When a program exists normally the system arranges to
+termination code. When a program exits normally the system arranges to
 execute the code in this section. This section is of type
 .Sy SHT_PROGBITS .
 The attributes used are
@@ -829,11 +829,6 @@
 execute the code in this section before calling the main program entry point.
 This section is of type
 .Sy SHT_PROGBITS .
-This section holds executable instructions that contribute to the process
-initialisation code. When a program starts to run the system arranges to
-execute the code in this section before calling the main program entry point.
-This section is of type
-.Sy SHT_PROGBITS .
 The attributes used are
 .Sy SHF_ALLOC
 and
@@ -890,7 +885,7 @@
 This section is of type
 .Sy SHT_RELA .
 .It .rodata
-This section hold read-only data that typically contributes to a
+This section holds read-only data that typically contributes to a
 non-writable segment in the process image. This section is of type
 .Sy SHT_PROGBITS .
 The attribute used is
@@ -1035,15 +1030,15 @@
 .It Dv ELF32_ST_BIND(info)
 or
 .Sy ELF64_ST_BIND(info)
-convert a binding and a type into a st_info value.
+extract a binding from a st_info value.
 .It Dv ELF64_ST_TYPE(info)
 or
 .Sy ELF32_ST_TYPE(info)
-extract a binding from a st_info value.
+extract a type from a st_info value.
 .It Dv ELF32_ST_INFO(bind, type)
 or
 .Sy ELF64_ST_INFO(bind, type)
-extract a type from a st_info value.
+convert a binding and a type into a st_info value.
 .El
 .El
 .Pp


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991128223253U.k-horik>