Skip to content

Commit

Permalink
[IDA] Export the header segment. Fix #29
Browse files Browse the repository at this point in the history
  • Loading branch information
patacca committed Apr 29, 2024
1 parent a7a54a2 commit 043b3d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ int ExportSegments(quokka::Quokka* proto) {

segment_t* seg = get_first_seg();
while (seg != nullptr) {
if (is_visible_segm(seg) && not is_ephemeral_segm(seg->start_ea)) {
// A HEADER segment is considered ephemeral even though instructions might
// reference it. See https://github.com/quarkslab/quokka/issues/29
if (seg->is_header_segm() ||
(is_visible_segm(seg) && !is_ephemeral_segm(seg->start_ea))) {
segments.emplace_back(seg);
}

Expand Down

0 comments on commit 043b3d9

Please sign in to comment.