relocation_info Struct Reference

#include <a.out.h>


Data Fields

int r_address
 Address (within segment) to be relocated.
unsigned int r_symbolnum:24
 The meaning of r_symbolnum depends on r_extern.
unsigned int r_pcrel:1
unsigned int r_length:2
unsigned int r_extern:1
unsigned int r_pad:4


Detailed Description

This structure describes a single relocation to be performed. The text-relocation section of the file is a vector of these structures, all of which apply to the text section.

Definition at line 257 of file a.out.h.


Field Documentation

int relocation_info::r_address

Address (within segment) to be relocated.

Definition at line 260 of file a.out.h.

unsigned int relocation_info::r_extern

1 => relocate with value of symbol. r_symbolnum is the index of the symbol in file's the symbol table. 0 => relocate with the address of a segment. r_symbolnum is N_TEXT, N_DATA, N_BSS or N_ABS

Definition at line 288 of file a.out.h.

unsigned int relocation_info::r_length

Length (as exponent of 2) of the field to be relocated.

Definition at line 277 of file a.out.h.

unsigned int relocation_info::r_pad

Four bits that aren't used, but when writing an object file

Definition at line 300 of file a.out.h.

unsigned int relocation_info::r_pcrel

Nonzero means value is a pc-relative offset and it should be relocated for changes in its own address

Definition at line 270 of file a.out.h.

unsigned int relocation_info::r_symbolnum

The meaning of r_symbolnum depends on r_extern.

Definition at line 262 of file a.out.h.


The documentation for this struct was generated from the following file:
Generated on Mon May 1 21:47:04 2006 for KernelAPI by  doxygen 1.4.6-5