Skip to content

Commit

Permalink
Make the entry-point 0 issue general
Browse files Browse the repository at this point in the history
  • Loading branch information
junghee committed May 23, 2024
1 parent 1f6f8da commit a285431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
* Add alignment for x86-64 instructions that require explicitly aligned memory
(e.g., some SIMD instructions)
* Update capstone version from 4.0.1 to 5.0.1
* Avoid generating `_start` symbol when the entry-point is 0 in shared
libraries
* Avoid generating `_start` symbol when the entry-point address is not a code block.

# 1.8.0

Expand Down
5 changes: 2 additions & 3 deletions src/datalog/binary/elf/symbolization.dl
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ start_function(EA):-
start_function(Start_location):-
binary_format("ELF"),
!function_symbol(Start_location,"_start"),
// Igore entry-point 0 for shared library
!(binary_type("DYN"), Start_location = 0),
entry_point(Start_location).
entry_point(Start_location),
code(Start_location).

main_function(EA):-
binary_format("ELF"),
Expand Down

0 comments on commit a285431

Please sign in to comment.