Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIPS R_MIPS_REL32 relocation not supported #4550

Closed
lwerdna opened this issue Aug 7, 2023 · 1 comment
Closed

MIPS R_MIPS_REL32 relocation not supported #4550

lwerdna opened this issue Aug 7, 2023 · 1 comment
Assignees
Labels
Arch: MIPS Issues with the MIPS architecture plugin
Milestone

Comments

@lwerdna
Copy link
Contributor

lwerdna commented Aug 7, 2023

Version and Platform (required):
3.5

Bug Description:
R_MIPS_REL32 relocation not supported.

Steps To Reproduce:
Open the attached binary: libhdk-mips-elf.zip

Go to address 2C014 and see 0C 8F 01 00 (address 0x18F0C) which references string "POST". Now rebase binary to 0x1000. Address 2C014 still points at old address, reference to "POST" is lost.

You will also see these in log:

Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C014
Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C01C
Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C030
Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C054
Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C05C
Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C064
Unsupported relocation type: 3 (R_MIPS_REL32) @0x2C06C
...

Expected Behavior:

Reference to "POST" is maintained after rebase.

Log does not show unsupported relocation messages.

@lwerdna lwerdna added the Arch: MIPS Issues with the MIPS architecture plugin label Aug 7, 2023
@lwerdna lwerdna self-assigned this Aug 7, 2023
@lwerdna
Copy link
Contributor Author

lwerdna commented Aug 7, 2023

Fixed in arch-mips: Vector35/arch-mips@5c94e6a

BinaryNinja will point to new version soon.

@lwerdna lwerdna closed this as completed Aug 7, 2023
@plafosse plafosse added this to the Coruscant milestone Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: MIPS Issues with the MIPS architecture plugin
Projects
None yet
Development

No branches or pull requests

2 participants