Skip to content

Commit ab4bd66

Browse files
committed
ELF: exclude debug sections from global memory map
1 parent 737054f commit ab4bd66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeHawk/CHB/bchlibelf/bCHELFHeader.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ object(self)
551551
List.iter (fun (_, h, _) ->
552552
if (h#is_program_section || (h#get_section_name = ".bss"))
553553
&& (not h#is_executable)
554+
&& (not (CHUtil.startswith h#get_section_name ".debug_"))
554555
&& (not
555556
(List.mem
556557
h#get_section_name

0 commit comments

Comments
 (0)