mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[GEN_BASEADDRESS] Fix the script for python 3 and update *_pe.dll entries,
as hinted by hermes
This commit is contained in:
parent
5fbf239348
commit
0e7ab51875
1 changed files with 5 additions and 7 deletions
|
@ -92,7 +92,6 @@ EXCLUDE = (
|
||||||
'bootvid.dll',
|
'bootvid.dll',
|
||||||
'framebuf.dll',
|
'framebuf.dll',
|
||||||
'framebuf_new.dll',
|
'framebuf_new.dll',
|
||||||
'freeldr_pe.dll',
|
|
||||||
'ftfd.dll',
|
'ftfd.dll',
|
||||||
'fusion.dll',
|
'fusion.dll',
|
||||||
'genincdata.dll',
|
'genincdata.dll',
|
||||||
|
@ -182,7 +181,6 @@ EXCLUDE = (
|
||||||
'kbdycl.dll',
|
'kbdycl.dll',
|
||||||
'kdcom.dll',
|
'kdcom.dll',
|
||||||
'kdvbox.dll',
|
'kdvbox.dll',
|
||||||
'setupldr_pe.dll',
|
|
||||||
'vgaddi.dll',
|
'vgaddi.dll',
|
||||||
'dllexport_test_dll1.dll',
|
'dllexport_test_dll1.dll',
|
||||||
'dllexport_test_dll2.dll',
|
'dllexport_test_dll2.dll',
|
||||||
|
@ -337,14 +335,14 @@ def guess_version(ntdll_path):
|
||||||
ntdll_pe = pefile.PE(ntdll_path, fast_load=True)
|
ntdll_pe = pefile.PE(ntdll_path, fast_load=True)
|
||||||
names = [sect.Name.strip(b'\0') for sect in ntdll_pe.sections]
|
names = [sect.Name.strip(b'\0') for sect in ntdll_pe.sections]
|
||||||
count = b'|'.join(names).count(b'/')
|
count = b'|'.join(names).count(b'/')
|
||||||
if '.rossym' in names:
|
if b'.rossym' in names:
|
||||||
print('# This should probably go in baseaddress.cmake')
|
print('# This should probably go in sdk/cmake/baseaddress.cmake')
|
||||||
elif is_x64():
|
elif is_x64():
|
||||||
print('# This should probably go in baseaddress_msvc_x64.cmake')
|
print('# This should probably go in sdk/cmake/baseaddress_msvc_x64.cmake')
|
||||||
elif count == 0:
|
elif count == 0:
|
||||||
print('# This should probably go in baseaddress_msvc.cmake')
|
print('# This should probably go in sdk/cmake/baseaddress_msvc.cmake')
|
||||||
elif count > 3:
|
elif count > 3:
|
||||||
print('# This should probably go in baseaddress_dwarf.cmake')
|
print('# This should probably go in sdk/cmake/baseaddress_dwarf.cmake')
|
||||||
else:
|
else:
|
||||||
print('# No clue where to put this')
|
print('# No clue where to put this')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue