2002-10-25 Bernd Schmidt <bernds@redhat.com>
* i386/cygmon.ld: Add entry for .gcc_except_table. 2000-10-25 Mark Salter <msalter@redhat.com> * 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.
This commit is contained in:
@@ -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 ()
|
||||
|
Reference in New Issue
Block a user