Files
binutils-gdb/ld/testsuite/ld-scripts/align2b.d
Zack Weinberg fbbb9ac52f * 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.
2005-02-17 20:57:01 +00:00

14 lines
411 B
Makefile

# ld: --defsym data_align=32 -T align2.t
# objdump: --section-headers
[^:]+: +file +format.*
Sections:
Idx +Name +Size +VMA +LMA +File off +Algn
+0 +\.text +00000004 +00000000 +00000000 +00001000 +2\*\*2
+CONTENTS, +ALLOC, +LOAD, +READONLY, +CODE
+1 +\.data +00000004 +00000020 +00000020 +00001020 +2\*\*2
+CONTENTS, +ALLOC, +LOAD, +DATA
+2 +\.bss +00000000 +00000024 +00000024 +00001024 +2\*\*2
+ALLOC