# Class: com.pnfsoftware.jeb.core.units.codeobject.ELFRelocationContext

ELF relocation contexts can be registered using the [ELFPluginsService](ELFPluginsService). 

 A relocation context means a type of ELF \(e.g. executable, or dynamic file\) and an architecture \(e.g. Arm\). A context consists of one or more relocation applicators.

## Constructor: ELFRelocationContext
- parameter: `relocApplicators`, type: `com.pnfsoftware.jeb.core.units.codeobject.ELFRelocationApplicator<?>[]`

Description: Create a relocation context.
parameter: relocApplicators: relocation applicators supported by this context

## Method: canApply
- parameter: `elfUnit`, type: `com.pnfsoftware.jeb.core.units.codeobject.IELFUnit`
- parameter: `actualImageBase`, type: `long`
- return type: `boolean`

Description: Determine whether this context applies to the given file.
parameter: elfUnit: ELF unit
parameter: actualImageBase: actual image base
return: true if this context can process the file

## Method: getApplicableRelocations
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.codeobject.ELFRelocationApplicator<?>>`

Description: Get the relocation applicators supported by this context.
return: relocation applicators

## Protected Method: isMappedAtPreferredAddress
- parameter: `elfUnit`, type: `com.pnfsoftware.jeb.core.units.codeobject.IELFUnit`
- parameter: `actualImageBase`, type: `long`
- return type: `boolean`

Description: Determine whether the file is mapped at its preferred image base.
parameter: elfUnit: ELF unit
parameter: actualImageBase: actual image base
return: true if the actual image base is the preferred image base

