old-cross-binutils/ld/testsuite/ld-scripts/expr2.t
H.J. Lu abd4c01a40 Add testcases for PR ld/12327.
2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/12327
	* ld-scripts/defined4.d: New.
	* ld-scripts/defined4.s: Likewise.
	* ld-scripts/defined4.t: Likewise.
	* ld-scripts/expr2.d: Likewise.
	* ld-scripts/expr2.s: Likewise.
	* ld-scripts/expr2.t: Likewise.

	* ld-scripts/defined.exp: Run defined4.

	* ld-scripts/expr.exp: Run expr2.
2010-12-28 18:04:10 +00:00

11 lines
125 B
Perl

SECTIONS
{
. = 0xc000;
.text :
{
_text = .;
*(.text)
}
_end = .;
}
ASSERT (_end - _text <= 0x100, "fail");