]> granicus.if.org Git - gc/commitdiff
Prevent abort in register_data_segments for Symbian
authorIvan Maidanski <ivmai@mail.ru>
Tue, 20 Jun 2017 14:05:20 +0000 (17:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 4 Jul 2017 21:55:23 +0000 (00:55 +0300)
(Cherry-pick commit a706784 from 'release-7_6' branch.)

DATASTART is tested to have a non-null value in GC_register_data_segments,
so the macro should not be defined to null even if it is not really
used (null value typically means that the corresponding weak symbol
is not resolved).

* include/private/gcconfig.h [SYMBIAN] (DATASTART,
DATAEND): Change to a non-null value (ALIGNMENT).

include/private/gcconfig.h

index a86c28c1940d0d085db355587b064abfcc2b7576..588f7366dba8c361b722c8afce276e9166dec957 100644 (file)
 #   define OS_TYPE "SYMBIAN"
 #   define CPP_WORDSZ 32
 #   define ALIGNMENT 4
-#   define DATASTART NULL
-#   define DATAEND NULL
+#   define DATASTART (ptr_t)ALIGNMENT /* cannot be null */
+#   define DATAEND (ptr_t)ALIGNMENT
 # endif
 
 # define STACK_GRAN 0x1000000