Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.…
…mit.edu>

	* elf/Makefile (rtld-link): New canned sequence.
	(ld.so, ld-linux.so.1): Use it.  Pass -soname option.

	* sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.

Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/tcgetpgrp.c,
	sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
  • Loading branch information
Roland McGrath committed Mar 18, 1996
1 parent 9b431e3 commit e384537
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
@@ -1,3 +1,15 @@
Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>

* elf/Makefile (rtld-link): New canned sequence.
(ld.so, ld-linux.so.1): Use it. Pass -soname option.

* sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.

Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>

* sysdeps/unix/sysv/linux/tcgetpgrp.c,
sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.

Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>

* db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
Expand Down
12 changes: 9 additions & 3 deletions elf/Makefile
Expand Up @@ -61,9 +61,15 @@ $(objpfx)librtld.so: $(rtld-routines:%=$(objpfx)%.so) \
$(LINK.o) -nostdlib -nostartfiles -r -o $@ \
'-Wl,-(' $^ -lgcc '-Wl,-)'

$(objpfx)ld.so $(objpfx)ld-linux.so.1: $(objpfx)librtld.so
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
-Wl,-rpath=$(default-rpath) $^
$(objpfx)ld.so: $(objpfx)librtld.so
$(rtld-link) -Wl,-soname=$(rtld-installed-name)
$(objpfx)ld-linux.so.1: $(objpfx)librtld.so
$(rtld-link) -Wl,-soname=ld-linux.so.1

define rtld-link
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
-Wl,-rpath=$(default-rpath) $^
endef

# The Linux-compatible dynamic linker shared object is just the same
# with one object file of compatibility initialization code added.
Expand Down
8 changes: 7 additions & 1 deletion sysdeps/i386/setjmp.S
@@ -1,5 +1,5 @@
/* setjmp for i386.
Copyright (C) 1995 Free Software Foundation, Inc.
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -21,6 +21,12 @@ Cambridge, MA 02139, USA. */
#define _ASM
#include <jmp_buf.h>

/* Binary compatibility entry point. */
ENTRY (__setjmp)
popl %eax /* Pop return address. */
pushl $0 /* Push zero argument. */
pushl %eax /* Push back return address. */

ENTRY (__sigsetjmp)
movl 4(%esp), %eax /* User's jmp_buf in %eax. */
/* Save registers. */
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/tcgetpgrp.c
@@ -0,0 +1 @@
#include <sysdeps/unix/bsd/tcgetpgrp.c>
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/tcsetpgrp.c
@@ -0,0 +1 @@
#include <sysdeps/unix/bsd/tcsetpgrp.c>

0 comments on commit e384537

Please sign in to comment.