This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: cross-compiling LM32 internal error while linking
- From: Federico Vaga <federico dot vaga at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 29 Jan 2016 18:28:44 +0100
- Subject: Re: cross-compiling LM32 internal error while linking
- Authentication-results: sourceware.org; auth=none
- References: <20160129091753 dot GE30568 at pcbe13110 dot cern dot ch>
I add more information. I tried also with different version:
gcc 4.9.3
binutils 2.20
mpc 1.0.3
mpfr 3.1.3
gmp 6.1.0
newlib 2.2.0
The error is more clear:
<path-to-my-environment>/lib/gcc/lm32-elf/4.9.3/../../../../lm32-elf/bin/ld: error: no memory region specified for loadable section `.got'
But still I do not understand why it is expecting the GOT region. The
GOT region should not be used only with shared library? (Not sure)
I compiled everything with --disable-shared and I'm compiling my code
with -static (to be sure to use static libraries).
On Fri, Jan 29, 2016 at 10:17:53AM +0100, Federico Vaga wrote:
Hello,
I've compiled a cross-compiler x86_64 to lm32:
gcc 5.3.0
binutils 2.26
mpc 1.0.3
mpfr 3.1.3
gmp 6.1.0
newlib 2.2.0
When I compile my code I get this message:
<path-to-my-environment>/lib/gcc/lm32-elf/5.3.0/../../../../lm32-elf/bin/ld: internal error: addend should be zero for R_LM32_16_GOT
Then the compilation complete without errors (O_O)
(like if that error is not an error but a warning)
I do not understand what does this mean, and I cannot find information on
the web. Any hint? If this is not the right place, can you redirect me to the
right place?
Thank you in advance