aboutsummaryrefslogtreecommitdiff
path: root/include/aout/aout64.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-12 11:12:37 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-12 11:12:37 +0000
commitedac9bffc154855d959fcbc32e2fe0b073a9ec71 (patch)
tree0e22c5a0df842f8e8eceec9f206e5d8a454125fa /include/aout/aout64.h
parent67e5d3d6d0da4d0e75691ba303d888beba273fb0 (diff)
downloadgdb-edac9bffc154855d959fcbc32e2fe0b073a9ec71.zip
gdb-edac9bffc154855d959fcbc32e2fe0b073a9ec71.tar.gz
gdb-edac9bffc154855d959fcbc32e2fe0b073a9ec71.tar.bz2
* 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 76f1140..bf743c4 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