All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
To: "Michael Kerrisk (man-pages)"
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2] elf(5): document notes
Date: Sun, 27 Nov 2016 10:15:02 -0800	[thread overview]
Message-ID: <20161127181502.GD20966@vapier.lan> (raw)
In-Reply-To: <2645467f-09b8-d2c1-b89f-7b5e52d0b233-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2000 bytes --]

here's some updates.  i thought i'd done the core parts already, but i
guess i forgot in the interim.
-mike

--- a/man5/elf.5
+++ b/man5/elf.5
@@ -1846,11 +1846,11 @@ This is automatically populated by the linker.
 ELF notes allow for appending arbitrary information for the system to use.
 They are largely used by core files
 .RI ( e_type
-o f
+of
 .BR ET_CORE ),
 but many projects define their own set of extensions.
 For example,
-the GNU tool chain uses ELF notes to information from
+the GNU tool chain uses ELF notes to pass information from
 the linker to the C library.
 
 Note sections contain a series of notes (see the
@@ -1893,7 +1893,12 @@ Keep in mind that the interpretation of
 depends on the namespace defined by the
 .I n_namesz
 field.
-After, of course, having determined whether the ELF image is a core file.
+If the
+.I n_namesz
+field is not set (e.g., is 0), then there are two sets of notes:
+one for core files and one for all other ELF types.
+If the namespace is unknown, then tools will usually fallback to these sets
+of notes as well.
 .in +4n
 .nf
 
@@ -1936,6 +1941,9 @@ following values:
 Notes used by all core files.
 These are highly operating system or architecture specific and often require
 close coordination with kernels, C libraries, and debuggers.
+These are used when the namespace is the default (i.e.,
+.B n_namesz
+will be set to 0), or a fallback when the namespace is unknown.
 .RS
 .TP 21
 .PD 0
@@ -2109,11 +2117,10 @@ The desc consists of any nonzero number of bytes.
 The desc contains the GNU Gold linker version used.
 .RE
 .TP
-.B Unknown system
-The fallback set of note types when the namespace is unknown.
-Usually the name field will be omitted (i.e.,
+.B Default/unknown namespace (e_type != ET_CORE)
+These are used when the namespace is the default (i.e.,
 .B n_namesz
-will be set to 0).
+will be set to 0), or a fallback when the namespace is unknown.
 .RS
 .TP 21
 .PD 0

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2016-11-27 18:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-17 20:59 [PATCH] elf(5): document notes Mike Frysinger
     [not found] ` <20161117205939.2295-1-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2016-11-18  7:25   ` Michael Kerrisk (man-pages)
     [not found]     ` <2dbf5664-524e-9411-16f4-2a84e6395c82-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18 18:25       ` Mike Frysinger
     [not found]         ` <20161118182547.GY21655-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
2016-11-19 10:13           ` Michael Kerrisk (man-pages)
     [not found]             ` <CAKgNAkgqWayEyq5iej=+2y+uyD9BsLNDNHhAC539L955aet56w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-27  3:32               ` Mike Frysinger
     [not found]                 ` <20161127033225.GU21655-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
2016-11-27 11:01                   ` Michael Kerrisk (man-pages)
2016-11-27  3:31   ` [PATCH v2] " Mike Frysinger
     [not found]     ` <20161127033137.31756-1-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2016-11-27 11:00       ` Michael Kerrisk (man-pages)
     [not found]         ` <2645467f-09b8-d2c1-b89f-7b5e52d0b233-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-27 18:15           ` Mike Frysinger [this message]
     [not found]             ` <20161127181502.GD20966-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
2016-11-28 21:20               ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161127181502.GD20966@vapier.lan \
    --to=vapier-abrp7r+bbdudnm+yrofe0a@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.