MentOS  0.8.0
The Mentoring Operating System
Macros
link_access.h File Reference

Set of macros that provide access to linking symbols. More...

Go to the source code of this file.

Macros

#define EXTLD(NAME)
 Define variables pointing to external symbols, specifically to the .data section of a linked object file. More...
 
#define LDVAR(NAME)   _binary_##NAME##_start
 Provides access to the .data of the linked object.
 
#define LDLEN(NAME)   _binary_##NAME##_size
 Provides access to the length of the .data section of the linked object.
 

Detailed Description

Set of macros that provide access to linking symbols.

Macro Definition Documentation

◆ EXTLD

#define EXTLD (   NAME)
Value:
extern const unsigned char _binary_##NAME##_start[]; \
extern const unsigned char _binary_##NAME##_end[]; \
extern const unsigned char _binary_##NAME##_size[];

Define variables pointing to external symbols, specifically to the .data section of a linked object file.