binutils/tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/bar.c
2021-05-11 15:30:04 +00:00

20 lines
272 B
C

int foo __attribute__ ((section (".gnu.linkonce.d.1"),
visibility ("hidden"))) = 1;
int
__attribute__ ((section (".gnu.linkonce.t.1"), visibility ("hidden")))
bar ()
{
return 1;
}
int
get_foo ()
{
return foo;
}
int
get_bar ()
{
return bar ();
}