old-cross-binutils/ld/testsuite/ld-ifunc/pr16467c.c
H.J. Lu 4584ec1207 Check incompatible existing default symbol definition
After resolving a versioned reference, foo@VER1, to a default versioned
definition, foo@@VER1, from a shared object, we also merge it with
the existing regular default symbol definition, foo.  When foo is IFUNC
and foo@@VER1 aren't, we will merge 2 incompatible definitions.  This
patch avoids merging foo@@VER1 definition with foo definition if
one is IFUNC and the other isn't.
2014-01-21 15:42:51 -08:00

9 lines
135 B
C

#include <stdio.h>
const char* sd_get_seats(void);
int
main (int argc, char **argv)
{
printf("%s\n", sd_get_seats());
return 0;
}