From 664252b754b47fc328bfeaf77dc8c2a82b2e2a99 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 25 Oct 2002 19:18:46 +0000 Subject: 2002-10-25 Bernd Schmidt * i386/cygmon.ld: Add entry for .gcc_except_table. 2000-10-25 Mark Salter * i386/cygmon-crt0.S: Use __USER_LABEL_PREFIX__ for symbols. Always use __start for start symbol. * i386/cygmon-salib.c: Don't build __do_global_[cd]tors for AOUT. Disable file I/O extensions to make Plum Hall happy. * i386/cygmon.ld: Set __start as entry point. * i386/Makefile.in: Support IS_AOUT. * i386/configure.in: Support IS_AOUT. * i386/configure: Regenerated. * i386/cygmon-salib.c: * i386/cygmon-gmon.c (_mcount): It's _etext. --- libgloss/i386/cygmon-salib.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'libgloss/i386/cygmon-salib.c') diff --git a/libgloss/i386/cygmon-salib.c b/libgloss/i386/cygmon-salib.c index e0d5e72f7..1fd29cacf 100644 --- a/libgloss/i386/cygmon-salib.c +++ b/libgloss/i386/cygmon-salib.c @@ -1,7 +1,7 @@ /* * Standard x86 syscalls for user programs running under Cygmon * - * Copyright (c) 1998 Cygnus Support + * Copyright (c) 1998, 2000 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided @@ -22,8 +22,15 @@ extern int errno; _syscall3(int,write,int,i,char *,c,int,len); - +#if 0 _syscall3(int,read,int,i,char *,c,int,len); +#else +int +read (int des, char *dest, int len) +{ + return -1; +} +#endif _syscall2(int,kill,int,pid,int,signal); @@ -43,7 +50,11 @@ _syscall1(int, close, int, fd); int open (const char *filename, int mode, ...) { +#if 0 return __open (filename, mode, 0644); +#else + return -1; +#endif } /* Ultra-super cheezy. */ @@ -108,7 +119,7 @@ clock () return t.tv_sec * 1000 + (t.tv_usec / 1000); } -#ifndef COFF +#if ! defined(COFF) && ! defined(AOUT) typedef void (*ctp)(); void __do_global_ctors () -- cgit v1.2.3