test/br3092924.asm
raw| 1 | %define RNUM 0x10000 ; max of relocations in a section is 0xffff |
| 2 | |
| 3 | section .data1 |
| 4 | r1 dd RNUM |
| 5 | |
| 6 | section .data2 |
| 7 | r2 dd RNUM |
| 8 | |
| 9 | %macro x1 1 |
| 10 | mov eax, [r1 + %1] |
| 11 | %endmacro |
| 12 | |
| 13 | %macro x2 1 |
| 14 | mov eax, [r2 + %1] |
| 15 | %endmacro |
| 16 | |
| 17 | section .text1 |
| 18 | |
| 19 | %assign i 0 |
| 20 | %rep RNUM |
| 21 | x1 i |
| 22 | x2 i |
| 23 | %assign i i+1 |
| 24 | %endrep |
| 25 |