From b37527ece0ca5366fec5b9bebce99fa3e7d2ed2b Mon Sep 17 00:00:00 2001 From: sof Date: Sat, 21 Nov 1998 14:35:01 +0000 Subject: [PATCH] [project @ 1998-11-21 14:35:00 by sof] Distinguish between defn and use of etext and end syms; they're not the same on platforms where we have to resort to asm labels. --- aclocal.m4 | 15 ++++++++++----- mk/config.h.in | 9 ++++++++- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index accbaa3..7a8c368 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl $Id: aclocal.m4,v 1.31 1998/11/17 01:24:58 reid Exp $ +dnl $Id: aclocal.m4,v 1.32 1998/11/21 14:35:00 sof Exp $ dnl dnl Extra autoconf macros for the Glasgow fptools dnl @@ -50,6 +50,7 @@ if test "$fptools_cv_altzone" = yes; then fi ]) + dnl ** check for leading underscores in symbol names dnl dnl Test for determining whether symbol names have a leading @@ -74,7 +75,6 @@ changequote(<<, >>)dnl << case $HostPlatform in alpha-dec-osf*) fptools_cv_lead_uscore='no';; -*cygwin32) fptools_cv_lead_uscore='yes';; *) >> changequote([, ])dnl AC_TRY_RUN([#ifdef HAVE_NLIST_H @@ -441,7 +441,7 @@ int i; int main() { return ((char*)&f > (char*)&i); } ], -fptools_cv_code_bef_data=yes, fptools_cv_code_bef_data=no)]) +fptools_cv_code_bef_data=yes, fptools_cv_code_bef_data=no,false)]) if test "$fptools_cv_code_bef_data" = yes; then AC_DEFINE(CODE_BEFORE_DATA) fi @@ -460,6 +460,7 @@ not_done=1 for i in etext _etext __etext; do FPTOOLS_IN_SCOPE($i,$i,fptools_cv_end_of_text) if test "$fptools_cv_end_of_text" = yes; then + AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER_DECL, $i) AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER, $i) not_done=0 break @@ -468,7 +469,8 @@ done if test "$not_done" = 1; then FPTOOLS_IN_SCOPE(etext asm("etext"),etext,fptools_cv_end_of_text); if test "$fptools_cv_end_of_text" = yes; then - AC_DEFINE(TEXT_SECTION_END_MARKER, etext asm("etext")) + AC_DEFINE(TEXT_SECTION_END_MARKER_DECL, etext asm("etext")) + AC_DEFINE(TEXT_SECTION_END_MARKER, etext) else AC_DEFINE(TEXT_SECTION_END_MARKER, dunno_what_it_is) fi @@ -484,6 +486,7 @@ not_done=1 for i in end _end __end; do FPTOOLS_IN_SCOPE($i,$i,fptools_cv_end_of_data) if test "$fptools_cv_end_of_data" = yes; then + AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER_DECL, $i) AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER, $i) not_done=0 break @@ -492,8 +495,10 @@ done if test "$not_done" = 1; then FPTOOLS_IN_SCOPE(end asm("end"),end,fptools_cv_end_of_data); if test "$fptools_cv_end_of_data" = yes; then - AC_DEFINE(DATA_SECTION_END_MARKER, end asm("end")) + AC_DEFINE(DATA_SECTION_END_MARKER_DECL, end asm("end")) + AC_DEFINE(DATA_SECTION_END_MARKER, end) else + AC_DEFINE(DATA_SECTION_END_MARKER_DECL, dunno_what_it_is) AC_DEFINE(DATA_SECTION_END_MARKER, dunno_what_it_is) fi fi diff --git a/mk/config.h.in b/mk/config.h.in index 3f04af4..bdc4822 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -28,7 +28,10 @@ This function is required for alloca.c support on those systems. */ #undef CRAY_STACKSEG_END -/* Define to symbol that terminates data section. */ +/* Define to decl that terminates data section. */ +#undef DATA_SECTION_END_MARKER_DECL + +/* Define to section that terminates data section. */ #undef DATA_SECTION_END_MARKER /* Define if you have alloca, as a function or macro. */ @@ -279,5 +282,9 @@ /* Define if you have the iberty library (-liberty). */ #undef HAVE_LIBIBERTY +/* Define to decl that terminates text section. */ +#undef TEXT_SECTION_END_MARKER_DECL + /* Define to symbol that terminates text section. */ #undef TEXT_SECTION_END_MARKER + -- 1.7.10.4