diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-07-12 11:12:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-07-12 11:12:37 +0000 |
commit | 0631650d4fc5394420fe2e94bdd14691b4d40963 (patch) | |
tree | 0837fd66e8f8e0f3a9b56fc55251b2ddc4d913e0 /include/aout | |
parent | d16fd05440490865cb042b79ccd9376c9f11db71 (diff) | |
download | gdb-0631650d4fc5394420fe2e94bdd14691b4d40963.tar.gz |
* aout64.h (N_SHARED_LIB): Define as 0 if TEXT_START_ADDR is
defined as 0.
Diffstat (limited to 'include/aout')
-rw-r--r-- | include/aout/ChangeLog | 5 | ||||
-rw-r--r-- | include/aout/aout64.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/aout/ChangeLog b/include/aout/ChangeLog index 854cfd5b5cb..63f17ec830d 100644 --- a/include/aout/ChangeLog +++ b/include/aout/ChangeLog @@ -1,3 +1,8 @@ +1999-07-12 Ian Lance Taylor <ian@zembu.com> + + * aout64.h (N_SHARED_LIB): Define as 0 if TEXT_START_ADDR is + defined as 0. + Sun Jun 28 11:33:48 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> * stab.def: Add N_ALIAS from SunPro F77. diff --git a/include/aout/aout64.h b/include/aout/aout64.h index 76f1140b682..bf743c48666 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 |