commit 46c6717eafbbe24d484fababc77113eb7463a185
parent 93f4c2a86916c26e3118da10bf10699f58f875ad
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 20 Jan 2025 16:02:58 +0100
libmach/elf: Change misleading comments
https://www.sco.com/developers/gabi/latest/ch4.symtab.html specifies
that st_other is used for the visibility of the symbol.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/bits/scc/elf/elfent.h b/include/bits/scc/elf/elfent.h
@@ -51,14 +51,14 @@ struct elf32_sym {
Elf32_Addr st_value; /* symbol value */
Elf32_Word st_size; /* symbol size */
unsigned char st_info; /* type and binding */
- unsigned char st_other; /* 0 - no defined meaning */
+ unsigned char st_other; /* visibility */
Elf32_Half st_shndx; /* section header index */
};
struct elf64_sym {
Elf64_Word st_name; /* Symbol name index in str table */
unsigned char st_info; /* type / binding attrs */
- unsigned char st_other; /* unused */
+ unsigned char st_other; /* visibility */
Elf64_Half st_shndx; /* section index of symbol */
Elf64_Addr st_value; /* value of symbol */
Elf64_Xword st_size; /* size of symbol */