sunos4shr.h 1.28 KB
Newer Older
1 2
/* This file permits building Emacs with a shared libc on Sunos 4.
   To make this work, you must completely replace your C shared library
Richard M. Stallman's avatar
Richard M. Stallman committed
3 4 5 6 7
   using one of the SunOS 4.1.x jumbo replacement patches from Sun.
   Here are the patch numbers for Sunos 4.1.3:
   100890-10   SunOS 4.1.3: domestic libc jumbo patch
   100891-10   SunOS 4.1.3: international libc jumbo patch  */

8

9
#include "sunos4-1.h"
Jim Blandy's avatar
Jim Blandy committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

/* Say that the text segment of a.out includes the header;
   the header actually occupies the first few bytes of the text segment
   and is counted in hdr.a_text.  */

/*  Misleading!  Actually gets loaded after crt0.o */
#define START_FILES pre-crt0.o

/*
 *  Kludge!  can't get at symbol "start" in std crt0.o
 *  Who the #$%&* decided to remove the __ characters!
 *  Someone needs to fix this in sysdep.c  with an #ifdef BROKEN_START in
 * sysdep.c.  We do not use this address so any value should do really.  Still
 *  may need it in the future?
 */
#define BROKEN_START
#define TEXT_START 0x2020

#define UNEXEC	unexsunos4.o
#define RUN_TIME_REMAP
Jim Blandy's avatar
Jim Blandy committed
30
#define LINKER cc
31 32

#undef LD_SWITCH_SYSTEM
33 34

#undef	SYSTEM_MALLOC
35
#ifndef GNU_MALLOC
36
#define	GNU_MALLOC
37 38
#endif
#ifndef REL_ALLOC
39
#define	REL_ALLOC
40
#endif
Richard M. Stallman's avatar
Richard M. Stallman committed
41 42 43

/* khera@cs.duke.edu says this is needed.  */
#define memmove(to, from, size) bcopy (from, to, size)