Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>1999-07-12 15:12:37 +0400
committerIan Lance Taylor <iant@google.com>1999-07-12 15:12:37 +0400
commit1e2fe5b32df74999252af3d844104642b708b85f (patch)
treed1d2e512ee5e86b4d241279e374e3f8674a2ee61 /include/aout/aout64.h
parent19e94c3e01e014fe99ddf6027a7fff3417e5ed22 (diff)
* aout64.h (N_SHARED_LIB): Define as 0 if TEXT_START_ADDR is
defined as 0.
Diffstat (limited to 'include/aout/aout64.h')
-rw-r--r--include/aout/aout64.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/aout/aout64.h b/include/aout/aout64.h
index 76f1140b6..bf743c486 100644
--- a/include/aout/aout64.h
+++ b/include/aout/aout64.h
@@ -121,8 +121,12 @@ struct external_exec
/* Sun shared libraries, not linux. This macro is only relevant for ZMAGIC
files. */
#ifndef N_SHARED_LIB
+#if defined (TEXT_START_ADDR) && TEXT_START_ADDR == 0
+#define N_SHARED_LIB(x) (0)
+#else
#define N_SHARED_LIB(x) ((x).a_entry < TEXT_START_ADDR)
#endif
+#endif
/* Returning 0 not TEXT_START_ADDR for OMAGIC and NMAGIC is based on
the assumption that we are dealing with a .o file, not an