From owner-cvs-lib Sun May 5 01:18:22 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA21543 for cvs-lib-outgoing; Sun, 5 May 1996 01:18:22 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id BAA20695 Sun, 5 May 1996 01:15:56 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.7.5/8.7.3) with ESMTP id QAA09734; Sun, 5 May 1996 16:11:34 +0800 (WST) Message-Id: <199605050811.QAA09734@spinner.DIALix.COM> X-Mailer: exmh version 1.6.6 3/24/96 To: CVS-committers@freefall.freebsd.org cc: cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/gmon gmon.c src/lib/libc/i386 DEFS.h SYS.h src/lib/libc/i386/gen modf.S setjmp.S sigsetjmp.S src/lib/libc/i386/sys Ovfork.S brk.S cerror.S exect.S fork.S pipe.S ptrace.S rfork.S sbrk.S setlogin.S sigpending.S sigprocmask.S sigreturn.S sigsuspend.S syscall.S In-reply-to: Your message of "Sun, 05 May 1996 00:56:25 MST." <199605050756.AAA14309@freefall.freebsd.org> Date: Sun, 05 May 1996 16:11:34 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >peter 96/05/05 00:56:25 > > Modified: lib/libc/gmon gmon.c > lib/libc/i386 DEFS.h SYS.h > lib/libc/i386/gen modf.S setjmp.S sigsetjmp.S > lib/libc/i386/sys Ovfork.S brk.S cerror.S exect.S fork.S > pipe.S ptrace.S rfork.S sbrk.S setlogin.S > sigpending.S sigprocmask.S sigreturn.S > sigsuspend.S syscall.S > Log: > Add support to enable libc to be compiled in ELF format. (#ifdef __ELF__) > In a nutshell, this macroizes the local/global symbol scoping rules > that are different in a.out and ELF. It also makes the i386 assembler > stubs conform to i386 PIC calling conventions - the a.out ld.so didn't > object, but the ELF one needs it as it implements PIC jumps via PLT's as > well as calls. The a.out rtld only worked because it was accidently > snooping the grandparent calling function's return address off the stack.. > > This also affects the libc_r code a little, because of cpp macro nesting. Aargh! how could I forget to credit a commit again! :-( This is based on John Polstra's work for 2.1R, I've adapted it and tweaked it for -current. Reviewed by: jdp, bde -Peter