#include <mach-o/nlist.h>

mach-o/nlist.h Kernel.framework

$NetBSD: nlist.h,v 1.5 1994/10/26 00:56:11 cgd Exp $
includes: Kernel/stdint.h
2 structs

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.
size 12, align 4
unnamed union at Kernel/mach-o/nlist.h:77:2n_un
uint32_tn_strxindex into the string table
uint8_tn_typetype flag, see below
uint8_tn_sectsection number or NO_SECT
int16_tn_descsee <mach-o/stab.h>
uint32_tn_valuevalue of this symbol (or stab offset)

structnlist_64

This is the symbol table entry structure for 64-bit architectures.
size 16, align 8
unnamed union at Kernel/mach-o/nlist.h:93:5n_un
uint32_tn_strxindex into the string table
uint8_tn_typetype flag, see below
uint8_tn_sectsection number or NO_SECT
uint16_tn_descsee <mach-o/stab.h>
uint64_tn_valuevalue of this symbol (or stab offset)