Classes | Macros | Functions
nlist.h File Reference
#include <stdint.h>
Include dependency graph for nlist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nlist
 
struct  nlist_64
 

Macros

#define DYNAMIC_LOOKUP_ORDINAL   0xfe
 
#define EXECUTABLE_ORDINAL   0xff
 
#define GET_COMM_ALIGN(n_desc)   (((n_desc) >> 8) & 0x0f)
 
#define GET_LIBRARY_ORDINAL(n_desc)   (((n_desc) >> 8) & 0xff)
 
#define MAX_LIBRARY_ORDINAL   0xfd
 
#define MAX_SECT   255 /* 1 thru 255 inclusive */
 
#define N_ABS   0x2 /* absolute, n_sect == NO_SECT */
 
#define N_ALT_ENTRY   0x0200
 
#define N_ARM_THUMB_DEF   0x0008 /* symbol is a Thumb function (ARM) */
 
#define N_DESC_DISCARDED   0x0020 /* symbol is discarded */
 
#define N_EXT   0x01 /* external symbol bit, set for external symbols */
 
#define N_INDR   0xa /* indirect */
 
#define N_NO_DEAD_STRIP   0x0020 /* symbol is not to be dead stripped */
 
#define N_PBUD   0xc /* prebound undefined (defined in a dylib) */
 
#define N_PEXT   0x10 /* private external symbol bit */
 
#define N_REF_TO_WEAK   0x0080 /* reference to a weak symbol */
 
#define N_SECT   0xe /* defined in section number n_sect */
 
#define N_STAB   0xe0 /* if any of these bits set, a symbolic debugging entry */
 
#define N_SYMBOL_RESOLVER   0x0100
 
#define N_TYPE   0x0e /* mask for the type bits */
 
#define N_UNDF   0x0 /* undefined, n_sect == NO_SECT */
 
#define N_WEAK_DEF   0x0080 /* coalesed symbol is a weak definition */
 
#define N_WEAK_REF   0x0040 /* symbol is weak referenced */
 
#define NO_SECT   0 /* symbol is not in any section */
 
#define REFERENCE_FLAG_DEFINED   2
 
#define REFERENCE_FLAG_PRIVATE_DEFINED   3
 
#define REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY   5
 
#define REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY   4
 
#define REFERENCE_FLAG_UNDEFINED_LAZY   1
 
#define REFERENCE_FLAG_UNDEFINED_NON_LAZY   0
 
#define REFERENCE_TYPE   0x7
 
#define REFERENCED_DYNAMICALLY   0x0010
 
#define SELF_LIBRARY_ORDINAL   0x0
 
#define SET_COMM_ALIGN(n_desc, align)   (n_desc) = (((n_desc) & 0xf0ff) | (((align) & 0x0f) << 8))
 
#define SET_LIBRARY_ORDINAL(n_desc, ordinal)   (n_desc) = (((n_desc) & 0x00ff) | (((ordinal) & 0xff) << 8))
 

Functions

int nlist (const char *filename, struct nlist *list)
 

Macro Definition Documentation

◆ DYNAMIC_LOOKUP_ORDINAL

#define DYNAMIC_LOOKUP_ORDINAL   0xfe

Definition at line 242 of file nlist.h.

◆ EXECUTABLE_ORDINAL

#define EXECUTABLE_ORDINAL   0xff

Definition at line 243 of file nlist.h.

◆ GET_COMM_ALIGN

#define GET_COMM_ALIGN (   n_desc)    (((n_desc) >> 8) & 0x0f)

Definition at line 169 of file nlist.h.

◆ GET_LIBRARY_ORDINAL

#define GET_LIBRARY_ORDINAL (   n_desc)    (((n_desc) >> 8) & 0xff)

Definition at line 237 of file nlist.h.

◆ MAX_LIBRARY_ORDINAL

#define MAX_LIBRARY_ORDINAL   0xfd

Definition at line 241 of file nlist.h.

◆ MAX_SECT

#define MAX_SECT   255 /* 1 thru 255 inclusive */

Definition at line 158 of file nlist.h.

◆ N_ABS

#define N_ABS   0x2 /* absolute, n_sect == NO_SECT */

Definition at line 133 of file nlist.h.

◆ N_ALT_ENTRY

#define N_ALT_ENTRY   0x0200

Definition at line 303 of file nlist.h.

◆ N_ARM_THUMB_DEF

#define N_ARM_THUMB_DEF   0x0008 /* symbol is a Thumb function (ARM) */

Definition at line 289 of file nlist.h.

◆ N_DESC_DISCARDED

#define N_DESC_DISCARDED   0x0020 /* symbol is discarded */

Definition at line 262 of file nlist.h.

◆ N_EXT

#define N_EXT   0x01 /* external symbol bit, set for external symbols */

Definition at line 120 of file nlist.h.

◆ N_INDR

#define N_INDR   0xa /* indirect */

Definition at line 136 of file nlist.h.

◆ N_NO_DEAD_STRIP

#define N_NO_DEAD_STRIP   0x0020 /* symbol is not to be dead stripped */

Definition at line 255 of file nlist.h.

◆ N_PBUD

#define N_PBUD   0xc /* prebound undefined (defined in a dylib) */

Definition at line 135 of file nlist.h.

◆ N_PEXT

#define N_PEXT   0x10 /* private external symbol bit */

Definition at line 118 of file nlist.h.

◆ N_REF_TO_WEAK

#define N_REF_TO_WEAK   0x0080 /* reference to a weak symbol */

Definition at line 283 of file nlist.h.

◆ N_SECT

#define N_SECT   0xe /* defined in section number n_sect */

Definition at line 134 of file nlist.h.

◆ N_STAB

#define N_STAB   0xe0 /* if any of these bits set, a symbolic debugging entry */

Definition at line 117 of file nlist.h.

◆ N_SYMBOL_RESOLVER

#define N_SYMBOL_RESOLVER   0x0100

Definition at line 297 of file nlist.h.

◆ N_TYPE

#define N_TYPE   0x0e /* mask for the type bits */

Definition at line 119 of file nlist.h.

◆ N_UNDF

#define N_UNDF   0x0 /* undefined, n_sect == NO_SECT */

Definition at line 132 of file nlist.h.

◆ N_WEAK_DEF

#define N_WEAK_DEF   0x0080 /* coalesed symbol is a weak definition */

Definition at line 277 of file nlist.h.

◆ N_WEAK_REF

#define N_WEAK_REF   0x0040 /* symbol is weak referenced */

Definition at line 269 of file nlist.h.

◆ NO_SECT

#define NO_SECT   0 /* symbol is not in any section */

Definition at line 157 of file nlist.h.

◆ REFERENCE_FLAG_DEFINED

#define REFERENCE_FLAG_DEFINED   2

Definition at line 197 of file nlist.h.

◆ REFERENCE_FLAG_PRIVATE_DEFINED

#define REFERENCE_FLAG_PRIVATE_DEFINED   3

Definition at line 198 of file nlist.h.

◆ REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY

#define REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY   5

Definition at line 200 of file nlist.h.

◆ REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY

#define REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY   4

Definition at line 199 of file nlist.h.

◆ REFERENCE_FLAG_UNDEFINED_LAZY

#define REFERENCE_FLAG_UNDEFINED_LAZY   1

Definition at line 196 of file nlist.h.

◆ REFERENCE_FLAG_UNDEFINED_NON_LAZY

#define REFERENCE_FLAG_UNDEFINED_NON_LAZY   0

Definition at line 195 of file nlist.h.

◆ REFERENCE_TYPE

#define REFERENCE_TYPE   0x7

Definition at line 193 of file nlist.h.

◆ REFERENCED_DYNAMICALLY

#define REFERENCED_DYNAMICALLY   0x0010

Definition at line 208 of file nlist.h.

◆ SELF_LIBRARY_ORDINAL

#define SELF_LIBRARY_ORDINAL   0x0

Definition at line 240 of file nlist.h.

◆ SET_COMM_ALIGN

#define SET_COMM_ALIGN (   n_desc,
  align 
)    (n_desc) = (((n_desc) & 0xf0ff) | (((align) & 0x0f) << 8))

Definition at line 170 of file nlist.h.

◆ SET_LIBRARY_ORDINAL

#define SET_LIBRARY_ORDINAL (   n_desc,
  ordinal 
)    (n_desc) = (((n_desc) & 0x00ff) | (((ordinal) & 0xff) << 8))

Definition at line 238 of file nlist.h.

Function Documentation

◆ nlist()

int nlist ( const char *  filename,
struct nlist list 
)


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:24