This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: GCC 4.1.0 build error (as doesn't like code produced by xgcc)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Clifford Wolf <clifford at clifford dot at>
- Cc: gcc at gcc dot gnu dot org, binutils at sourceware dot org
- Date: Wed, 29 Mar 2006 09:31:26 -0500
- Subject: Re: GCC 4.1.0 build error (as doesn't like code produced by xgcc)
- References: <20060328131030.GS16557@clifford.at>
On Tue, Mar 28, 2006 at 03:10:30PM +0200, Clifford Wolf wrote:
> /tmp/cc9Aywrx.s: Assembler messages:
> /tmp/cc9Aywrx.s:1256: Error: can't resolve `.text.unlikely' {.text.unlikely section} - `.LCFI70' {.text section}
The assembly is wrong. File a GCC bug. Two subtracted symbols should
generally be in the same section.
> I also do not really understand the error message. The assembler is trying
> to look up a symbol `.text.unlikely' in the .text.unlikely section? Sounds
> strange to me and according to the assember code it should try to look up
> `.LCFI71' instead. Is this a bug in binutils or gcc? Or am I doing
> something wrong?
It's just a quirk of the error message. The relocation has been made
relative to the section symbol, which has the same name as the
containing section.
--
Daniel Jacobowitz
CodeSourcery