]>
git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/text-fixups-x86_64-auxkc/main.cpp
9 __typeof(&func
) funcPtr
;
10 __typeof(&func
) funcPtr2
;
12 __attribute__((aligned((16384)))) __typeof(&func
) funcPtr3
;
16 S s
= { &func
, &func
, &g
, &func
, &g
};
18 struct __attribute__((packed
)) PackedS
{
20 __typeof(&func
) funcPtr
; // aligned to 4
21 __typeof(&func
) funcPtr2
; // aligned to 4
23 int *p1
; // aligned to 8
25 int *p2
; // aligned to 1
28 __attribute__((aligned((16384))))
29 PackedS ps
= { 0, &func
, &func
, 0, &g
, 0, &g
};
31 __asm(".code32; .text; .section __HIB, __text; .globl _foo; _foo: movl _foo, %esp; ret");
33 __attribute__((section(("__HIB, __text"))))
34 extern "C" int _start() {
35 return s
.funcPtr() + s
.funcPtr2() + s
.funcPtr3() + ps
.funcPtr();