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

Dropping the .altinstr_replacement section from the toolchain #414

Conversation

rbs-alexr
Copy link
Contributor

One sentence summary of this PR (This should go in the CHANGELOG!)
We also want to drop the .altinstr_replacement section when we are performing patches

Link to Related Issue(s)

Please describe the changes in your request.
This PR adds .altinstr_replacement to the toolchain's linker section droplist

Anyone you think should look at this, specifically?
@rbs-afflitto also ran into this issue

@rbs-afflitto
Copy link
Collaborator

This looks good to me

@whyitfor
Copy link
Contributor

whyitfor commented Feb 9, 2024

This needs a Changelog entry for ofrak-patch-maker.

Probably can be considered a bugfix.

@whyitfor
Copy link
Contributor

I'm curious what triggered discovery of this issue. Has it always been around, or is this something new? Did a change create it?

@rbs-alexr
Copy link
Contributor Author

We observed this section when working on code for AARCH64 Linux 4

@rbs-alexr
Copy link
Contributor Author

Pending further feedback, can we merge this in?

@whyitfor whyitfor self-requested a review February 13, 2024 22:07
Copy link
Contributor

@whyitfor whyitfor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whyitfor whyitfor merged commit 8a94589 into redballoonsecurity:master Feb 13, 2024
5 checks passed
ANogin pushed a commit to ANogin/ofrak that referenced this pull request Feb 18, 2024
…loonsecurity#414)

* Dropping the .altinstr_replacement section from the toolchain

* Updated CHANGELOG
whyitfor added a commit that referenced this pull request Feb 22, 2024
* Use python3.8 in docker images

* Require pytest<8.0

This is needed becase of pytest-dev/pytest#11890
TvoroG/pytest-lazy-fixture#65

* Update changelog

* Revert "Update changelog"

This reverts commit 500ee9b.

Making changes before having coffee :(

* Update to latest angr==9.2.89, which also necessitates Python >= 3.8 and capstone==5.0.0.post1

* Apply Edward's attempted fix to angr test failure

* Add a note on recommending Python 3.8

* Add a note on recommending Python 3.8

* Document the requirement of Python 3.8+

* Switch to angr 9.2.77

* `ofrak_core` also needs `pytest<8.0`

* ignore DataWord in test due to angr bug

* add another now missing block

* black linting

* Attempt to fix a capstone error

* Dropping the .altinstr_replacement section from the toolchain (#414)

* Dropping the .altinstr_replacement section from the toolchain

* Updated CHANGELOG

* Set the fallback font to monospace (#422)

* Set the fallback font to monospace

* Update CHANGELOG

* Display strings with numbers primarily as strings (#423)

* Display strings with numbers primarily as strings

* Update CHANGELOG

* Add typing support to ofrak_ghidra package (#421)

* Add typing to ofrak_ghidra package

* Add changelog

---------

Co-authored-by: Paul Noalhyt <[email protected]>

* Increase time limit on `test_comment_content`

* Fix a spurious "no current event loop" test error

* Explain 3.7 vs 3.8 better in the docs

* Cite specific versions of angr in comment

* Update docs/environment-setup.md

* Update docs/getting-started.md

---------

Co-authored-by: Edward Larson <[email protected]>
Co-authored-by: rbs-alexr <[email protected]>
Co-authored-by: Jacob Strieb <[email protected]>
Co-authored-by: Paul Noalhyt <[email protected]>
Co-authored-by: Paul Noalhyt <[email protected]>
Co-authored-by: Wyatt <[email protected]>
ANogin pushed a commit to ANogin/ofrak that referenced this pull request May 30, 2024
…loonsecurity#414)

* Dropping the .altinstr_replacement section from the toolchain

* Updated CHANGELOG
ANogin added a commit to ANogin/ofrak that referenced this pull request May 30, 2024
* Use python3.8 in docker images

* Require pytest<8.0

This is needed becase of pytest-dev/pytest#11890
TvoroG/pytest-lazy-fixture#65

* Update changelog

* Revert "Update changelog"

This reverts commit 500ee9b.

Making changes before having coffee :(

* Update to latest angr==9.2.89, which also necessitates Python >= 3.8 and capstone==5.0.0.post1

* Apply Edward's attempted fix to angr test failure

* Add a note on recommending Python 3.8

* Add a note on recommending Python 3.8

* Document the requirement of Python 3.8+

* Switch to angr 9.2.77

* `ofrak_core` also needs `pytest<8.0`

* ignore DataWord in test due to angr bug

* add another now missing block

* black linting

* Attempt to fix a capstone error

* Dropping the .altinstr_replacement section from the toolchain (redballoonsecurity#414)

* Dropping the .altinstr_replacement section from the toolchain

* Updated CHANGELOG

* Set the fallback font to monospace (redballoonsecurity#422)

* Set the fallback font to monospace

* Update CHANGELOG

* Display strings with numbers primarily as strings (redballoonsecurity#423)

* Display strings with numbers primarily as strings

* Update CHANGELOG

* Add typing support to ofrak_ghidra package (redballoonsecurity#421)

* Add typing to ofrak_ghidra package

* Add changelog

---------

Co-authored-by: Paul Noalhyt <[email protected]>

* Increase time limit on `test_comment_content`

* Fix a spurious "no current event loop" test error

* Explain 3.7 vs 3.8 better in the docs

* Cite specific versions of angr in comment

* Update docs/environment-setup.md

* Update docs/getting-started.md

---------

Co-authored-by: Edward Larson <[email protected]>
Co-authored-by: rbs-alexr <[email protected]>
Co-authored-by: Jacob Strieb <[email protected]>
Co-authored-by: Paul Noalhyt <[email protected]>
Co-authored-by: Paul Noalhyt <[email protected]>
Co-authored-by: Wyatt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants