diff options
-rw-r--r-- | include/private/gcconfig.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 7ecaf955..f04263a2 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2268,9 +2268,16 @@ EXTERN_C_BEGIN # define OS_TYPE "LINUX" # define LINUX_STACKBOTTOM # define DYNAMIC_LOADING - extern int __data_start[]; +# if defined(HOST_ANDROID) +# define SEARCH_FOR_DATA_START + /* As of NDK r18b, __data_start is not provided */ + /* if "gold" linker is used. But __dso_handle */ + /* symbol should be usable instead. */ +# else + extern int __data_start[]; +# define DATASTART ((ptr_t)__data_start) +# endif extern int _end[]; -# define DATASTART ((ptr_t)__data_start) # define DATAEND ((ptr_t)(&_end)) # endif # ifdef DARWIN |