summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-15 16:03:57 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-15 16:03:57 +0000
commit1a511d31055bb3fe7638b043d5c5c57d929c51cd (patch)
treecb2307942b7ef0ca15763b48ef40911198903523 /elf
parent8ab5926a261825b43c8ce82b4c64541448b73869 (diff)
downloadglibc-1a511d31055bb3fe7638b043d5c5c57d929c51cd.tar.gz
Update.
2000-12-15 Andreas Jaeger <aj@suse.de> * stdio-common/scanf9.c (main): Reformat and change to avoid warnings. * stdio-common/tstdiomisc.c: Make local functions static. * stdio-common/tst-printf.c: Likewise. * elf/constload2.c: Add prototype declarations to shut up gcc. * elf/dep1.c: Likewise. * elf/dep2.c: Likewise. * elf/dep3.c: Likewise. * elf/dep4.c: Likewise. * elf/ltglobmod2.c: Likewise. * libio/fmemopen.c: Make local functions static. * elf/Makefile (distribute): Added testobj.h. * elf/testobj.h: New file. * elf/testobj1.c: Include testobj.h and move prototype declarations to testobj.h. * elf/testobj2.c: Likewise. * elf/testobj3.c: Likewise. * elf/testobj4.c: Likewise. * elf/testobj5.c: Likewise. * elf/testobj6.c: Likewise. * elf/testobj1_1.c: Likewise. * elf/preloadtest.c: Likewise.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile3
-rw-r--r--elf/constload2.c2
-rw-r--r--elf/dep1.c1
-rw-r--r--elf/dep2.c1
-rw-r--r--elf/dep3.c2
-rw-r--r--elf/dep4.c1
-rw-r--r--elf/ltglobmod2.c1
-rw-r--r--elf/preloadtest.c3
-rw-r--r--elf/testobj.h28
-rw-r--r--elf/testobj1.c2
-rw-r--r--elf/testobj1_1.c2
-rw-r--r--elf/testobj2.c2
-rw-r--r--elf/testobj3.c3
-rw-r--r--elf/testobj4.c2
-rw-r--r--elf/testobj5.c3
-rw-r--r--elf/testobj6.c2
16 files changed, 48 insertions, 10 deletions
diff --git a/elf/Makefile b/elf/Makefile
index cb8777b7f0..830499366f 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -55,7 +55,8 @@ distribute := $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \
reldepmod1.c reldepmod2.c reldepmod3.c reldepmod4.c \
nextmod1.c nextmod2.c pathoptobj.c tst-pathopt.sh \
neededobj1.c neededobj2.c neededobj3.c neededobj4.c \
- unload2mod.c unload2dep.c ltglobmod1.c ltglobmod2.c
+ unload2mod.c unload2dep.c ltglobmod1.c ltglobmod2.c \
+ testobj.h
include ../Makeconfig
diff --git a/elf/constload2.c b/elf/constload2.c
index d20e6dcbb8..b665036c16 100644
--- a/elf/constload2.c
+++ b/elf/constload2.c
@@ -3,6 +3,8 @@
#include <stdlib.h>
extern int bar (void);
+extern int baz (void);
+extern int foo (void);
void *h;
diff --git a/elf/dep1.c b/elf/dep1.c
index 49dc2a22d9..7ef47adb43 100644
--- a/elf/dep1.c
+++ b/elf/dep1.c
@@ -1,5 +1,6 @@
#include <unistd.h>
+extern int dep1 (void);
extern int dep2 (void);
extern int dep4 (void);
diff --git a/elf/dep2.c b/elf/dep2.c
index 9dc5cfcf55..749036a4ec 100644
--- a/elf/dep2.c
+++ b/elf/dep2.c
@@ -1,5 +1,6 @@
#include <unistd.h>
+extern int dep2 (void);
extern int dep3 (void);
extern int dep4 (void);
diff --git a/elf/dep3.c b/elf/dep3.c
index ec7c7d36d7..3df6282009 100644
--- a/elf/dep3.c
+++ b/elf/dep3.c
@@ -1,5 +1,7 @@
#include <unistd.h>
+extern int dep3 (void);
+
static void
__attribute__ ((constructor))
init (void)
diff --git a/elf/dep4.c b/elf/dep4.c
index 9aad67d659..c496d6f531 100644
--- a/elf/dep4.c
+++ b/elf/dep4.c
@@ -1,6 +1,7 @@
#include <unistd.h>
extern int dep3 (void);
+extern int dep4 (void);
static void
__attribute__ ((constructor))
diff --git a/elf/ltglobmod2.c b/elf/ltglobmod2.c
index bc1cd27c40..33f14cc980 100644
--- a/elf/ltglobmod2.c
+++ b/elf/ltglobmod2.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
extern int bar (void);
+extern int foo (void);
int
foo (void)
diff --git a/elf/preloadtest.c b/elf/preloadtest.c
index 9edc87a7bc..7ea10b9b5b 100644
--- a/elf/preloadtest.c
+++ b/elf/preloadtest.c
@@ -1,6 +1,6 @@
#include <stdio.h>
-extern int preload (int);
+#include "testobj.h"
int
main (void)
@@ -12,7 +12,6 @@ main (void)
return res != 92;
}
-extern int foo (int a);
int
foo (int a)
{
diff --git a/elf/testobj.h b/elf/testobj.h
new file mode 100644
index 0000000000..12f18effcc
--- /dev/null
+++ b/elf/testobj.h
@@ -0,0 +1,28 @@
+extern int preload (int a);
+
+extern int foo (int);
+
+extern int obj1func1 (int);
+
+extern int obj1func2 (int);
+
+extern int obj2func1 (int);
+
+extern int obj2func2 (int);
+
+extern int obj3func1 (int);
+
+extern int obj3func2 (int);
+
+extern int obj4func1 (int);
+
+extern int obj4func2 (int);
+
+extern int obj5func1 (int);
+
+extern int obj5func2 (int);
+
+extern int obj6func1 (int);
+
+extern int obj6func2 (int);
+
diff --git a/elf/testobj1.c b/elf/testobj1.c
index d5b485f1ed..5ab20efd62 100644
--- a/elf/testobj1.c
+++ b/elf/testobj1.c
@@ -1,7 +1,7 @@
#include <dlfcn.h>
#include <stdlib.h>
-extern int foo (int);
+#include "testobj.h"
int
obj1func1 (int a __attribute__ ((unused)))
diff --git a/elf/testobj1_1.c b/elf/testobj1_1.c
index a146067872..2541a5ad1b 100644
--- a/elf/testobj1_1.c
+++ b/elf/testobj1_1.c
@@ -1,4 +1,4 @@
-extern int obj1func2 (int);
+#include "testobj.h"
int
obj1func1 (int a)
diff --git a/elf/testobj2.c b/elf/testobj2.c
index b9c2ca8fcc..6514c56393 100644
--- a/elf/testobj2.c
+++ b/elf/testobj2.c
@@ -1,7 +1,7 @@
#include <dlfcn.h>
#include <stdlib.h>
-extern int obj1func1 (int);
+#include "testobj.h"
int
obj2func1 (int a __attribute__ ((unused)))
diff --git a/elf/testobj3.c b/elf/testobj3.c
index d8ede36916..c025ff631a 100644
--- a/elf/testobj3.c
+++ b/elf/testobj3.c
@@ -1,7 +1,8 @@
#include <dlfcn.h>
#include <stdlib.h>
-extern int foo (int);
+#include "testobj.h"
+
int
obj3func1 (int a __attribute__ ((unused)))
diff --git a/elf/testobj4.c b/elf/testobj4.c
index a354f76a31..2729ba32be 100644
--- a/elf/testobj4.c
+++ b/elf/testobj4.c
@@ -1,7 +1,7 @@
#include <dlfcn.h>
#include <stdlib.h>
-extern int foo (int);
+#include "testobj.h"
int
obj4func1 (int a __attribute__ ((unused)))
diff --git a/elf/testobj5.c b/elf/testobj5.c
index af36aa9b1d..9675cad88d 100644
--- a/elf/testobj5.c
+++ b/elf/testobj5.c
@@ -1,7 +1,8 @@
#include <dlfcn.h>
#include <stdlib.h>
-extern int foo (int);
+#include "testobj.h"
+
int
obj5func1 (int a __attribute__ ((unused)))
diff --git a/elf/testobj6.c b/elf/testobj6.c
index ab9c4b9325..fcba01631d 100644
--- a/elf/testobj6.c
+++ b/elf/testobj6.c
@@ -1,4 +1,4 @@
-extern int foo (int);
+#include "testobj.h"
int
obj6func1 (int a __attribute__ ((unused)))