If the type is N_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 it's 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.
Symbol is not in any section
If the type is N_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 it's 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.