Module: wine Branch: master Commit: 5acf1510fbe4f17d35443666ddd9d123de253e1c URL: http://source.winehq.org/git/wine.git/?a=commit;h=5acf1510fbe4f17d35443666dd...
Author: Ken Thomases ken@codeweavers.com Date: Mon Jul 7 15:36:14 2014 -0500
dbghelp: Ignore the __PAGEZERO segment.
It made it seem as though the wineloader always started at address 0. Issue identified by Jacek Caban.
---
dlls/dbghelp/macho_module.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c index ebea4fd..2eb2b94 100644 --- a/dlls/dbghelp/macho_module.c +++ b/dlls/dbghelp/macho_module.c @@ -398,6 +398,11 @@ static int macho_accum_segs_range(struct macho_file_map* fmap, TRACE("Ignoring special Wine segment %s\n", debugstr_an(sc->segname, sizeof(sc->segname))); return 0; } + if (!strncmp(sc->segname, "__PAGEZERO", 10)) + { + TRACE("Ignoring __PAGEZERO segment\n"); + return 0; + }
/* If this segment starts before previously-known earliest, record * new earliest. */