This is the mail archive of the
mailing list for the binutils project.
Re: cannot build mainline GCC with mainline binutils
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Bob Wilson <bwilson at tensilica dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 30 Nov 2004 00:42:31 -0500
- Subject: Re: cannot build mainline GCC with mainline binutils
- References: <41ABCE61.email@example.com>
Bob Wilson <firstname.lastname@example.org> writes:
> The problem is the ".-long_mangled_name" expression in the .size
> directive. This does not assemble unless DIFF_EXPR_OK is defined.
> (Either that or something else is wrong in the Xtensa port of GAS,
> which is always a possibility.) The error message is: "Error:
> operation combines symbols in different segments". The data in the
> middle of the function apparently makes the assembler think that "."
> is in a different segment than the start of the function.
You should only get that error if the symbols are, in fact, in
> * Perhaps GCC ought to be emitting .pushsection/.popsection around the
> data in the middle of the function. I tried that out (by hand-editing
> the assembly source) and it does indeed solve the problem.
The compiler does need to ensure that the start of the function and
the .size directive are in the same section. If that does not happen,
there is a bug somewhere.