Skip to content

Macho loader treating symbol bindings wrong #5351

Open
@mostobriv

Description

@mostobriv

Version and Platform (required):

  • Binary Ninja Version: 4.1.5218-dev Personal (423fe6c2)
  • OS: MacOS

Bug Description:
I think there is some misconception of how the macho bindings works, as instead of putting the value that can be located by the external symbol to specified address, current BNs macho loader defining the symbol at address instead.
image

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open attached binary
  2. Go to 0x100008310

Expected Behaviour:
As i've said in the description, there should be not defined symbol (void* SYMBOL = ...), but the external value should be stored at address (void* data_XXX = SYMBOL).

test_binary.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions