1/* 2Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005, 2006, 3 2007 Free Software Foundation, Inc. 4 5This file is part of GNU Emacs. 6 7GNU Emacs is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GNU Emacs is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GNU Emacs; see the file COPYING. If not, write to 19the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20Boston, MA 02110-1301, USA. */ 21 22 23/* This file permits building Emacs with a shared libc on Sunos 4. 24 To make this work, you must completely replace your C shared library 25 using one of the SunOS 4.1.x jumbo replacement patches from Sun. 26 Here are the patch numbers for Sunos 4.1.3: 27 100890-10 SunOS 4.1.3: domestic libc jumbo patch 28 100891-10 SunOS 4.1.3: international libc jumbo patch */ 29 30 31#include "sunos4-1.h" 32 33/* Say that the text segment of a.out includes the header; 34 the header actually occupies the first few bytes of the text segment 35 and is counted in hdr.a_text. */ 36 37/* Misleading! Actually gets loaded after crt0.o */ 38#define START_FILES pre-crt0.o 39 40/* 41 * Kludge! can't get at symbol "start" in std crt0.o 42 * Who the #$%&* decided to remove the __ characters! 43 * Someone needs to fix this in sysdep.c with an #ifdef BROKEN_START in 44 * sysdep.c. We do not use this address so any value should do really. Still 45 * may need it in the future? 46 */ 47#define BROKEN_START 48#define TEXT_START 0x2020 49 50#define UNEXEC unexsunos4.o 51#define RUN_TIME_REMAP 52#define ORDINARY_LINK 53#define SUNOS4_SHARED_LIBRARIES 54 55#undef LD_SWITCH_SYSTEM 56#undef LD_SWITCH_SYSTEM_TEMACS 57 58#undef SYSTEM_MALLOC 59#ifndef GNU_MALLOC 60#define GNU_MALLOC 61#endif 62#ifndef REL_ALLOC 63#define REL_ALLOC 64#endif 65 66/* khera@cs.duke.edu says this is needed. */ 67#define memmove(to, from, size) bcopy (from, to, size) 68 69#undef USE_DL_STUBS 70 71#ifndef HAVE_X11R6 72/* With X11R5 it was reported that linking -lXmu dynamically 73 did not work. With X11R6, it does work; and since normally 74 only the dynamic libraries are available, we should use them. */ 75#ifdef __GNUC__ 76#define LIBXMU -Xlinker -Bstatic -lXmu -Xlinker -Bdynamic 77#else 78#define LIBXMU -Bstatic -lXmu -Bdynamic 79#endif 80 81#endif /* not HAVE_X11R6 */ 82 83/* arch-tag: cb54321a-ed45-4c17-a23e-1c157758da78 84 (do not change this comment) */ 85