This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]