# HG changeset patch # User Karl Heuer # Date 837478005 0 # Node ID 2dff41f1ef30ac0f56d706a57ac0c1374a3b10fd # Parent 0f420242337d57d35b635373f71986e32c9e8438 [__ELF__] (C_SWITCH_MACHINE): Define. (NO_TERMIO): Define this unconditionally. (COFF): Omit this if ELF. diff -r 0f420242337d -r 2dff41f1ef30 src/m/alpha.h --- a/src/m/alpha.h Tue Jul 16 00:21:01 1996 +0000 +++ b/src/m/alpha.h Tue Jul 16 00:46:45 1996 +0000 @@ -139,6 +139,19 @@ /* #define NO_SOCK_SIGIO */ +#ifdef __ELF__ +/* With ELF, make sure that all common symbols get allocated to in the + data section. Otherwise, the dump of temacs may miss variables in + the shared library that have been initialized. For example, with + GNU libc, __malloc_initialized would normally be resolved to the + shared library's .bss section, which is fatal. */ +# ifdef __GNUC__ +# define C_SWITCH_MACHINE -fno-common +# else +# error What gives? Fix me if DEC Unix supports ELF now. +# endif +#endif + #ifndef __ELF__ /* Describe layout of the address space in an executing process. */ @@ -277,14 +290,14 @@ while (0) #endif -#ifdef linux -#define COFF -/* Linux/Alpha doesn't like it if termio.h and termios.h get included - simultaneously. */ +/* On the Alpha it's best to avoid including TERMIO since struct + termio and struct termios are mutually incompatible. */ #define NO_TERMIO -#define TEXT_END ({ extern int _etext; &_etext; }) -#ifndef __ELF__ -# define DATA_END ({ extern int _EDATA; &_EDATA; }) -#endif /* notdef __ELF__ */ +#ifdef LINUX +# define TEXT_END ({ extern int _etext; &_etext; }) +# ifndef __ELF__ +# define COFF +# define DATA_END ({ extern int _EDATA; &_EDATA; }) +# endif /* ! __ELF__ */ #endif