about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/constload3.c1
-rw-r--r--elf/failobj.c2
-rw-r--r--elf/filtmod1.c2
-rw-r--r--elf/filtmod2.c2
-rw-r--r--elf/ltglobmod1.c2
-rw-r--r--elf/neededobj1.c2
-rw-r--r--elf/neededobj2.c1
-rw-r--r--elf/neededobj3.c1
-rw-r--r--elf/neededobj4.c1
-rw-r--r--elf/nextmod1.c3
-rw-r--r--elf/nextmod2.c4
-rw-r--r--elf/nodelmod3.c1
-rw-r--r--elf/pathoptobj.c3
-rw-r--r--elf/reldepmod1.c3
-rw-r--r--elf/reldepmod2.c1
-rw-r--r--elf/reldepmod3.c2
-rw-r--r--elf/reldepmod4.c2
-rw-r--r--elf/unload2dep.c2
-rw-r--r--elf/unload2mod.c1
19 files changed, 36 insertions, 0 deletions
diff --git a/elf/constload3.c b/elf/constload3.c
index c9f94b86ee..9c37620bba 100644
--- a/elf/constload3.c
+++ b/elf/constload3.c
@@ -1,4 +1,5 @@
 extern int baz (void);
+extern int bar (void);
 
 int
 bar (void)
diff --git a/elf/failobj.c b/elf/failobj.c
index e938d4a803..500606382e 100644
--- a/elf/failobj.c
+++ b/elf/failobj.c
@@ -1,6 +1,8 @@
 /* This function is supposed to not exist.  */
 extern int xyzzy (int);
 
+extern int foo (int);
+
 int
 foo (int a)
 {
diff --git a/elf/filtmod1.c b/elf/filtmod1.c
index 3810d7fa84..1d9b19481d 100644
--- a/elf/filtmod1.c
+++ b/elf/filtmod1.c
@@ -1,3 +1,5 @@
+extern const char *foo (void);
+
 const char *
 foo (void)
 {
diff --git a/elf/filtmod2.c b/elf/filtmod2.c
index 3810d7fa84..1d9b19481d 100644
--- a/elf/filtmod2.c
+++ b/elf/filtmod2.c
@@ -1,3 +1,5 @@
+extern const char *foo (void);
+
 const char *
 foo (void)
 {
diff --git a/elf/ltglobmod1.c b/elf/ltglobmod1.c
index 46e74ee2fb..300fa9a89f 100644
--- a/elf/ltglobmod1.c
+++ b/elf/ltglobmod1.c
@@ -1,3 +1,5 @@
+extern int bar (void);
+
 int
 bar (void)
 {
diff --git a/elf/neededobj1.c b/elf/neededobj1.c
index 12c5184cc8..eb55adab39 100644
--- a/elf/neededobj1.c
+++ b/elf/neededobj1.c
@@ -1,3 +1,5 @@
+extern void c_function (void);
+
 void
 c_function (void)
 {
diff --git a/elf/neededobj2.c b/elf/neededobj2.c
index 22b0e4c794..5ad8a51d62 100644
--- a/elf/neededobj2.c
+++ b/elf/neededobj2.c
@@ -1,3 +1,4 @@
+extern void b_function (void);
 extern void c_function (void);
 
 void
diff --git a/elf/neededobj3.c b/elf/neededobj3.c
index 0fc94e2112..da25329aa7 100644
--- a/elf/neededobj3.c
+++ b/elf/neededobj3.c
@@ -1,3 +1,4 @@
+extern void a_function (void);
 extern void b_function (void);
 extern void c_function (void);
 
diff --git a/elf/neededobj4.c b/elf/neededobj4.c
index e5f53d16e6..3ea8540047 100644
--- a/elf/neededobj4.c
+++ b/elf/neededobj4.c
@@ -1,6 +1,7 @@
 extern void a_function (void);
 extern void b_function (void);
 extern void c_function (void);
+extern void d_function (void);
 
 void
 d_function (void)
diff --git a/elf/nextmod1.c b/elf/nextmod1.c
index 19f972b9e0..56de3536a0 100644
--- a/elf/nextmod1.c
+++ b/elf/nextmod1.c
@@ -1,5 +1,8 @@
 #include <dlfcn.h>
 
+extern int successful_rtld_next_test (void);
+extern void *failing_rtld_next_use (void);
+
 int nextmod1_dummy_var;
 
 int
diff --git a/elf/nextmod2.c b/elf/nextmod2.c
index 790e0ce9fe..b2c435f341 100644
--- a/elf/nextmod2.c
+++ b/elf/nextmod2.c
@@ -1,4 +1,8 @@
 /* Very elaborated function.  */
+
+extern int successful_rtld_next_test (void);
+
+
 int
 successful_rtld_next_test (void)
 {
diff --git a/elf/nodelmod3.c b/elf/nodelmod3.c
index c48a1a696c..817c94db6e 100644
--- a/elf/nodelmod3.c
+++ b/elf/nodelmod3.c
@@ -1,4 +1,5 @@
 extern int var_in_mod4;
+extern int *addr (void);
 
 int *
 addr (void)
diff --git a/elf/pathoptobj.c b/elf/pathoptobj.c
index fd0618e642..a452c2d7d4 100644
--- a/elf/pathoptobj.c
+++ b/elf/pathoptobj.c
@@ -1,3 +1,6 @@
+extern int in_renamed (int);
+
+
 int
 in_renamed (int a)
 {
diff --git a/elf/reldepmod1.c b/elf/reldepmod1.c
index 26f67b3d0d..b8ef6401e1 100644
--- a/elf/reldepmod1.c
+++ b/elf/reldepmod1.c
@@ -1,5 +1,8 @@
+extern int foo (void);
+
 int some_var;
 
+
 int
 foo (void)
 {
diff --git a/elf/reldepmod2.c b/elf/reldepmod2.c
index f511755444..b7edebae80 100644
--- a/elf/reldepmod2.c
+++ b/elf/reldepmod2.c
@@ -1,4 +1,5 @@
 extern int foo (void);
+extern int call_me (void);
 
 int
 call_me (void)
diff --git a/elf/reldepmod3.c b/elf/reldepmod3.c
index cadda630d9..66a996cd90 100644
--- a/elf/reldepmod3.c
+++ b/elf/reldepmod3.c
@@ -2,6 +2,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+extern int call_me (void);
+
 int
 call_me (void)
 {
diff --git a/elf/reldepmod4.c b/elf/reldepmod4.c
index 607f52baba..dcb503bba7 100644
--- a/elf/reldepmod4.c
+++ b/elf/reldepmod4.c
@@ -2,6 +2,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+extern int call_me (void);
+
 int
 call_me (void)
 {
diff --git a/elf/unload2dep.c b/elf/unload2dep.c
index cd0130cacd..0d319515d5 100644
--- a/elf/unload2dep.c
+++ b/elf/unload2dep.c
@@ -1,3 +1,5 @@
+extern void foo (void);
+
 void
 foo (void)
 {
diff --git a/elf/unload2mod.c b/elf/unload2mod.c
index eae278df96..9c2ea586bc 100644
--- a/elf/unload2mod.c
+++ b/elf/unload2mod.c
@@ -1,4 +1,5 @@
 extern void foo (void);
+extern void bar (void);
 
 void
 bar (void)