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

Relocation truncated to fit #1

Open
emc2314 opened this issue Nov 23, 2016 · 2 comments · May be fixed by #2
Open

Relocation truncated to fit #1

emc2314 opened this issue Nov 23, 2016 · 2 comments · May be fixed by #2

Comments

@emc2314
Copy link

emc2314 commented Nov 23, 2016

I got this when I compiled it on my PC:
/tmp/ccxMsZIh.o:fake:(.text+0x40): relocation truncated to fit: R_X86_64_32S against symbol `buf' defined in COMMON section in /tmp/ccxMsZIh.o
Any Ideas?

@Zibri
Copy link

Zibri commented Mar 20, 2019

same here

@E6DUchiha
Copy link

all you need to do is to add the compile flag : -no-pie , it'll look like this 👍
printf 'Building... '
for bin in encrypt decrypt; do
gcc -Wall -no-pie -nostdlib -o $bin $bin.s
done

@k3it k3it linked a pull request Dec 1, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants