old-cross-binutils/ld/testsuite/ld-scripts/defined6.t
Alan Modra 931804de6c Yet another DEFINED testcase
* ld-scripts/defined6.s,
	* ld-scripts/defined6.t,
	* ld-scripts/defined6.d: New test.
	* ld-scripts/defined.exp: Run it.
2014-12-24 11:56:51 +10:30

21 lines
471 B
Perl

SECTIONS
{
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss) *(COMMON) }
}
defined_pre = DEFINED (defined);
defined = 1;
defined_post = DEFINED (defined);
undef_pre = DEFINED (undef);
undef = 1;
undef_post = DEFINED (undef);
common_pre = DEFINED (common);
common = 1;
common_post = DEFINED (common);
weak_pre = DEFINED (weak);
weak = 1;
weak_post = DEFINED (weak);
undefweak_pre = DEFINED (undefweak);
undefweak = 1;
undefweak_post = DEFINED (undefweak);