Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-libraries
Commits
c3a8d8d6
Commit
c3a8d8d6
authored
Feb 19, 2019
by
johnvg@science.ru.nl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in module pecoff_symbols_in_program fix machine and magic constants for 64 bit windows
parent
c998e70a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Libraries/graph_copy/pecoff_symbols_in_program.icl
Libraries/graph_copy/pecoff_symbols_in_program.icl
+5
-3
No files found.
Libraries/graph_copy/pecoff_symbols_in_program.icl
View file @
c3a8d8d6
...
...
@@ -279,8 +279,10 @@ read_symbols file_name files
#
(
ok
,
machine
,
exe_file
)
=
freadu2
exe_file
;
|
not
ok
=
abort
"Not a PECOFF image file (error in PE header)"
;
|
machine
<>
0x14c
// IMAGE_FILE_MACHINE_I386
=
abort
"Not a PECOFF image file for an IA32 processor"
;
|
machine
<>
IF_INT_64_OR_32
0x8664
0x14c
// IMAGE_FILE_MACHINE_AMD64 or IMAGE_FILE_MACHINE_I386
=
abort
(
IF_INT_64_OR_32
"Not a PECOFF image file for an AMD64 processor"
"Not a PECOFF image file for an IA32 processor"
);
#
(
ok
,
n_sections
,
exe_file
)
=
freadu2
exe_file
;
|
not
ok
=
abort
"Not a PECOFF image file (error in PE header)"
;
...
...
@@ -304,7 +306,7 @@ read_symbols file_name files
// read the stamdard fields of the optional PE header (not optional for an image)
#
(
ok
,
magic
,
exe_file
)
=
freadu2
exe_file
;
|
not
ok
||
magic
<>
0x10b
//
PE32 executable
|
not
ok
||
magic
<>
IF_INT_64_OR_32
0x20b
0x10b
// PE32+ or
PE32 executable
=
abort
"Not a PECOFF image file (error in optional PE header)"
;
#
(
ok
,
major_linker_version
,
exe_file
)
=
freadc
exe_file
;
|
not
ok
...
...
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