From 63ff9afb61e823290a432a95faef8819dcc26f83 Mon Sep 17 00:00:00 2001 From: wbhart Date: Sat, 11 Apr 2009 04:14:25 +0000 Subject: [PATCH] Added bogus dependency to work around an Apple ld bug. --- tests/x86call.asm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/x86call.asm b/tests/x86call.asm index 57541819..940e7e2f 100644 --- a/tests/x86call.asm +++ b/tests/x86call.asm @@ -115,3 +115,13 @@ L(return): EPILOGUE() +C void gmp_x86check_workaround_apple_ld_bug() +C +C Apple ld has an annoying bug that causes it to only load members from +C static archives that satisfy text symbol dependencies. This procedure +C creates a bogus dependency on a text symbol in x86check.o (in libtests.a) +C to ensure that ld loads it, also making all of the needed non-text +C symbols available. +PROLOGUE(gmp_x86check_workaround_apple_ld_bug) + jmp *G(calling_conventions_check) +EPILOGUE()