From 1da53dad278f98b7712ac002162afaa8815ba580 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 22 Jul 2013 14:08:33 -0400 Subject: disable legacy init/fini processing on ARM since the old, poorly-thought-out musl approach to init/fini arrays on ARM (when it was the only arch that needed them) was to put the code in crti/crtn and have the legacy _init/_fini code run the arrays, adding proper init/fini array support caused the arrays to get processed twice on ARM. I'm not sure skipping legacy init/fini processing is the best solution to the problem, but it works, and it shouldn't break anything since the legacy init/fini system was never used for ARM EABI. --- arch/arm/reloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/reloc.h b/arch/arm/reloc.h index 9ca0b48c..264b7ab2 100644 --- a/arch/arm/reloc.h +++ b/arch/arm/reloc.h @@ -52,3 +52,5 @@ static inline void do_single_reloc( break; } } + +#define NO_LEGACY_INITFINI -- cgit v1.2.1