From 2ae43be7b9d4118335c9d2cef6e098f9b9f807fe Mon Sep 17 00:00:00 2001 From: xleroy Date: Thu, 9 Feb 2006 14:55:48 +0000 Subject: Initial import of compcert git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/lib/staticlib.S | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/lib/staticlib.S (limited to 'test/lib') diff --git a/test/lib/staticlib.S b/test/lib/staticlib.S new file mode 100644 index 00000000..b093e7c8 --- /dev/null +++ b/test/lib/staticlib.S @@ -0,0 +1,26 @@ +/* Work around MacOX shared-library lossage. + (No static version of the C library.) */ + +.macro GLUE + .text + .globl _$0_static +_$0_static: + addis r11, 0, ha16(L$0) + lwz r11, lo16(L$0)(r11) + mtctr r11 + bctr + .non_lazy_symbol_pointer +L$0: + .indirect_symbol _$0 + .long 0 +.endmacro + + GLUE cos + GLUE sin + GLUE atan2 + GLUE asin + GLUE sqrt + GLUE fmod + GLUE memcpy + GLUE memset + \ No newline at end of file -- cgit