diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-06-16 15:26:30 (GMT) |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-06-16 15:26:30 (GMT) |
commit | ecb2b0c96fe83d02d42c75c7ed832721ffd97067 (patch) | |
tree | a177f6d93f5ff4353c51188626edbf89ec8e78b0 /tests/foo.c | |
parent | ae660b94d8137148c59cd8b4bbe961d6eee68488 (diff) | |
download | patchelf-ecb2b0c96fe83d02d42c75c7ed832721ffd97067.zip patchelf-ecb2b0c96fe83d02d42c75c7ed832721ffd97067.tar.gz patchelf-ecb2b0c96fe83d02d42c75c7ed832721ffd97067.tar.bz2 |
* Regression test for NIXPKGS-98: patchelf barfs on dynamic libraries
that contain an .interp section.
Diffstat (limited to 'tests/foo.c')
-rw-r--r-- | tests/foo.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <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() |