GCC 4.1.0 build error (as doesn't like code produced by xgcc)

Daniel Jacobowitz drow@false.org
Wed Mar 29 15:40:00 GMT 2006


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



More information about the Binutils mailing list