From: Fred Fish Date: Fri, 18 Jun 1993 19:24:44 +0000 (+0000) Subject: Add note about endianess of the stabs-in-elf stabs binary data. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e27ed65e29e81077a1a2559b1ef59a46932885b;p=binutils-gdb.git Add note about endianess of the stabs-in-elf stabs binary data. --- diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index 2995ac17a13..93a251a395a 100644 --- a/gdb/doc/stabs.texinfo +++ b/gdb/doc/stabs.texinfo @@ -3863,7 +3863,9 @@ sections containing any arbitrary data. To use stabs in ELF object files, the tools create two custom sections, a ".stab" section which contains an array of fixed length structures, one struct per stab, and a ".stabstr" section containing all the variable length strings that are referenced by -stabs in the ".stab" section. +stabs in the ".stab" section. The byte order of the stabs binary data +matches the byte order of the ELF file itself, as determined from the +EI_DATA field in the e_ident member of the ELF header. The first stab in the ".stab" section for each object file is a "synthetic stab", generated entirely by the assembler, with no corresponding ".stab"