Skip to content
This repository was archived by the owner on May 2, 2019. It is now read-only.

Conversation

qwattash
Copy link
Contributor

When we are not able to find the size of a symbol, we conservatively use the section
bounds. The bug causes the base to be set to the symbol address and the length to
the section size, leading to capabilities that go outside the section bounds.
The fix sets base and length to be equal to the section start and size and the
capability offset is set to the symbol address.

Fix minor bug in llvm-objdump -C reporting incorrect capability relocation permissions.

…ection bounds

When we are not able to find the size of a symbol, we conservatively use the section
bounds. The bug causes the base to be set to the symbol address and the length to
the section size, leading to capabilities that go outside the section bounds.
The fix sets base and length to be equal to the section start and size and the
capability offset is set to the symbol address.

Fix minor bug in llvm-objdump -C reporting incorrect capability relocation permissions.
@davidchisnall
Copy link
Member

Please can you include a test case (e.g. a .S file that's run through llvm-mc and then capsizefix, then objdump'd to give the correct locations)?

@davidchisnall
Copy link
Member

Ping?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants