import cl @31452
diff --git a/stubdata/Makefile b/stubdata/Makefile
index b6a72bd..b4fbac4 100644
--- a/stubdata/Makefile
+++ b/stubdata/Makefile
@@ -2,7 +2,7 @@
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := \
-	icudt38_dat_reduced.s
+	icudt38_dat_reduced.S
 
 LOCAL_C_INCLUDES += \
 	$(LOCAL_PATH)/../common
diff --git a/stubdata/icudt38_dat_reduced.s b/stubdata/icudt38_dat_reduced.S
similarity index 99%
rename from stubdata/icudt38_dat_reduced.s
rename to stubdata/icudt38_dat_reduced.S
index 5a1bfc3..de550c8 100644
--- a/stubdata/icudt38_dat_reduced.s
+++ b/stubdata/icudt38_dat_reduced.S
@@ -1,7 +1,21 @@
+#ifdef __APPLE_CC__
+/*
+ * The mid-2007 version of gcc that ships with Macs requires a
+ * comma on the .section line, but the rest of the world thinks
+ * that's a syntax error. It also wants globals to be explicitly
+ * prefixed with "_" as opposed to modern gccs that do the
+ * prefixing for you.
+ */
+.globl _icudt38_dat
+	.section .rodata,
+	.align 8
+_icudt38_dat:
+#else
 .globl icudt38_dat
 	.section .rodata
 	.align 8
 icudt38_dat:
+#endif
 
 .long 0x27DA0080,0x14,0x020000,0x446E6D43,1,3,0x706F4320,0x67697279,0x28207468,0x32202943,0x2C373030,0x746E4920,0x616E7265,0x6E6F6974,0x42206C61,0x6E697375,0x20737365,0x6863614D,0x73656E69,0x726F4320,0x61726F70,0x6E6F6974,0x646E6120,0x68746F20,0x2E737265,0x6C6C4120,0x67695220,0x20737468,0x65736552,0x64657672,0x202E,0
 .long 0x9D,0x04EC,0x1270,0x0505,0x41D0,0x051C,0x4230,0x0536,0x4290,0x0556,0x4370,0x056F,0x019E80,0x058D,0x019F20,0x05A6,0x01A150,0x05BF,0x020550,0x05D9,0x0235D0,0x05F2,0x029F40,0x0608,0x037860,0x061D,0x03E6D0,0x0633,0x03E720,0x064B,0x03E770,0x0663