Initializes a new instance of the Relocation class.

Namespace: SharpAssembler.Core.Symbols
Assembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Relocation(
	Symbol symbol,
	Section section,
	Int128 offset,
	Int128 addend,
	RelocationType type
)
Visual Basic
Public Sub New ( _
	symbol As Symbol, _
	section As Section, _
	offset As Int128, _
	addend As Int128, _
	type As RelocationType _
)
Visual C++
public:
Relocation(
	Symbol^ symbol, 
	Section^ section, 
	Int128 offset, 
	Int128 addend, 
	RelocationType type
)

Parameters

symbol
Type: SharpAssembler.Core.Symbols..::..Symbol
The target symbol.
section
Type: SharpAssembler.Core..::..Section
The section in which the storage unit to be relocated resides.
offset
Type: SharpAssembler.Core..::..Int128
The offset relative to the start of section at which the storage unit to be relocated resides.
addend
Type: SharpAssembler.Core..::..Int128
The constant used to compute the value of the relocatable field.
type
Type: SharpAssembler.Core.Symbols..::..RelocationType
The type of relocation compution to perform.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionsymbol == null
System..::..ArgumentNullExceptionsection == null

Contracts

See Also