Better diagnostics for undefined symbols in assignments to dot
Nick Clifton
nickc@redhat.com
Mon Feb 14 16:38:00 GMT 2005
Hi Zack,
> Since no one seems interested in helping me with this,
Sorry :-(
> I have redone it
> in a way which at least does not break anything. I'm not hugely
> enthused about adding a file-global state flag,
I agree - but your way is certainly the cleanest and simplest way of
solving the problem.
> * ldexp.c (assigning_to_dot): New global flag.
> (fold_name): If assigning_to_dot is true, object immediately to
> an undefined symbol.
> (exp_fold_tree): Set and clear assigning_to_dot around the
> recursive call to exp_fold_tree to process the right-hand side
> of an assignment to the location counter.
>
> testsuite:
> * ld-scripts/align.exp: Rename existing "ALIGN" test to "align1".
> Add dump tests "align2a", "align2b", "align2c".
> * ld-scripts/align2.t, ld-scripts/align2a.s, ld-scripts/align2a.d
> * ld-scripts/align2b.s, ld-scripts/align2b.d
> * ld-scripts/align2c.s, ld-scripts/align2c.d: New files.
Approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list