From 91f0dd6e3f9c8ee81508f3a32e1d6f3e97e35726 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Mon, 7 Jan 2019 19:11:11 -0700
Subject: [PATCH] Require that libc calls init and terminate

---
 pthread_init.c      | 2 --
 pthread_terminate.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/pthread_init.c b/pthread_init.c
index c04261c..105be29 100644
--- a/pthread_init.c
+++ b/pthread_init.c
@@ -46,8 +46,6 @@
 #include "pthread.h"
 #include "implement.h"
 
-__attribute__((section(".preinit_array"))) typeof(pthread_init) *__pthread_init = pthread_init;
-
 void pthread_init(void)
 {
 
diff --git a/pthread_terminate.c b/pthread_terminate.c
index b12146b..e33d726 100644
--- a/pthread_terminate.c
+++ b/pthread_terminate.c
@@ -46,8 +46,6 @@
 #include "pthread.h"
 #include "implement.h"
 
-__attribute__((section(".fini_array"))) typeof(pthread_terminate) *__pthread_terminate = pthread_terminate;
-
 void pthread_terminate(void)
 {
   if (pte_processInitialized)
-- 
GitLab