pub struct NList64 {
pub n_strx: u32,
pub n_type: NTypeField,
pub n_sect: u8,
pub n_desc: u16,
pub n_value: u64,
}Fields§
§n_strx: u32An index into the string table. To specify an empty string (“”), set this value to 0.
n_type: NTypeFieldthis field really contains four fields.
n_sect: u8If the type is NType::Sect then the n_sect field contains an ordinal of the section the symbol is defined in. The sections are numbered from 1 and refer to sections in order they appear in the load commands for the file they are in. This means the same ordinal may very well refer to different sections in different files.
The n_value field for all symbol table entries (including n_stab’s) gets updated by the link editor based on the value of its n_sect field and where the section n_sect references gets relocated. If the value of the n_sect field is NO_SECT then it’s n_value field is not changed by the link editor.
n_desc: u16A 16-bit value providing additional information about the nature of this symbol.
n_value: u64An integer that contains the value of the symbol. The format of this value is different for each type of symbol table entry (as specified by the n_type field). For the N_SECT symbol type, n_value is the address of the symbol. See the description of the n_type field for information on other possible values.