Skip to content

IDB import for PIC binaries does not handle changed base address #7163

@CouleeApps

Description

@CouleeApps

Version and Platform (required):

  • Binary Ninja Version: 5.1.7999
  • Edition: Ultimate
  • OS: Windows
  • OS Version: 11
  • CPU Architecture: x64

Bug Description:
When loading a position-independent binary, binja now bases the binary at 0x400000. But the IDB importer expects the file to be at 0 and therefore cannot apply function data anymore.

Steps To Reproduce:

  1. Open print_arg_O0.zip
  2. Analysis -> Import debug info from external file with print_arg_O0.i64.zip
  3. See "Attempting to add function not backed by file" errors

Expected Behavior:
I expected the import to work

Additional Information:
We recently changed PIC file base addresses from 0 to 0x400000 and a bunch of other things got caught by this too.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions