From: DRC Date: Thu, 8 Oct 2009 09:04:56 +0000 (+0000) Subject: Work around alignment issue with OS X linker which was causing problems on Leopard... X-Git-Tag: v1.0.90~380 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4eca36021acc9d71652a850e906a2cedcd4c9b93;p=tigervnc.git Work around alignment issue with OS X linker which was causing problems on Leopard and Snow Leopard git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3910 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/common/jpeg/simd/jcclrmmx.asm b/common/jpeg/simd/jcclrmmx.asm index 34c4224f..b6b89121 100644 --- a/common/jpeg/simd/jcclrmmx.asm +++ b/common/jpeg/simd/jcclrmmx.asm @@ -474,3 +474,6 @@ EXTN(jsimd_rgb_ycc_convert_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcclrss2-64.asm b/common/jpeg/simd/jcclrss2-64.asm index f2cd8f4e..31c5be62 100644 --- a/common/jpeg/simd/jcclrss2-64.asm +++ b/common/jpeg/simd/jcclrss2-64.asm @@ -482,3 +482,6 @@ EXTN(jsimd_rgb_ycc_convert_sse2): pop rbp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcclrss2.asm b/common/jpeg/simd/jcclrss2.asm index d6f868c5..8def718c 100644 --- a/common/jpeg/simd/jcclrss2.asm +++ b/common/jpeg/simd/jcclrss2.asm @@ -500,3 +500,6 @@ EXTN(jsimd_rgb_ycc_convert_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqnt3dn.asm b/common/jpeg/simd/jcqnt3dn.asm index 194b7f9b..182c8695 100644 --- a/common/jpeg/simd/jcqnt3dn.asm +++ b/common/jpeg/simd/jcqnt3dn.asm @@ -228,3 +228,6 @@ EXTN(jsimd_quantize_float_3dnow): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqntmmx.asm b/common/jpeg/simd/jcqntmmx.asm index fa54902a..08b08b79 100644 --- a/common/jpeg/simd/jcqntmmx.asm +++ b/common/jpeg/simd/jcqntmmx.asm @@ -269,3 +269,6 @@ EXTN(jsimd_quantize_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqnts2f-64.asm b/common/jpeg/simd/jcqnts2f-64.asm index 51d63076..e09387ca 100644 --- a/common/jpeg/simd/jcqnts2f-64.asm +++ b/common/jpeg/simd/jcqnts2f-64.asm @@ -150,3 +150,7 @@ EXTN(jsimd_quantize_float_sse2): uncollect_args pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqnts2f.asm b/common/jpeg/simd/jcqnts2f.asm index 19c1d017..d80ae5dc 100644 --- a/common/jpeg/simd/jcqnts2f.asm +++ b/common/jpeg/simd/jcqnts2f.asm @@ -166,3 +166,6 @@ EXTN(jsimd_quantize_float_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqnts2i-64.asm b/common/jpeg/simd/jcqnts2i-64.asm index d5615901..4568dfc3 100644 --- a/common/jpeg/simd/jcqnts2i-64.asm +++ b/common/jpeg/simd/jcqnts2i-64.asm @@ -179,3 +179,7 @@ EXTN(jsimd_quantize_sse2): uncollect_args pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqnts2i.asm b/common/jpeg/simd/jcqnts2i.asm index 404ae957..0864d6ed 100644 --- a/common/jpeg/simd/jcqnts2i.asm +++ b/common/jpeg/simd/jcqnts2i.asm @@ -195,3 +195,6 @@ EXTN(jsimd_quantize_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcqntsse.asm b/common/jpeg/simd/jcqntsse.asm index 0f412d7e..3065eca8 100644 --- a/common/jpeg/simd/jcqntsse.asm +++ b/common/jpeg/simd/jcqntsse.asm @@ -206,3 +206,6 @@ EXTN(jsimd_quantize_float_sse): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcsammmx.asm b/common/jpeg/simd/jcsammmx.asm index 982a6e0d..c7126a0d 100644 --- a/common/jpeg/simd/jcsammmx.asm +++ b/common/jpeg/simd/jcsammmx.asm @@ -319,3 +319,6 @@ EXTN(jsimd_h2v2_downsample_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcsamss2-64.asm b/common/jpeg/simd/jcsamss2-64.asm index cf7a776b..29c3f4f9 100644 --- a/common/jpeg/simd/jcsamss2-64.asm +++ b/common/jpeg/simd/jcsamss2-64.asm @@ -322,3 +322,7 @@ EXTN(jsimd_h2v2_downsample_sse2): uncollect_args pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jcsamss2.asm b/common/jpeg/simd/jcsamss2.asm index 98e97da4..818e911d 100644 --- a/common/jpeg/simd/jcsamss2.asm +++ b/common/jpeg/simd/jcsamss2.asm @@ -346,3 +346,6 @@ EXTN(jsimd_h2v2_downsample_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdclrmmx.asm b/common/jpeg/simd/jdclrmmx.asm index 09f72ca3..79772e0c 100644 --- a/common/jpeg/simd/jdclrmmx.asm +++ b/common/jpeg/simd/jdclrmmx.asm @@ -402,3 +402,6 @@ EXTN(jsimd_ycc_rgb_convert_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdclrss2-64.asm b/common/jpeg/simd/jdclrss2-64.asm index c3c1b07c..ea9d2ac5 100644 --- a/common/jpeg/simd/jdclrss2-64.asm +++ b/common/jpeg/simd/jdclrss2-64.asm @@ -481,3 +481,7 @@ EXTN(jsimd_ycc_rgb_convert_sse2): pop rsp ; rsp <- original rbp pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdclrss2.asm b/common/jpeg/simd/jdclrss2.asm index 06a9adee..865fa824 100644 --- a/common/jpeg/simd/jdclrss2.asm +++ b/common/jpeg/simd/jdclrss2.asm @@ -500,3 +500,6 @@ EXTN(jsimd_ycc_rgb_convert_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdmrgmmx.asm b/common/jpeg/simd/jdmrgmmx.asm index 08b0985d..f5fa9363 100644 --- a/common/jpeg/simd/jdmrgmmx.asm +++ b/common/jpeg/simd/jdmrgmmx.asm @@ -461,3 +461,6 @@ EXTN(jsimd_h2v2_merged_upsample_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdmrgss2-64.asm b/common/jpeg/simd/jdmrgss2-64.asm index 6329f950..3e54c7ae 100644 --- a/common/jpeg/simd/jdmrgss2-64.asm +++ b/common/jpeg/simd/jdmrgss2-64.asm @@ -563,3 +563,7 @@ EXTN(jsimd_h2v2_merged_upsample_sse2): pop rbx pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdmrgss2.asm b/common/jpeg/simd/jdmrgss2.asm index 5018a236..99b7eb9f 100644 --- a/common/jpeg/simd/jdmrgss2.asm +++ b/common/jpeg/simd/jdmrgss2.asm @@ -559,3 +559,6 @@ EXTN(jsimd_h2v2_merged_upsample_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdsammmx.asm b/common/jpeg/simd/jdsammmx.asm index e05d540e..c09e5b96 100644 --- a/common/jpeg/simd/jdsammmx.asm +++ b/common/jpeg/simd/jdsammmx.asm @@ -732,3 +732,6 @@ EXTN(jsimd_h2v2_upsample_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdsamss2-64.asm b/common/jpeg/simd/jdsamss2-64.asm index 143a97a2..85214912 100644 --- a/common/jpeg/simd/jdsamss2-64.asm +++ b/common/jpeg/simd/jdsamss2-64.asm @@ -662,3 +662,7 @@ EXTN(jsimd_h2v2_upsample_sse2): pop rbx pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jdsamss2.asm b/common/jpeg/simd/jdsamss2.asm index 7d787f1c..b5c863b4 100644 --- a/common/jpeg/simd/jdsamss2.asm +++ b/common/jpeg/simd/jdsamss2.asm @@ -724,3 +724,6 @@ EXTN(jsimd_h2v2_upsample_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jf3dnflt.asm b/common/jpeg/simd/jf3dnflt.asm index ed7e6a0b..542672dc 100644 --- a/common/jpeg/simd/jf3dnflt.asm +++ b/common/jpeg/simd/jf3dnflt.asm @@ -315,3 +315,6 @@ EXTN(jsimd_fdct_float_3dnow): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfmmxfst.asm b/common/jpeg/simd/jfmmxfst.asm index 3511457d..0647242a 100644 --- a/common/jpeg/simd/jfmmxfst.asm +++ b/common/jpeg/simd/jfmmxfst.asm @@ -392,3 +392,6 @@ EXTN(jsimd_fdct_ifast_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfmmxint.asm b/common/jpeg/simd/jfmmxint.asm index e018e6bf..a7e73f73 100644 --- a/common/jpeg/simd/jfmmxint.asm +++ b/common/jpeg/simd/jfmmxint.asm @@ -617,3 +617,6 @@ EXTN(jsimd_fdct_islow_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfss2fst-64.asm b/common/jpeg/simd/jfss2fst-64.asm index b6a06bc1..c99acc2f 100644 --- a/common/jpeg/simd/jfss2fst-64.asm +++ b/common/jpeg/simd/jfss2fst-64.asm @@ -386,3 +386,7 @@ EXTN(jsimd_fdct_ifast_sse2): pop rsp ; rsp <- original rbp pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfss2fst.asm b/common/jpeg/simd/jfss2fst.asm index f0ad9621..73fc9e51 100644 --- a/common/jpeg/simd/jfss2fst.asm +++ b/common/jpeg/simd/jfss2fst.asm @@ -399,3 +399,6 @@ EXTN(jsimd_fdct_ifast_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfss2int-64.asm b/common/jpeg/simd/jfss2int-64.asm index 5fc4ac85..b8ec4b54 100644 --- a/common/jpeg/simd/jfss2int-64.asm +++ b/common/jpeg/simd/jfss2int-64.asm @@ -616,3 +616,7 @@ EXTN(jsimd_fdct_islow_sse2): pop rsp ; rsp <- original rbp pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfss2int.asm b/common/jpeg/simd/jfss2int.asm index 5338db32..5e3f2aaa 100644 --- a/common/jpeg/simd/jfss2int.asm +++ b/common/jpeg/simd/jfss2int.asm @@ -629,3 +629,6 @@ EXTN(jsimd_fdct_islow_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfsseflt-64.asm b/common/jpeg/simd/jfsseflt-64.asm index 859ff54f..0f3e21a6 100644 --- a/common/jpeg/simd/jfsseflt-64.asm +++ b/common/jpeg/simd/jfsseflt-64.asm @@ -352,3 +352,7 @@ EXTN(jsimd_fdct_float_sse): pop rsp ; rsp <- original rbp pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jfsseflt.asm b/common/jpeg/simd/jfsseflt.asm index 9b8d04ce..bc54cccd 100644 --- a/common/jpeg/simd/jfsseflt.asm +++ b/common/jpeg/simd/jfsseflt.asm @@ -365,3 +365,6 @@ EXTN(jsimd_fdct_float_sse): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/ji3dnflt.asm b/common/jpeg/simd/ji3dnflt.asm index 6c9abca7..dc2076f4 100644 --- a/common/jpeg/simd/ji3dnflt.asm +++ b/common/jpeg/simd/ji3dnflt.asm @@ -447,3 +447,6 @@ EXTN(jsimd_idct_float_3dnow): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jimmxfst.asm b/common/jpeg/simd/jimmxfst.asm index e5802ace..3b055727 100644 --- a/common/jpeg/simd/jimmxfst.asm +++ b/common/jpeg/simd/jimmxfst.asm @@ -495,3 +495,6 @@ EXTN(jsimd_idct_ifast_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jimmxint.asm b/common/jpeg/simd/jimmxint.asm index 563f41c5..7b52fae3 100644 --- a/common/jpeg/simd/jimmxint.asm +++ b/common/jpeg/simd/jimmxint.asm @@ -847,3 +847,6 @@ EXTN(jsimd_idct_islow_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jimmxred.asm b/common/jpeg/simd/jimmxred.asm index 4ee34a0a..a2b7103d 100644 --- a/common/jpeg/simd/jimmxred.asm +++ b/common/jpeg/simd/jimmxred.asm @@ -701,3 +701,6 @@ EXTN(jsimd_idct_2x2_mmx): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2flt-64.asm b/common/jpeg/simd/jiss2flt-64.asm index a3d4a549..0e8522db 100644 --- a/common/jpeg/simd/jiss2flt-64.asm +++ b/common/jpeg/simd/jiss2flt-64.asm @@ -477,3 +477,7 @@ EXTN(jsimd_idct_float_sse2): pop rsp ; rsp <- original rbp pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2flt.asm b/common/jpeg/simd/jiss2flt.asm index fc9e21a2..17bc3633 100644 --- a/common/jpeg/simd/jiss2flt.asm +++ b/common/jpeg/simd/jiss2flt.asm @@ -493,3 +493,6 @@ EXTN(jsimd_idct_float_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2fst-64.asm b/common/jpeg/simd/jiss2fst-64.asm index ab6af50c..8b664a67 100644 --- a/common/jpeg/simd/jiss2fst-64.asm +++ b/common/jpeg/simd/jiss2fst-64.asm @@ -486,3 +486,7 @@ EXTN(jsimd_idct_ifast_sse2): pop rbp ret ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2fst.asm b/common/jpeg/simd/jiss2fst.asm index fda073f5..b53664d7 100644 --- a/common/jpeg/simd/jiss2fst.asm +++ b/common/jpeg/simd/jiss2fst.asm @@ -497,3 +497,6 @@ EXTN(jsimd_idct_ifast_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2int-64.asm b/common/jpeg/simd/jiss2int-64.asm index 97317af7..82da0a71 100644 --- a/common/jpeg/simd/jiss2int-64.asm +++ b/common/jpeg/simd/jiss2int-64.asm @@ -842,3 +842,7 @@ EXTN(jsimd_idct_islow_sse2): pop rsp ; rsp <- original rbp pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2int.asm b/common/jpeg/simd/jiss2int.asm index d568dada..adf39fb3 100644 --- a/common/jpeg/simd/jiss2int.asm +++ b/common/jpeg/simd/jiss2int.asm @@ -854,3 +854,6 @@ EXTN(jsimd_idct_islow_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2red-64.asm b/common/jpeg/simd/jiss2red-64.asm index dcf745bd..85ba9415 100644 --- a/common/jpeg/simd/jiss2red-64.asm +++ b/common/jpeg/simd/jiss2red-64.asm @@ -569,3 +569,7 @@ EXTN(jsimd_idct_2x2_sse2): pop rbx pop rbp ret + +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jiss2red.asm b/common/jpeg/simd/jiss2red.asm index 10046e9a..238c61d0 100644 --- a/common/jpeg/simd/jiss2red.asm +++ b/common/jpeg/simd/jiss2red.asm @@ -589,3 +589,6 @@ EXTN(jsimd_idct_2x2_sse2): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jisseflt.asm b/common/jpeg/simd/jisseflt.asm index db9d1a39..d6147c12 100644 --- a/common/jpeg/simd/jisseflt.asm +++ b/common/jpeg/simd/jisseflt.asm @@ -567,3 +567,6 @@ EXTN(jsimd_idct_float_sse): pop ebp ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16 diff --git a/common/jpeg/simd/jsimdcpu.asm b/common/jpeg/simd/jsimdcpu.asm index 31f2a6ac..bdbcc231 100644 --- a/common/jpeg/simd/jsimdcpu.asm +++ b/common/jpeg/simd/jsimdcpu.asm @@ -100,3 +100,6 @@ EXTN(jpeg_simd_cpu_support): pop ebx ret +; For some reason, the OS X linker does not honor the request to align the +; segment unless we do this. + align 16