This is the mail archive of the
mailing list for the binutils project.
RE: cross-compiling LM32 internal error while linking
- From: "Jon Beniston" <jon at beniston dot com>
- To: "'Federico Vaga'" <federico dot vaga at gmail dot com>
- Cc: <binutils at sourceware dot org>, "'Nick Clifton'" <nickc at redhat dot com>
- Date: Fri, 26 Feb 2016 13:31:31 -0000
- 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> <56B48649 dot 4010401 at redhat dot com> <20160205145805 dot GM16092 at pcbe13110 dot cern dot ch> <20160205173045 dot GD8955 at pcbe13110 dot cern dot ch> <20160209162558 dot GU9602 at pcbe13110 dot cern dot ch> <56C20E63 dot 3010300 at redhat dot com> <038601d1689e$93ed29d0$bbc77d70$ at beniston dot com> <20160216154831 dot GA32130 at localhost dot localdomain> <20160217215124 dot GD13894 at localhost dot localdomain> <20160226132826 dot GA11938 at localhost dot localdomain>
Is there any particular reason why you want/need to use that option? Can't
say I've ever tried it.
From: Federico Vaga [mailto:email@example.com]
Sent: 26 February 2016 13:28
To: Jon Beniston
Cc: firstname.lastname@example.org; 'Nick Clifton'
Subject: Re: cross-compiling LM32 internal error while linking
I think I found the source of the problem `--enable-host-shared`. If I use
this flag I get this error:
lm32-elf/bin/ld: internal error: addend should be zero for R_LM32_16_GOT
Attached the script that generate the toolchain with the GOT issue.
I hope it helps :)
On Wed, Feb 17, 2016 at 10:51:24PM +0100, Federico Vaga wrote:
>I confirm that without any flag it do not have problems. This means
>that the problem is triggered by one of those flags. I will try to find
>out which one in the days.
>On Tue, Feb 16, 2016 at 04:48:31PM +0100, Federico Vaga wrote:
>>On Tue, Feb 16, 2016 at 09:44:04AM -0000, Jon Beniston wrote:
>>>I can't reproduce the problem either. It would be useful to know
>>>exactly what version of GCC you are using and how it was configured
>>>when you built it. Perhaps use -save-temps and e-mail the intermediate
>>Versions are the same as the first email:
>>Attached the script that I used to compile.
>>I can do some tests in the next days/weeks (I do not know yet).
>>Maybe I will try first to compile without any flag, actually I did not
>>try yet :) Maybe is useful to find the problem.
>>>From: Nick Clifton [mailto:email@example.com]
>>>Sent: 15 February 2016 17:44
>>>To: Federico Vaga
>>>Cc: firstname.lastname@example.org; email@example.com
>>>Subject: Re: cross-compiling LM32 internal error while linking
>>>I am sorry - I just cannot reproduce this failure. :-( All my
>>>attempts end up with a fully linked binary and no linker error messages.
>>>Please could you try adding -v to the end of your final gcc command
>>>line, so that you can capture the linker command line ? (It will
>>>probably reference a program called "collect2" rather than the linker
>>>itself, but that is OK. It is the command line that I need).
>>>PS Maybe it is the version of gcc that you are using ? I am using
>>>gcc 6.0 from the current mainline development sources...