aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-align.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-align.c')
-rw-r--r--elf/tst-align.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/elf/tst-align.c b/elf/tst-align.c
deleted file mode 100644
index 01b0b4ffb3..0000000000
--- a/elf/tst-align.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright (C) 2003-2017 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#include <dlfcn.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-static int
-do_test (void)
-{
- static const char modname[] = "tst-alignmod.so";
- int result = 0;
- void (*fp) (int *);
- void *h;
-
- h = dlopen (modname, RTLD_LAZY);
- if (h == NULL)
- {
- printf ("cannot open '%s': %s\n", modname, dlerror ());
- exit (1);
- }
-
- fp = dlsym (h, "in_dso");
- if (fp == NULL)
- {
- printf ("cannot get symbol 'in_dso': %s\n", dlerror ());
- exit (1);
- }
-
- fp (&result);
-
- dlclose (h);
-
- return result;
-}
-
-#include <support/test-driver.c>