aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2014-03-24 18:22:32 -0700
committerPaul Pluzhnikov <ppluzhnikov@google.com>2014-03-24 18:22:32 -0700
commit55a81e3b0ac440ea21b9c83f10e188a58e7c14ac (patch)
tree6f06e77d5f812dbb4734a617ec1cec89aaffd58a /elf
parentf3426898bf0a5e9e2a094a9bed90b3096f965723 (diff)
downloadglibc-55a81e3b0ac440ea21b9c83f10e188a58e7c14ac.zip
glibc-55a81e3b0ac440ea21b9c83f10e188a58e7c14ac.tar.gz
glibc-55a81e3b0ac440ea21b9c83f10e188a58e7c14ac.tar.bz2
Address post-commit patch comments.
2014-03-24 Paul Pluzhnikov <ppluzhnikov@google.com> * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-dlopen-aout.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/elf/tst-dlopen-aout.c b/elf/tst-dlopen-aout.c
index d353425..2462a9f 100644
--- a/elf/tst-dlopen-aout.c
+++ b/elf/tst-dlopen-aout.c
@@ -1,5 +1,8 @@
/* Test case for BZ #16634.
+ Verify that incorrectly dlopen()ing an executable without
+ __RTLD_OPENEXEC does not cause assertion in ld.so.
+
Copyright (C) 2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -33,8 +36,8 @@ fn (void *p)
return p;
}
-int
-main (int argc, char *argv[])
+static int
+do_test (int argc, char *argv[])
{
int j;
@@ -59,3 +62,6 @@ main (int argc, char *argv[])
return 0;
}
+
+#define TEST_FUNCTION do_test (argc, argv)
+#include "../test-skeleton.c"