/
Relocation.hpp
536 lines (442 loc) · 22 KB
/
Relocation.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://eclipse.org/legal/epl-2.0
* or the Apache License, Version 2.0 which accompanies this distribution
* and is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License, v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception [1] and GNU General Public
* License, version 2 with the OpenJDK Assembly Exception [2].
*
* [1] https://www.gnu.org/software/classpath/license.html
* [2] http://openjdk.java.net/legal/assembly-exception.html
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
*******************************************************************************/
#ifndef RELOCATION_INCL
#define RELOCATION_INCL
#include <stddef.h> // for NULL
#include <stdint.h> // for uint8_t, uint32_t, etc
#include "env/TRMemory.hpp" // for TR_Memory, etc
#include "infra/Assert.hpp" // for TR_ASSERT
#include "infra/Flags.hpp" // for flags8_t
#include "infra/Link.hpp" // for TR_Link
#include "runtime/Runtime.hpp"
namespace TR { class CodeGenerator; }
namespace TR { class Compilation; }
namespace TR { class Instruction; }
namespace TR { class LabelSymbol; }
namespace TR { class Node; }
extern char* AOTcgDiagOn;
#if 0 //defined(ENABLE_AOT_S390)
#define AOTcgDiag0(comp,s) if (AOTcgDiagOn) dumpOptDetails(comp,s)
#define AOTcgDiag1(comp,s,p1) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1)
#define AOTcgDiag2(comp,s,p1,p2) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2)
#define AOTcgDiag3(comp,s,p1,p2,p3) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3)
#define AOTcgDiag4(comp,s,p1,p2,p3,p4) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3,p4)
#define AOTcgDiag5(comp,s,p1,p2,p3,p4,p5) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3,p4,p5)
#define AOTcgDiag6(comp,s,p1,p2,p3,p4,p5,p6) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3,p4,p5,p6)
#else
#define AOTcgDiag0(comp,s) AOTcgDummy()
#define AOTcgDiag1(comp,s,p1) AOTcgDummy()
#define AOTcgDiag2(comp,s,p1,p2) AOTcgDummy()
#define AOTcgDiag3(comp,s,p1,p2,p3) AOTcgDummy()
#define AOTcgDiag4(comp,s,p1,p2,p3,p4) AOTcgDummy()
#define AOTcgDiag5(comp,s,p1,p2,p3,p4,p5) AOTcgDummy()
#define AOTcgDiag6(comp,s,p1,p2,p3,p4,p5,p6) AOTcgDummy()
inline void AOTcgDummy(){}
#endif
typedef enum
{
TR_UnusedGlobalValue = 0,
// start with 1, as there is a check in PPC preventing 0 valued immediates from being relocated.
TR_CountForRecompile = 1,
TR_HeapBase = 2,
TR_HeapTop = 3,
TR_HeapBaseForBarrierRange0 = 4,
TR_ActiveCardTableBase = 5,
TR_HeapSizeForBarrierRange0 = 6,
TR_MethodEnterHookEnabledAddress = 7,
TR_MethodExitHookEnabledAddress = 8,
TR_NumGlobalValueItems = 9
} TR_GlobalValueItem;
namespace TR {
/** encapsulates debug information about a relocation record */
struct RelocationDebugInfo
{
/** the file name of the code that generated the associated RR*/
const char* file;
/** the line number in the file file that created the associated RR*/
uintptr_t line;
/** the node in the IL that triggered the creation of the associated RR */
TR::Node* node;
public:
TR_ALLOC(TR_Memory::RelocationDebugInfo);
};
class Relocation
{
uint8_t *_updateLocation;
TR::RelocationDebugInfo* _genData;
public:
TR_ALLOC(TR_Memory::Relocation)
Relocation() : _updateLocation(NULL) {}
Relocation(uint8_t *p) : _updateLocation(p) {}
virtual uint8_t *getUpdateLocation() {return _updateLocation;}
uint8_t *setUpdateLocation(uint8_t *p) {return (_updateLocation = p);}
virtual bool isAOTRelocation() { return true; }
TR::RelocationDebugInfo* getDebugInfo();
void setDebugInfo(TR::RelocationDebugInfo* info);
/**dumps a trace of the internals - override as required */
virtual void trace(TR::Compilation* comp);
virtual void addAOTRelocation(TR::CodeGenerator *codeGen) {}
virtual void apply(TR::CodeGenerator *codeGen);
};
class LabelRelocation : public TR::Relocation
{
TR::LabelSymbol *_label;
public:
LabelRelocation() : TR::Relocation(), _label(NULL) {}
LabelRelocation(uint8_t *p, TR::LabelSymbol *l) : TR::Relocation(p),
_label(l) {}
TR::LabelSymbol *getLabel() {return _label;}
TR::LabelSymbol *setLabel(TR::LabelSymbol *l) {return (_label = l);}
bool isAOTRelocation() { return false; }
};
class LabelRelative8BitRelocation : public TR::LabelRelocation
{
public:
LabelRelative8BitRelocation() : TR::LabelRelocation() {}
LabelRelative8BitRelocation(uint8_t *p, TR::LabelSymbol *l)
: TR::LabelRelocation(p, l) {}
virtual void apply(TR::CodeGenerator *codeGen);
};
class LabelRelative12BitRelocation : public TR::LabelRelocation
{
bool _isCheckDisp;
public:
LabelRelative12BitRelocation() : TR::LabelRelocation() {}
LabelRelative12BitRelocation(uint8_t *p, TR::LabelSymbol *l, bool isCheckDisp = true)
: TR::LabelRelocation(p, l), _isCheckDisp(isCheckDisp) {}
bool isCheckDisp() {return _isCheckDisp;}
virtual void apply(TR::CodeGenerator *codeGen);
};
class LabelRelative16BitRelocation : public TR::LabelRelocation
{
// field _instructionOffser is used for 16-bit relocation when we need to specify where relocation starts relative to the first byte of the instruction.
//Eg.: BranchPreload instruction BPP (48-bit instruction), where 16-bit relocation is at 32-47 bits, TR::LabelRelative16BitRelocation(*p,*l, 4, true)
//
// The regular TR::LabelRelative16BitRelocation(uint8_t *p, TR::LabelSymbol *l) only supports instructions with 16-bit relocations,
// where the relocation is 2 bytes (hardcoded value) form the start of the instruction
bool _instructionOffset;
int8_t _addressDifferenceDivisor;
public:
LabelRelative16BitRelocation()
: TR::LabelRelocation(), _addressDifferenceDivisor(1) {}
LabelRelative16BitRelocation(uint8_t *p, TR::LabelSymbol *l)
: TR::LabelRelocation(p, l), _addressDifferenceDivisor(1) {}
LabelRelative16BitRelocation(uint8_t *p, TR::LabelSymbol *l, int8_t divisor, bool isInstOffset = false)
: TR::LabelRelocation(p, l), _addressDifferenceDivisor(divisor), _instructionOffset(isInstOffset) {}
bool isInstructionOffset() {return _instructionOffset;}
bool setInstructionOffset(bool b) {return (_instructionOffset = b);}
int8_t getAddressDifferenceDivisor() {return _addressDifferenceDivisor;}
int8_t setAddressDifferenceDivisor(int8_t d) {return (_addressDifferenceDivisor = d);}
virtual void apply(TR::CodeGenerator *codeGen);
};
class LabelRelative24BitRelocation : public TR::LabelRelocation
{
public:
LabelRelative24BitRelocation() : TR::LabelRelocation() {}
LabelRelative24BitRelocation(uint8_t *p, TR::LabelSymbol *l)
: TR::LabelRelocation(p, l) {}
virtual void apply(TR::CodeGenerator *codeGen);
};
class LabelRelative32BitRelocation : public TR::LabelRelocation
{
public:
LabelRelative32BitRelocation() : TR::LabelRelocation() {}
LabelRelative32BitRelocation(uint8_t *p, TR::LabelSymbol *l)
: TR::LabelRelocation(p, l) {}
virtual void apply(TR::CodeGenerator *codeGen);
};
class InstructionAbsoluteRelocation : public TR::Relocation
{
public:
InstructionAbsoluteRelocation(uint8_t *updateLocation,
TR::Instruction *i,
bool useEndAddr) /* specified if the start or
the end address of the instruction
is required */
: TR::Relocation(updateLocation), _instruction(i), _useEndAddr(useEndAddr) {}
virtual void apply(TR::CodeGenerator *cg);
bool isAOTRelocation() { return false; }
protected:
TR::Instruction *getInstruction() { return _instruction; }
bool useEndAddress() { return _useEndAddr; }
private:
TR::Instruction *_instruction;
bool _useEndAddr;
};
//FIXME: these label absolute relocations should really be a subclass of instruction
// absolute.
class LabelAbsoluteRelocation : public TR::LabelRelocation
{
public:
LabelAbsoluteRelocation() : TR::LabelRelocation() {}
LabelAbsoluteRelocation(uint8_t *p, TR::LabelSymbol *l)
: TR::LabelRelocation(p, l) {}
virtual void apply(TR::CodeGenerator *codeGen);
};
class LoadLabelRelative16BitRelocation : public TR::Relocation
{
TR::Instruction *_lastInstruction;
TR::LabelSymbol *_startLabel;
TR::LabelSymbol *_endLabel;
int32_t _deltaToStartLabel; // used to catch potentially nasty register dep related bugs
public:
LoadLabelRelative16BitRelocation() : TR::Relocation() {}
LoadLabelRelative16BitRelocation(TR::Instruction *i, TR::LabelSymbol *start, TR::LabelSymbol *end, int32_t delta)
: TR::Relocation(NULL), _lastInstruction(i), _startLabel(start), _endLabel(end), _deltaToStartLabel(delta) {}
TR::Instruction *getLastInstruction() {return _lastInstruction;}
TR::Instruction *setLastInstruction(TR::Instruction *i) {return (_lastInstruction = i);}
TR::LabelSymbol *getStartLabel() {return _startLabel;}
TR::LabelSymbol *setStartLabel(TR::LabelSymbol *l) {return (_startLabel = l);}
TR::LabelSymbol *getEndLabel() {return _endLabel;}
TR::LabelSymbol *setEndLabel(TR::LabelSymbol *l) {return (_endLabel = l);}
int32_t setDeltaToStartLabel(int32_t d) { return (_deltaToStartLabel = d); }
int32_t getDeltaToStartLabel() { return _deltaToStartLabel; }
bool isAOTRelocation() { return false; }
virtual void apply(TR::CodeGenerator *codeGen);
};
class LoadLabelRelative32BitRelocation : public TR::Relocation
{
TR::Instruction *_lastInstruction;
TR::LabelSymbol *_startLabel;
TR::LabelSymbol *_endLabel;
int32_t _deltaToStartLabel; // used to catch potentially nasty register dep related bugs
public:
LoadLabelRelative32BitRelocation() : TR::Relocation() {}
LoadLabelRelative32BitRelocation(TR::Instruction *i, TR::LabelSymbol *start, TR::LabelSymbol *end, int32_t delta)
: TR::Relocation(NULL), _lastInstruction(i), _startLabel(start), _endLabel(end), _deltaToStartLabel(delta) {}
TR::Instruction *getLastInstruction() {return _lastInstruction;}
TR::Instruction *setLastInstruction(TR::Instruction *i) {return (_lastInstruction = i);}
TR::LabelSymbol *getStartLabel() {return _startLabel;}
TR::LabelSymbol *setStartLabel(TR::LabelSymbol *l) {return (_startLabel = l);}
TR::LabelSymbol *getEndLabel() {return _endLabel;}
TR::LabelSymbol *setEndLabel(TR::LabelSymbol *l) {return (_endLabel = l);}
int32_t setDeltaToStartLabel(int32_t d) { return (_deltaToStartLabel = d); }
int32_t getDeltaToStartLabel() { return _deltaToStartLabel; }
bool isAOTRelocation() { return false; }
virtual void apply(TR::CodeGenerator *codeGen);
};
class LoadLabelRelative64BitRelocation : public TR::LabelRelocation
{
TR::Instruction *_lastInstruction;
public:
LoadLabelRelative64BitRelocation() : TR::LabelRelocation() {}
LoadLabelRelative64BitRelocation(TR::Instruction *i, TR::LabelSymbol *l)
: TR::LabelRelocation(NULL, l), _lastInstruction(i) {}
TR::Instruction *getLastInstruction() {return _lastInstruction;}
TR::Instruction *setLastInstruction(TR::Instruction *i) {return (_lastInstruction = i);}
virtual void apply(TR::CodeGenerator *codeGen);
};
#define MAX_SIZE_RELOCATION_DATA ((uint16_t)0xffff)
#define MIN_SHORT_OFFSET -32768
#define MAX_SHORT_OFFSET 32767
class IteratedExternalRelocation : public TR_Link<TR::IteratedExternalRelocation>
{
public:
IteratedExternalRelocation() : TR_Link<TR::IteratedExternalRelocation>(),
_numberOfRelocationSites(0),
_targetAddress(NULL),
_targetAddress2(NULL),
_relocationData(NULL),
_relocationDataCursor(NULL),
_sizeOfRelocationData(0),
_recordModifier(0),
_full(false),
_kind(TR_ConstantPool) {}
IteratedExternalRelocation(uint8_t *target, TR_ExternalRelocationTargetKind k, flags8_t modifier, TR::CodeGenerator *codeGen);
IteratedExternalRelocation(uint8_t *target, uint8_t *target2, TR_ExternalRelocationTargetKind k, flags8_t modifier, TR::CodeGenerator *codeGen);
uint32_t getNumberOfRelocationSites() {return _numberOfRelocationSites;}
uint32_t setNumberOfRelocationSites(uint32_t s)
{return (_numberOfRelocationSites = s);}
uint8_t *getTargetAddress() {return _targetAddress;}
uint8_t *setTargetAddress(uint8_t *p) {return (_targetAddress = p);}
uint8_t *getTargetAddress2() {return _targetAddress2;}
uint8_t *getRelocationData() {return _relocationData;}
uint8_t *setRelocationData(uint8_t *p) {return (_relocationData = p);}
uint8_t *getRelocationDataCursor() {return _relocationDataCursor;}
uint8_t *setRelocationDataCursor(uint8_t *p) {return (_relocationDataCursor = p);}
void initializeRelocation(TR::CodeGenerator * codeGen);
void addRelocationEntry(uint32_t locationOffset);
uint16_t getSizeOfRelocationData() {return _sizeOfRelocationData;}
uint16_t setSizeOfRelocationData(uint16_t s) {return (_sizeOfRelocationData = s);}
uint16_t addToSizeOfRelocationData(uint16_t s) {return (_sizeOfRelocationData += s);}
bool needsWideOffsets()
{return _recordModifier.testAny(RELOCATION_TYPE_WIDE_OFFSET);}
void setNeedsWideOffsets() {_recordModifier.set(RELOCATION_TYPE_WIDE_OFFSET);}
bool isOrderedPair() {return _recordModifier.testAny(RELOCATION_TYPE_ORDERED_PAIR);}
void setOrderedPair() {_recordModifier.set(RELOCATION_TYPE_ORDERED_PAIR);}
uint8_t getModifierValue() {return _recordModifier.getValue();}
void setModifierValue(uint8_t v) {_recordModifier.setValue(0x00, v);}
bool full() {return _full;}
void setFull() {_full = true;}
TR_ExternalRelocationTargetKind getTargetKind() {return _kind;}
TR_ExternalRelocationTargetKind setTargetKind(TR_ExternalRelocationTargetKind k) {return (_kind = k);}
private:
uint32_t _numberOfRelocationSites;
uint8_t *_targetAddress;
uint8_t *_targetAddress2;
uint8_t *_relocationData;
uint8_t *_relocationDataCursor;
uint16_t _sizeOfRelocationData;
flags8_t _recordModifier;
bool _full;
TR_ExternalRelocationTargetKind _kind;
};
class ExternalRelocation : public TR::Relocation
{
public:
ExternalRelocation()
: TR::Relocation(),
_targetAddress(NULL),
_targetAddress2(NULL),
_kind(TR_ConstantPool),
_relocationRecord(NULL)
{}
ExternalRelocation(uint8_t *p,
uint8_t *target,
TR_ExternalRelocationTargetKind kind,
TR::CodeGenerator *codeGen)
: TR::Relocation(p),
_targetAddress(target),
_targetAddress2(NULL),
_kind(kind),
_relocationRecord(NULL)
{}
ExternalRelocation(uint8_t *p,
uint8_t *target,
uint8_t *target2,
TR_ExternalRelocationTargetKind kind,
TR::CodeGenerator *codeGen)
: TR::Relocation(p),
_targetAddress(target),
_targetAddress2(target2),
_kind(kind),
_relocationRecord(NULL)
{}
uint8_t *getTargetAddress() {return _targetAddress;}
uint8_t *setTargetAddress(uint8_t *p) {return (_targetAddress = p);}
uint8_t *getTargetAddress2() {return _targetAddress2;}
TR_ExternalRelocationTargetKind getTargetKind() {return _kind;}
TR_ExternalRelocationTargetKind setTargetKind(TR_ExternalRelocationTargetKind k) {return (_kind = k);}
TR::IteratedExternalRelocation *getRelocationRecord()
{return _relocationRecord;}
void trace(TR::Compilation* comp);
void addAOTRelocation(TR::CodeGenerator *codeGen);
virtual uint8_t collectModifier();
virtual uint32_t getNarrowSize() {return 2;}
virtual uint32_t getWideSize() {return 4;}
virtual void apply(TR::CodeGenerator *codeGen);
static const char *getName(TR_ExternalRelocationTargetKind k) {return _externalRelocationTargetKindNames[k];}
static uintptr_t getGlobalValue(uint32_t g)
{
TR_ASSERT(g >= 0 && g < TR_NumGlobalValueItems, "invalid index for global item");
return _globalValueList[g];
}
static void setGlobalValue(uint32_t g, uintptr_t v)
{
TR_ASSERT(g >= 0 && g < TR_NumGlobalValueItems, "invalid index for global item");
_globalValueList[g] = v;
}
static char * nameOfGlobal(uint32_t g)
{
TR_ASSERT(g >= 0 && g < TR_NumGlobalValueItems, "invalid index for global item");
return _globalValueNames[g];
}
private:
uint8_t *_targetAddress;
uint8_t *_targetAddress2;
TR::IteratedExternalRelocation *_relocationRecord;
TR_ExternalRelocationTargetKind _kind;
static const char *_externalRelocationTargetKindNames[TR_NumExternalRelocationKinds];
static uintptr_t _globalValueList[TR_NumGlobalValueItems];
static uint8_t _globalValueSizeList[TR_NumGlobalValueItems];
static char *_globalValueNames[TR_NumGlobalValueItems];
};
class ExternalOrderedPair32BitRelocation: public TR::ExternalRelocation
{
public:
ExternalOrderedPair32BitRelocation(uint8_t *location1,
uint8_t *location2,
uint8_t *target,
TR_ExternalRelocationTargetKind k,
TR::CodeGenerator *codeGen);
uint8_t *getLocation2() {return _update2Location;}
void setLocation2(uint8_t *l) {_update2Location = l;}
virtual uint8_t collectModifier();
virtual uint32_t getNarrowSize() {return 4;}
virtual uint32_t getWideSize() {return 8;}
virtual void apply(TR::CodeGenerator *codeGen);
private:
uint8_t *_update2Location;
};
class BeforeBinaryEncodingExternalRelocation : public TR::ExternalRelocation
{
private:
TR::Instruction *_instruction;
public:
BeforeBinaryEncodingExternalRelocation()
: TR::ExternalRelocation()
{}
BeforeBinaryEncodingExternalRelocation(TR::Instruction *instr,
uint8_t *target,
TR_ExternalRelocationTargetKind kind,
TR::CodeGenerator *codeGen)
: TR::ExternalRelocation(NULL, target, kind, codeGen),
_instruction(instr)
{}
BeforeBinaryEncodingExternalRelocation(TR::Instruction *instr,
uint8_t *target,
uint8_t *target2,
TR_ExternalRelocationTargetKind kind,
TR::CodeGenerator *codeGen)
: TR::ExternalRelocation(NULL, target, target2, kind, codeGen),
_instruction(instr)
{}
virtual uint8_t *getUpdateLocation();
TR::Instruction* getUpdateInstruction() { return _instruction; }
};
class LabelTable32BitRelocation : public TR::LabelRelocation
{
public:
LabelTable32BitRelocation() : TR::LabelRelocation() {}
LabelTable32BitRelocation(uint8_t *p, TR::LabelSymbol *l)
: TR::LabelRelocation(p, l) {}
virtual void apply(TR::CodeGenerator *codeGen);
};
}
typedef TR::RelocationDebugInfo TR_RelocationDebugInfo;
typedef TR::Relocation TR_Relocation;
typedef TR::LabelRelocation TR_LabelRelocation;
typedef TR::LabelRelative8BitRelocation TR_8BitLabelRelativeRelocation;
typedef TR::LabelRelative12BitRelocation TR_12BitLabelRelativeRelocation;
typedef TR::LabelRelative16BitRelocation TR_16BitLabelRelativeRelocation;
typedef TR::LabelRelative24BitRelocation TR_24BitLabelRelativeRelocation;
typedef TR::LabelRelative32BitRelocation TR_32BitLabelRelativeRelocation;
typedef TR::InstructionAbsoluteRelocation TR_InstructionAbsoluteRelocation;
typedef TR::LabelAbsoluteRelocation TR_LabelAbsoluteRelocation;
typedef TR::LoadLabelRelative16BitRelocation TR_16BitLoadLabelRelativeRelocation;
typedef TR::LoadLabelRelative32BitRelocation TR_32BitLoadLabelRelativeRelocation;
typedef TR::LoadLabelRelative64BitRelocation TR_64BitLoadLabelRelativeRelocation;
typedef TR::IteratedExternalRelocation TR_IteratedExternalRelocation;
typedef TR::ExternalRelocation TR_ExternalRelocation;
typedef TR::ExternalOrderedPair32BitRelocation TR_32BitExternalOrderedPairRelocation;
typedef TR::BeforeBinaryEncodingExternalRelocation TR_BeforeBinaryEncodingExternalRelocation;
typedef TR::LabelTable32BitRelocation TR_32BitLabelTableRelocation;
#endif