Files
patchelf/tests/foo.c
Eelco Dolstra ecb2b0c96f * Regression test for NIXPKGS-98: patchelf barfs on dynamic libraries
that contain an .interp section.
2009-06-16 15:26:30 +00:00

14 lines
282 B
C

#include <stdio.h>
/* Include a bogus .interp section in libfoo.so (NIXPKGS-98).
Borrowed from Glibc. */
const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp"))) = "/foo/bar";
int bar();
int foo()
{
printf("This is foo()!\n");
return 12 + bar();
}