aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/defined6.t
blob: 9713aacf0ac288d9a0a1628bd950b67699cc2c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SECTIONS
{
  . = SIZEOF_HEADERS;
  .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);