Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storre-ele.s compile error #50

Open
LinuxerFlying opened this issue Mar 1, 2020 · 0 comments
Open

storre-ele.s compile error #50

LinuxerFlying opened this issue Mar 1, 2020 · 0 comments

Comments

@LinuxerFlying
Copy link

LinuxerFlying commented Mar 1, 2020

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)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant