Skip to content

Conversation

@smarr
Copy link

@smarr smarr commented Aug 15, 2022

In native image, the code section is named differently, so this PR skips now through the file until it fines one or the other cfg section.

It also adds a summary command to get an idea of what's in the file.

And finally, the jump tables are encoded directly in the instruction stream.
So, that breaks dissemblers, which will simply stop or misinterpret the found bytes.

To avoid this, the jump table entries are now replaced by nop instructions.

Note: this is limited to x86, and no specs were added.

smarr added 4 commits August 15, 2022 20:36
Skip until one of them is found

Signed-off-by: Stefan Marr <[email protected]>
This reduce the number of lines and corresponds better to the number of table entries when printing.

Signed-off-by: Stefan Marr <[email protected]>
@smarr
Copy link
Author

smarr commented Aug 15, 2022

CLA is signed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant