mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 15:01:44 +01:00
28 lines
915 B
Diff
28 lines
915 B
Diff
From 538562ad01b181f4cc3913da1ac06a77945cd9b9 Mon Sep 17 00:00:00 2001
|
|
From: Nikita Ermakov <coffe92@gmail.com>
|
|
Date: Wed, 20 May 2020 17:57:17 +0300
|
|
Subject: [PATCH] Fix 'undefined reference to __data_start' linker error on
|
|
RISC-V
|
|
|
|
Issue #294 (bdwgc).
|
|
|
|
* include/private/gcconfig.h [RISCV && LINUX] (__data_start): Add
|
|
attribute(weak).
|
|
---
|
|
include/private/gcconfig.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
|
|
index b342883b..bd2e611f 100644
|
|
--- a/include/private/gcconfig.h
|
|
+++ b/include/private/gcconfig.h
|
|
@@ -2934,7 +2934,7 @@ EXTERN_C_BEGIN
|
|
# define ALIGNMENT (CPP_WORDSZ/8)
|
|
# ifdef LINUX
|
|
# define OS_TYPE "LINUX"
|
|
- extern int __data_start[];
|
|
+ extern int __data_start[] __attribute__((__weak__));
|
|
# define DATASTART ((ptr_t)__data_start)
|
|
# define LINUX_STACKBOTTOM
|
|
# define DYNAMIC_LOADING
|