1 /* 8 bit data address relocations (R_CRX_NUM8). */
3 /* 16 bit data address relocations (R_CRX_NUM16). */
5 /* 32 bit data address relocations (R_CRX_NUM32). */
11 Relative address (R_CRX_REL4) : 0x6 + 2 = 0x8
20 Relative address (R_CRX_REL8): 0x10 + 2 = 0x12
21 Relative address (R_CRX_REL8_CMP) : 0x10 + 4 = 0x14
29 /* 12 bit relocations:
30 Absolute address (R_CRX_REGREL12) : 0x0101 + 0x700 + 4 = 0x805
38 /* 16 bit relocations:
39 Relative address (R_CRX_REL16) : 0x1000 + 4 = 0x1004
40 Absolute address (R_CRX_IMM16) : 0x01010 + 0x1000 + 4 = 0x2014
48 /* 22 bit relocations:
49 Absolute address (R_CRX_REGREL22) : 0x0201400 + 0x100000 + 6 = 0x301406
54 foo22 = (. + 0x100000);
57 /* 24 bit relocations:
58 Relative address (R_CRX_REL24) : 0xe00000 + 6 = 0xe00006
63 foo24 = (. + 0xe00000);
66 /* 28 bit relocations:
67 Absolute address (R_CRX_REGREL28) : 0x06201400 + 0x3100000 + 6 = 0x9301406
72 foo28 = (. + 0x3100000);
75 /* 32 bit relocations:
76 Absolute address (R_CRX_ABS32, R_CRX_IMM32) : 0x11014000 + 0x11000000 + 6 = 0x22014006
77 Relative address (R_CRX_REL32) : 0x11000000 + 6 = 0x11000006
82 foo32 = (. + 0x11000000);