about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-21 08:31:59 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-21 08:31:59 +0000
commitfe60f7648c0e524fced3b0c9aacac98e8fa8aa99 (patch)
treebbf3957ace4c3b33a732229237e68a164ca389c5 /elf
parent82df2969f85d63e08f0c6ea33c0602c29039ec51 (diff)
downloadglibc-fe60f7648c0e524fced3b0c9aacac98e8fa8aa99.tar.gz
glibc-fe60f7648c0e524fced3b0c9aacac98e8fa8aa99.tar.xz
glibc-fe60f7648c0e524fced3b0c9aacac98e8fa8aa99.zip
Update.
1999-01-21  Ulrich Drepper  <drepper@cygnus.com>

	* elf/Makefile: Change rule to make test module so that they are
	compiled using -fPIC.
	* elf/testobj1.c: Add missing prototype.
	* elf/testobj1_1.c: Likewise.
	* elf/testobj2.c: Likewise.
	* elf/testobj3.c: Likewise.
	* elf/testobj4.c: Likewise.
	* elf/testobj5.c: Likewise.
	* elf/testobj6.c: Likewise.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile2
-rw-r--r--elf/testobj1.c2
-rw-r--r--elf/testobj1_1.c2
-rw-r--r--elf/testobj2.c2
-rw-r--r--elf/testobj3.c2
-rw-r--r--elf/testobj4.c2
-rw-r--r--elf/testobj5.c2
-rw-r--r--elf/testobj6.c2
8 files changed, 15 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 05bc44637e..dff2c972f6 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -218,7 +218,7 @@ LDLIBS-testobj5.so = -ldl
 LDLIBS-testobj6.so = -ldl
 LDLIBS-failobj.so = $(objpfx)testobj6.so
 
-$(test-modules): $(objpfx)%.so: %.c
+$(test-modules): $(objpfx)%.so: $(objpfx)%.os
 	$(build-module)
 
 $(objpfx)loadtest: $(objpfx)libdl.so
diff --git a/elf/testobj1.c b/elf/testobj1.c
index 354e1a7c6c..d5b485f1ed 100644
--- a/elf/testobj1.c
+++ b/elf/testobj1.c
@@ -1,6 +1,8 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
+extern int foo (int);
+
 int
 obj1func1 (int a __attribute__ ((unused)))
 {
diff --git a/elf/testobj1_1.c b/elf/testobj1_1.c
index c0f2aa4678..a146067872 100644
--- a/elf/testobj1_1.c
+++ b/elf/testobj1_1.c
@@ -1,3 +1,5 @@
+extern int obj1func2 (int);
+
 int
 obj1func1 (int a)
 {
diff --git a/elf/testobj2.c b/elf/testobj2.c
index dc34ecb323..b9c2ca8fcc 100644
--- a/elf/testobj2.c
+++ b/elf/testobj2.c
@@ -1,6 +1,8 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
+extern int obj1func1 (int);
+
 int
 obj2func1 (int a __attribute__ ((unused)))
 {
diff --git a/elf/testobj3.c b/elf/testobj3.c
index 1fb10f9b7f..d8ede36916 100644
--- a/elf/testobj3.c
+++ b/elf/testobj3.c
@@ -1,6 +1,8 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
+extern int foo (int);
+
 int
 obj3func1 (int a __attribute__ ((unused)))
 {
diff --git a/elf/testobj4.c b/elf/testobj4.c
index d780bef077..a354f76a31 100644
--- a/elf/testobj4.c
+++ b/elf/testobj4.c
@@ -1,6 +1,8 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
+extern int foo (int);
+
 int
 obj4func1 (int a __attribute__ ((unused)))
 {
diff --git a/elf/testobj5.c b/elf/testobj5.c
index e30ca14cdc..af36aa9b1d 100644
--- a/elf/testobj5.c
+++ b/elf/testobj5.c
@@ -1,6 +1,8 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
+extern int foo (int);
+
 int
 obj5func1 (int a __attribute__ ((unused)))
 {
diff --git a/elf/testobj6.c b/elf/testobj6.c
index 42bfc8e14b..ab9c4b9325 100644
--- a/elf/testobj6.c
+++ b/elf/testobj6.c
@@ -1,3 +1,5 @@
+extern int foo (int);
+
 int
 obj6func1 (int a __attribute__ ((unused)))
 {