summaryrefslogtreecommitdiff
path: root/arch/arm/reloc.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-22 14:08:33 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-22 14:08:33 -0400
commit1da53dad278f98b7712ac002162afaa8815ba580 (patch)
tree31629639333932714d99aa6d566d8dc2d73d540f /arch/arm/reloc.h
parent4e3c6b430382b152e783454a31f9a884223ce77f (diff)
downloadmusl-1da53dad278f98b7712ac002162afaa8815ba580.tar.gz
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.
Diffstat (limited to 'arch/arm/reloc.h')
-rw-r--r--arch/arm/reloc.h2
1 files changed, 2 insertions, 0 deletions
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