-
Notifications
You must be signed in to change notification settings - Fork 260
Open
Labels
Effort: LowIssues require < 1 week of workIssues require < 1 week of workFile Format: ELFImpact: MediumIssue is impactful with a bad, or no, workaroundIssue is impactful with a bad, or no, workaround
Description
Version and Platform (required):
- Binary Ninja Version: 5.2.8101-dev
- Edition: Non-Commercial
- OS: Windows
- OS Version: 10
- CPU Architecture: x64
Bug Description:
When a binary is compiled using the mold linker, the functions in the .plt section are not renamed to match the function they are calling within the .got.plt section:

For comparison, a binary compiled using default ld will have the function renamed as expected:

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:
- Compile a hello world program using mold (install mold and use
-fuse-ld=mold
option in gcc). Alternatively, download attached binary from below. - Open in binja and go to main function
- Observe that call to
puts
in PLT is namedsub_4015f0
and notputs
Expected Behavior:
PLT function should be renamed.
Screenshots/Video Recording:
See screenshots above.
Binary:
Additional Information:
Please add any other context about the problem here.
dumbasPL
Metadata
Metadata
Assignees
Labels
Effort: LowIssues require < 1 week of workIssues require < 1 week of workFile Format: ELFImpact: MediumIssue is impactful with a bad, or no, workaroundIssue is impactful with a bad, or no, workaround