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