You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When execute make for store-ele.s,it don't work,error:"/usr/bin/ld: store-ele.o: relocation R_X86_64_32S against symbol A can not be used when making a PIE object; recompile with -fPIC".
Fix bugs:
repalce
" movq A(,%rdx,8), %rax # t1 = (A + 8t4)"
to
"leaq A(%rip), %rax # calculate A for PIC code
movq (%rax, %rdx, 8), %rax # t1 = (A + 8t4)"
The text was updated successfully, but these errors were encountered:
When execute make for store-ele.s,it don't work,error:"/usr/bin/ld: store-ele.o: relocation R_X86_64_32S against symbol A can not be used when making a PIE object; recompile with -fPIC".
Fix bugs:
repalce
" movq A(,%rdx,8), %rax # t1 = (A + 8t4)"
to
"leaq A(%rip), %rax # calculate A for PIC code
movq (%rax, %rdx, 8), %rax # t1 = (A + 8t4)"
The text was updated successfully, but these errors were encountered: