jagtesh / arm-x86

Automatically exported from code.google.com/p/arm-x86
0 stars 0 forks source link

Error on compile: relocation truncated to fit #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
execute make

What is the expected output? What do you see instead?
successful compile but I see this error:
main.o: In function `printUsage':
main.c:(.text+0x6): relocation truncated to fit: R_X86_64_PC32 against symbol 
`puts@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.o: In function `main':
main.c:(.text.startup+0x58): relocation truncated to fit: R_X86_64_PC32 against 
symbol `exit@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0x67): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0x82): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0x8c): relocation truncated to fit: R_X86_64_PC32 against 
symbol `puts@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xa5): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__assert_fail@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xb4): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xcf): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xd9): relocation truncated to fit: R_X86_64_PC32 against 
symbol `puts@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xf2): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__assert_fail@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xfa): additional relocation overflows omitted from the 
output
collect2: ld returned 1 exit status
make: *** [exec] Error 1

What version of the product are you using? On what operating system?
using latest svn-version on Ubuntu-12.10 with "gcc version 4.7.2 (Ubuntu/Linaro 
4.7.2-2ubuntu1)"

Please provide any additional information below.
I tried using gcc 4.6 but it shows the same result

Original issue reported on code.google.com by SigmaEps...@gmail.com on 14 Feb 2013 at 11:40