#include <mach-o/nlist.h>
mach-o/nlist.h
$NetBSD: nlist.h,v 1.5 1994/10/26 00:56:11 cgd Exp $
structnlist
Format of a symbol table entry of a Mach-O file for 32-bit architectures.
Modified from the BSD format. The modifications from the original format
were changing n_other (an unused field) to n_sect and the addition of the
N_SECT type. These modifications are required to support symbols in a larger
number of sections not just the three sections (text, data and bss) in a BSD
file.
| unnamed union at Kernel/mach-o/nlist.h:77:2 | n_un | ||||
| |||||
| uint8_t | n_type | type flag, see below | |||
| uint8_t | n_sect | section number or NO_SECT | |||
| int16_t | n_desc | see <mach-o/stab.h> | |||
| uint32_t | n_value | value of this symbol (or stab offset) | |||
structnlist_64
This is the symbol table entry structure for 64-bit architectures.
| unnamed union at Kernel/mach-o/nlist.h:93:5 | n_un | ||||
| |||||
| uint8_t | n_type | type flag, see below | |||
| uint8_t | n_sect | section number or NO_SECT | |||
| uint16_t | n_desc | see <mach-o/stab.h> | |||
| uint64_t | n_value | value of this symbol (or stab offset) | |||