782
[darwin-xtools.git] / cctools / as / arm_reloc.h
bloba1c0620aec1125afbdac4a733537fd305ab89922
1 /*
2 * These #defines are needed in arm.c and write_object.c to create the
3 * the mach-o arm relocation r_types ARM_RELOC_HALF and ARM_RELOC_HALF_SECTDIFF.
4 * The values are internal but can't over lap any of the 4 bit r_type values
5 * they they are outside that 4 bit range. But they are picked so we can use
6 * the low two bits for the r_length encoding.
7 */
9 /* internal assembler value for BFD_RELOC_ARM_MOVW */
10 #define ARM_RELOC_LO16 0x70
11 /* r_length - low bit is 0 for :lower16:, high bit is 0 for arm instruction */
13 /* internal assembler value for BFD_RELOC_ARM_MOVT */
14 #define ARM_RELOC_HI16 0x71
15 /* r_length - low bit is 1 for :upper16:, high bit is 0 for arm instruction */
17 /* internal assembler value for BFD_RELOC_ARM_THUMB_MOVW */
18 #define ARM_THUMB_RELOC_LO16 0x72
19 /* r_length - low bit is 0 for :lower16:, high bit is 1 for thumb instruction */
21 /* internal assembler value for BFD_RELOC_ARM_THUMB_MOVT */
22 #define ARM_THUMB_RELOC_HI16 0x73
23 /* r_length - low bit is 1 for :upper16:, high bit is 1 for thumb instruction */