Skip to content

Conversation

ivg
Copy link
Member

@ivg ivg commented Mar 8, 2021

Filters out empty segments from the specification. An empty segment
breaks, in particular, the Primus loader which treats it as a segment
that covers all addresses (an appropriate assert is added to make it
easier to discover such issues in the future).

Thanks @anwarmamat for reporting the issue.

Filters out empty segments from the specification. An empty segment
breaks, in particular, the primus loader which treats it as a segment
that covers all addresses (an appropriate assert is added to make it
easier to discover such issues in the future).
@ivg ivg merged commit 05ced1b into BinaryAnalysisPlatform:master Mar 8, 2021
ivg added a commit to ivg/bap that referenced this pull request Mar 19, 2021
It looks like that BinaryAnalysisPlatform#1281 rendered bap useless for unlifted
instructions. Both mc and objdump commads are now outputing
empty objects even without asm or opcodes, which makes it
really hard to write a new lifter.

This PR fixes it on mc and objdump level. I am not sure if we also
need this in the disassembler driver (as in any case the output of
this driver will be incorrect without having full semantics).
ivg added a commit that referenced this pull request Mar 19, 2021
It looks like that #1281 rendered bap useless for unlifted
instructions. Both mc and objdump commads are now outputing
empty objects even without asm or opcodes, which makes it
really hard to write a new lifter.

This PR fixes it on mc and objdump level. I am not sure if we also
need this in the disassembler driver (as in any case the output of
this driver will be incorrect without having full semantics).
@ivg ivg deleted the prunes-empty-segments branch December 1, 2021 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant