aboutsummaryrefslogtreecommitdiff
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 c9f94b8..9c37620 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 e938d4a..5006063 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 3810d7f..1d9b194 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 3810d7f..1d9b194 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 46e74ee..300fa9a 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 12c5184..eb55ada 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 22b0e4c..5ad8a51 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 0fc94e2..da25329 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 e5f53d1..3ea8540 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 19f972b..56de353 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 790e0ce..b2c435f 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 c48a1a6..817c94d 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 fd0618e..a452c2d 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 26f67b3..b8ef640 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 f511755..b7edeba 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 cadda63..66a996c 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 607f52b..dcb503b 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 cd0130c..0d31951 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 eae278d..9c2ea58 100644
--- a/elf/unload2mod.c
+++ b/elf/unload2mod.c
@@ -1,4 +1,5 @@
extern void foo (void);
+extern void bar (void);
void
bar (void)