Enabled __DYNAMIC.

This commit is contained in:
pk 1993-10-23 00:47:15 +00:00
parent a0aae738e7
commit bd67a6f934
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
# $Id: Makefile,v 1.7 1993/08/10 08:35:59 deraadt Exp $
# $Id: Makefile,v 1.8 1993/10/23 00:47:15 pk Exp $
CFLAGS+= -DLIBC_SCCS
CFLAGS+= -DLIBC_SCCS -DDYNAMIC
OBJS= crt0.o gcrt0.o
CLEANFILES+= gmon.o moncrt0.o core a.out

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: crt0.c,v 1.6 1993/10/16 21:58:39 pk Exp $
* $Id: crt0.c,v 1.7 1993/10/23 00:47:18 pk Exp $
*/
@ -332,8 +332,12 @@ __do_dynamic_link ()
__call(CRT_VERSION_SUN, &crt, crt.crt_ba + sizeof hdr);
#else
entry = (void (*)())(crt.crt_ba + sizeof hdr);
#ifdef SUN_COMPAT
(*entry)(CRT_VERSION_SUN, &crt);
#else
(*entry)(CRT_VERSION_BSD, &crt);
#endif
#endif
#if defined(sun) && defined(DUPZFD)
if (dup2(dupzfd, crt.crt_dzfd) < 0) {