about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dblloadmod1.c1
-rw-r--r--elf/dblloadmod2.c2
-rw-r--r--elf/dblloadmod3.c1
-rw-r--r--elf/dl-conflict.c4
-rw-r--r--elf/reldepmod5.c2
-rw-r--r--elf/reldepmod6.c1
6 files changed, 10 insertions, 1 deletions
diff --git a/elf/dblloadmod1.c b/elf/dblloadmod1.c
index b10f366ee9..ecec29ec63 100644
--- a/elf/dblloadmod1.c
+++ b/elf/dblloadmod1.c
@@ -1,4 +1,5 @@
 extern int bar (void);
+extern int foo (void);
 
 int
 foo (void)
diff --git a/elf/dblloadmod2.c b/elf/dblloadmod2.c
index 261af2b580..3e20aa941b 100644
--- a/elf/dblloadmod2.c
+++ b/elf/dblloadmod2.c
@@ -1,4 +1,6 @@
 extern int bar (void);
+extern int baz (void);
+extern int xyzzy (void);
 
 int
 baz (void)
diff --git a/elf/dblloadmod3.c b/elf/dblloadmod3.c
index 22b8a04811..80ac3a6375 100644
--- a/elf/dblloadmod3.c
+++ b/elf/dblloadmod3.c
@@ -1,3 +1,4 @@
+extern int bar (void);
 extern int baz (void);
 
 int
diff --git a/elf/dl-conflict.c b/elf/dl-conflict.c
index 5426a5ad44..f4c20eaad0 100644
--- a/elf/dl-conflict.c
+++ b/elf/dl-conflict.c
@@ -54,7 +54,9 @@ do								\
     (map) = resolve_conflict_map;				\
   } while (0)
 
-    struct link_map *resolve_conflict_map = _dl_loaded;
+    struct link_map *resolve_conflict_map __attribute__ ((__unused__))
+      = _dl_loaded;
+    
 
 #include "dynamic-link.h"
 
diff --git a/elf/reldepmod5.c b/elf/reldepmod5.c
index eae70da1e2..62df697162 100644
--- a/elf/reldepmod5.c
+++ b/elf/reldepmod5.c
@@ -1,3 +1,5 @@
+extern int foo (void);
+
 int
 foo (void)
 {
diff --git a/elf/reldepmod6.c b/elf/reldepmod6.c
index 95c18d4cdb..cd2aeb400d 100644
--- a/elf/reldepmod6.c
+++ b/elf/reldepmod6.c
@@ -1,4 +1,5 @@
 extern int call_me (void);
+extern int bar (void);
 
 int
 bar (void)