about summary refs log tree commit diff
path: root/elf/ltglobmod1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-21 07:16:18 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-21 07:16:18 +0000
commitd785c366924df522974f4ee88d77fd8aaed58803 (patch)
tree12b41ae0e43531a39697176a6f7e71476262587e /elf/ltglobmod1.c
parentc91bc73e3e463ae6a80e548b899703efae256090 (diff)
downloadglibc-d785c366924df522974f4ee88d77fd8aaed58803.tar.gz
glibc-d785c366924df522974f4ee88d77fd8aaed58803.tar.xz
glibc-d785c366924df522974f4ee88d77fd8aaed58803.zip
Update.
2000-10-21  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-open.c (add_to_global): New function.  Split out from
	dl_open_worker.
	(dl_open_worker): Call add_to_global not only for new objects, also for
	previously loaded objects when (mode & RTLD_GLOBAL) and the object
	was not yet in the global scope.
	* elf/Makefile: Add rules to build and run lateglobal.
	* elf/lateglobal.c: New file.
	* elf/ltglobmod1.c: New file.
	* elf/ltglobmod2.c: New file.
Diffstat (limited to 'elf/ltglobmod1.c')
-rw-r--r--elf/ltglobmod1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/ltglobmod1.c b/elf/ltglobmod1.c
new file mode 100644
index 0000000000..46e74ee2fb
--- /dev/null
+++ b/elf/ltglobmod1.c
@@ -0,0 +1,5 @@
+int
+bar (void)
+{
+  return 42;
+}