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: [RFC] handling of forward references in expressions


On Tue, Aug 01, 2006 at 11:07:21AM +0200, Jan Beulich wrote:
> I was about to submit the following patch, when I found that a few
> targets can't deal with expressions in expr_section. My question hence
> is - can someone see another solution to the original problem, or do I
> need to go through all affected targets and find where they make those
> incorrect assumptions?

Jan,

Back in 2004, we encountered similar label-arithmetic problems on the
avr port. At
http://lists.gnu.org/archive/html/avr-gcc-list/2003-09/msg00065.html
there are two examples and the beginnings of a code diagnosis. I chased
it from gas/config/tc-avr.c to the gas-generic expr.c file, before my
gumboots filled with mud.

Klaus Rudolph's very useful partial fix appears in
http://lists.gnu.org/archive/html/avr-gcc-list/2004-11/msg00209.html,
but that's avr-specific.

If you find a way to handle generic assembler arithmetic generically, it
would be cause for celebration and gratitude.

Erik


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