* ldexp.c (assigning_to_dot): New global flag.
authorZack Weinberg <zackw@panix.com>
Thu, 17 Feb 2005 20:57:01 +0000 (20:57 +0000)
committerZack Weinberg <zackw@panix.com>
Thu, 17 Feb 2005 20:57:01 +0000 (20:57 +0000)
commitfbbb9ac52fc2cca745356239a4a1e7cd11539c11
treeaed50b6745b6a6128c9330639bccba8ef9fef294
parentf397e30345ade7e6fcdf186693715ca227508511
* 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.
ld/ChangeLog
ld/ldexp.c
ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/align.exp
ld/testsuite/ld-scripts/align2.t [new file with mode: 0644]
ld/testsuite/ld-scripts/align2a.d [new file with mode: 0644]
ld/testsuite/ld-scripts/align2a.s [new file with mode: 0644]
ld/testsuite/ld-scripts/align2b.d [new file with mode: 0644]
ld/testsuite/ld-scripts/align2b.s [new file with mode: 0644]
ld/testsuite/ld-scripts/align2c.d [new file with mode: 0644]
ld/testsuite/ld-scripts/align2c.s [new file with mode: 0644]