Skip to contentSkip to conversation

elf.5: EI_BRAND is not exist in Linux

DISCUSSION Yuri Kozlov 4 participants 4 messages Jan 7, 2010 – Jun 19, 2010 3 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 1 line

From elf.5:

e_ident This array of bytes specifies to interpret the file, ...
EI_BRAND Start of architecture identification.

Value for EI_BRAND is not defined in the linux/elf.h (and gabi too). Maybe add some comment, that is for *BSD only?

Signature · 7 lines
Best Regards,
Yuri Kozlov

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20100107133046.7d380dcb-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org

#2 lore raw

Hey Mike,

You've done a patch or two to the elf.5 page in the past. Are you able to comment on the below? I confirmed Yuri's statement: EI_BRAND isn't in glibc 2.11 source.

Cheers,

Michael

Quoted 14 lines · Yuri Kozlov

Hello.

From elf.5:
 e_ident     This array of bytes specifies to interpret the file, ... EI_BRAND    Start of architecture identification.

Value for EI_BRAND is not defined in the linux/elf.h (and gabi too). Maybe add some comment, that is for *BSD only?

--
Best Regards,
Yuri Kozlov

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): cfd18e0f1002022208j7e78def6ycee31e0c818b9351-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 11 lines · On Wednesday 03 February 2010 01:08:03 Michael Kerrisk wrote:
Quoted 6 lines · Yuri Kozlov

From elf.5:
e_ident This array of bytes specifies to interpret the file, ...
EI_BRAND Start of architecture identification.

Value for EI_BRAND is not defined in the linux/elf.h (and gabi too). Maybe add some comment, that is for *BSD only?

You've done a patch or two to the elf.5 page in the past. Are you able to comment on the below? I confirmed Yuri's statement: EI_BRAND isn't in glibc 2.11 source.

not being the glibc source isnt terribly important imo (since there are a lot of things glibc's elf.h doesnt define), but the fact it isnt in the gabi as Yuri notes seems pretty important:
http://www.sco.com/developers/gabi/latest/ch4.eheader.html

whether it be marked as non-standard (and then we research what random OSes actually define it) or simply drop it, either makes sense to me. the latter is obviously less work :).
-mike

A message that is not in the archive (sent off-list or not yet received): 201002030204.36675.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org

#6 lore raw

Hi Yuri, Mike,

Quoted 18 lines · Mike Frysinger
Quoted 11 lines · On Wednesday 03 February 2010 01:08:03 Michael Kerrisk wrote:
Quoted 6 lines · Yuri Kozlov

From elf.5:
 e_ident     This array of bytes specifies to interpret the file, ... EI_BRAND    Start of architecture identification.

Value for EI_BRAND is not defined in the linux/elf.h (and gabi too). Maybe add some comment, that is for *BSD only?

You've done a patch or two to the elf.5 page in the past. Are you able to comment on the below? I confirmed Yuri's statement: EI_BRAND isn't in glibc 2.11 source.

not being the glibc source isnt terribly important imo (since there are a lot of things glibc's elf.h doesnt define), but the fact it isnt in the gabi as Yuri notes seems pretty important:
http://www.sco.com/developers/gabi/latest/ch4.eheader.html

Quoted 4 lines

whether it be marked as non-standard (and then we research what random OSes actually define it) or simply drop it, either makes sense to me.  the latter is obviously less work :).
-mike

Okay -- I simply removed the test, as shown in the patch below. Okay?

Cheers,

Michael

man5/elf.5 +6 -3
@@ -347,9 +347,12 @@ The value for
 .B EI_PAD
 will change in
 the future if currently unused bytes are given meanings.
-.TP
-.BR EI_BRAND
-Start of architecture identification.
+.\" As reported by Yuri Kozlov  and confirmed by Mike Frysinger, EI_BRAND is
+.\" not in GABI (http://www.sco.com/developers/gabi/latest/ch4.eheader.html)
+.\" It looks to be a BSDism
+.\" .TP
+.\" .BR EI_BRAND
+.\" Start of architecture identification.
 .TP
 .BR EI_NIDENT
 The size of the

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html