1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-10943 . Workaround linker error on Linux. Linux does not actually use __bss_start, put __bss_start into #ifndef __linux__ section

This commit is contained in:
Vladislav Vaintroub
2016-10-15 02:27:28 +02:00
parent 9208b87f18
commit 057c560ee4

View File

@@ -38,13 +38,13 @@
static char *heap_start;
#ifdef HAVE_BSS_START
#if(defined HAVE_BSS_START) && !(defined __linux__)
extern char *__bss_start;
#endif
void my_init_stacktrace()
{
#ifdef HAVE_BSS_START
#if(defined HAVE_BSS_START) && !(defined __linux__)
heap_start = (char*) &__bss_start;
#endif
}