xref: /illumos-gate/usr/src/test/elf-tests/tests/resolution/mixed-hidden-comdat/hidden.s (revision b8052df9f609edb713f6828c9eecc3d7be19dfb3)
1	.type	bss_symbol, @object
2	.section	.bss.bss_symbol,"awG",@nobits,bss_symbol,comdat
3	.hidden	bss_symbol
4	.weak	bss_symbol
5	.size	bss_symbol, 8
6bss_symbol:
7	.zero	8
8
9	.type	data_symbol, @object
10	.section	.data.data_symbol,"awG",@progbits,data_symbol,comdat
11	.hidden	data_symbol
12	.weak	data_symbol
13	.size	data_symbol, 8
14	/*
15	 * Intentionally break the COMDAT rules and give this a different
16	 * value, so we can assert that the value got from one place and the
17	 * visibility resolved from the other
18	 */
19data_symbol:
20	.zero	8
21