Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Jim Russell
Wed, 15 Jul 1992 05:18
Bug in Epoch4.0p2
Author: Jim Russell
Date: Wed, 15 Jul 1992 05:18
Date: Wed, 15 Jul 1992 05:18
79 lines
2591 bytes
2591 bytes
(Maybe this is a bug inherited from Emacs?)
sysdep.c uses symbols, TEXT_END and DATA_END that are #defined to 0 in
m-ibm*.h, and #defined to external vars in m-titan.h.
Thus, the statement "extern TEXT_END;" is an error on the ibm machines.
My fix:
Change the symbols in m-titan.h to TEXT_END_EXT and DATA_END_EXT, and
patch sysdep.c. To wit:
*** config/m-titan.h~ Tue Jul 14 18:04:33 1992
--- config/m-titan.h Wed Jul 15 08:49:45 1992
***************
*** 196,203 ****
/* RMS asked that I create an unextitan, as unexec.c has too many ifdefs already */
#define UNEXEC unextitan.o
! #define TEXT_END _etext
! #define DATA_END _edata
#define DATA_SECTION_ALIGNMENT pagemask
#define TEXT_START 0x400000
#ifdef __P3__
--- 196,203 ----
/* RMS asked that I create an unextitan, as unexec.c has too many ifdefs already */
#define UNEXEC unextitan.o
! #define TEXT_END_EXT _etext
! #define DATA_END_EXT _edata
#define DATA_SECTION_ALIGNMENT pagemask
#define TEXT_START 0x400000
#ifdef __P3__
*** sysdep.c.old Wed Jul 15 08:41:36 1992
--- sysdep.c Wed Jul 15 08:53:16 1992
***************
*** 1667,1674 ****
end_of_text ()
{
#ifdef TEXT_END
- extern TEXT_END;
return ((char *) TEXT_END);
#else
#ifdef __NeXT__
static int etext;
--- 1667,1676 ----
end_of_text ()
{
#ifdef TEXT_END
return ((char *) TEXT_END);
+ #elif defined(TEXT_END_EXT)
+ extern TEXT_END_EXT;
+ return ((char *) TEXT_END_EXT);
#else
#ifdef __NeXT__
static int etext;
***************
*** 1690,1697 ****
end_of_data ()
{
#ifdef DATA_END
- extern DATA_END;
return ((char *) DATA_END);
#else
#ifdef __NeXT__
static int edata;
--- 1692,1701 ----
end_of_data ()
{
#ifdef DATA_END
return ((char *) DATA_END);
+ #elif defined(DATA_END_EXT)
+ extern DATA_END_EXT;
+ return ((char *) DATA_END_EXT);
#else
#ifdef __NeXT__
static int edata;
Bug in Epoch4.0p2
Author: Marc Andreessen
Date: Wed, 15 Jul 1992 04:22
Date: Wed, 15 Jul 1992 04:22
11 lines
800 bytes
800 bytes
Yup, it's a problem :-); it'll be fixed in 4.1. Thanks, Marc -- Marc Andreessen Epoch Development Team University of Illinois at Urbana-Champaign marca@ncsa.uiuc.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads