]> granicus.if.org Git - gc/commitdiff
Use __data_start instead of _fdata on OpenBSD/mips64
authorJasper Lievisse Adriaanse <jasper@openbsd.org>
Thu, 16 May 2019 20:42:49 +0000 (23:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 16 May 2019 21:37:05 +0000 (00:37 +0300)
(fix of commit d79f09665)

* include/private/gcconfig.h [MIPS && OPENBSD] (__data_start): Declare
extern variable (instead of _fdata).
* include/private/gcconfig.h [MIPS && OPENBSD] (DATASTART): Use
__data_start.

include/private/gcconfig.h

index cf4ebc9e58cd3ab2a3195a67dc40f277529eecd1..651b9de4d9aff7539f556c3894f6ae4265f305e0 100644 (file)
@@ -1863,8 +1863,8 @@ EXTERN_C_BEGIN
 #         define HEURISTIC2
 #       endif
 #     endif
-      extern int _fdata[];
-#     define DATASTART ((ptr_t)_fdata)
+      extern int __data_start[];
+#     define DATASTART ((ptr_t)__data_start)
       extern int _end[];
 #     define DATAEND ((ptr_t)(&_end))
 #     define DYNAMIC_LOADING