From ecb2b0c96fe83d02d42c75c7ed832721ffd97067 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 16 Jun 2009 15:26:30 +0000 Subject: * Regression test for NIXPKGS-98: patchelf barfs on dynamic libraries that contain an .interp section. --- tests/foo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/foo.c b/tests/foo.c index be71954..48f6953 100644 --- a/tests/foo.c +++ b/tests/foo.c @@ -1,5 +1,9 @@ #include +/* 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() -- cgit v0.12