Chameleon

View modules_for_xcode5.patch

1diff --git a/i386/boot2/modules.c b/i386/boot2/modules.c
2index 66922aa..4e3b1a7 100644
3--- a/i386/boot2/modules.c
4+++ b/i386/boot2/modules.c
5@@ -724,7 +724,7 @@ void rebase_macho(void* base, char* rebase_stream, UInt32 size)
6 }
7 }
8
9-inline void rebase_location(UInt32* location, char* base, int type)
10+void rebase_location(UInt32* location, char* base, int type)
11 {
12 switch(type)
13 {
14@@ -944,7 +944,7 @@ void bind_macho(void* base, UInt8* bind_stream, UInt32 size)
15 }
16
17
18-inline void bind_location(UInt32* location, char* value, UInt32 addend, int type)
19+void bind_location(UInt32* location, char* value, UInt32 addend, int type)
20 {
21 // do actual update
22 char* newValue = value + addend;
23diff --git a/i386/boot2/modules.h b/i386/boot2/modules.h
24index d1da6c9..2871396 100644
25--- a/i386/boot2/modules.h
26+++ b/i386/boot2/modules.h
27@@ -95,9 +95,9 @@ unsigned inthandle_symtable(UInt32 base,
28 long long(*symbol_handler)(char*, long long, char),
29 char is64);
30 voidrebase_macho(void* base, char* rebase_stream, UInt32 size);
31-inline voidrebase_location(UInt32* location, char* base, int type);
32+voidrebase_location(UInt32* location, char* base, int type);
33 voidbind_macho(void* base, UInt8* bind_stream, UInt32 size);
34-inline voidbind_location(UInt32* location, char* value, UInt32 addend, int type);
35+voidbind_location(UInt32* location, char* value, UInt32 addend, int type);
36
37
38
39

Archive Download this file

Attachment to issue 351

Created: 10 years 9 months ago by zenith432