Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
89321f49
Commit
89321f49
authored
Jul 21, 2003
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Jul 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Mach-O (Darwin file format) support.
parent
5ef127a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
module.c
loader/module.c
+17
-0
No files found.
loader/module.c
View file @
89321f49
...
...
@@ -145,6 +145,13 @@ enum binary_type MODULE_GetBinaryType( HANDLE hfile )
unsigned
char
ignored
[
12
];
unsigned
short
type
;
}
elf
;
struct
{
unsigned
long
magic
;
unsigned
long
cputype
;
unsigned
long
cpusubtype
;
unsigned
long
filetype
;
}
macho
;
IMAGE_DOS_HEADER
mz
;
}
header
;
...
...
@@ -168,6 +175,16 @@ enum binary_type MODULE_GetBinaryType( HANDLE hfile )
return
BINARY_UNKNOWN
;
}
/* Mach-o File with Endian set to Big Endian or Little Endian*/
if
(
header
.
macho
.
magic
==
0xfeedface
||
header
.
macho
.
magic
==
0xecafdeef
)
{
switch
(
header
.
macho
.
filetype
)
{
case
0x8
:
/* MH_BUNDLE */
return
BINARY_UNIX_LIB
;
}
return
BINARY_UNKNOWN
;
}
/* Not ELF, try DOS */
if
(
header
.
mz
.
e_magic
==
IMAGE_DOS_SIGNATURE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment