rui314 / 9cc

A Small C Compiler
MIT License
1.83k stars 155 forks source link

error: 32-bit absolute addressing is not supported in 64-bit mode #25

Open ashWhiteHat opened 5 years ago

ashWhiteHat commented 5 years ago

Simply run make test after fix #14 and #24

➜  9cc git:(fix-the-issue-14) make test
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp-test1.s:16830:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r12, .L.str680
 ^
tmp-test1.s:16831:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r13, .L.str681
 ^
tmp-test1.s:16846:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea rbx, stderr
 ^
tmp-test1.s:16849:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r12, .L.str682
 ^
tmp-test1.s:16851:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r14, .L.str683
 ^
tmp-test1.s:16917:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea rbx, stderr
 ^
tmp-test1.s:16919:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r12, .L.str684
 ^
tmp-test1.s:16920:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r13, .L.str685
 ^
tmp-test1.s:16935:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea rbx, stderr
 ^
tmp-test1.s:16938:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r12, .L.str686
 ^
tmp-test1.s:16940:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r14, .L.str687
 ^
tmp-test1.s:17375:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r11, .L.str692
 ^
tmp-test1.s:17388:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r11, stderr
 ^
tmp-test1.s:17390:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea rbx, .L.str688
 ^
tmp-test1.s:17391:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r12, .L.str689
 ^
tmp-test1.s:17406:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r11, stderr
 ^
tmp-test1.s:17409:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea rbx, .L.str690
 ^
tmp-test1.s:17411:2: error: 32-bit absolute addressing is not supported in 64-bit mode
 lea r13, .L.str691
 ^
make: *** [test] Error 1