From 5e27ed65e29e81077a1a2559b1ef59a46932885b Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 18 Jun 1993 19:24:44 +0000 Subject: [PATCH] Add note about endianess of the stabs-in-elf stabs binary data. --- gdb/doc/stabs.texinfo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.30.2