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

BPatch_addressSpace replaceFunctionCall does not set R12 on Power #589

Closed
bwelton opened this issue Apr 25, 2019 · 5 comments
Closed

BPatch_addressSpace replaceFunctionCall does not set R12 on Power #589

bwelton opened this issue Apr 25, 2019 · 5 comments
Labels

Comments

@bwelton
Copy link
Contributor

bwelton commented Apr 25, 2019

replaceFunctionCall appears to be using a different path than inserting a function call that does not set R12 (causing the TOC to be miscalculated by the replaced function call).

@mxz297
Copy link
Member

mxz297 commented Apr 25, 2019

@bwelton test1_14 in the testsuite tests this functionality and that test is passing on power. I just read the source code of the tests. The test contains replacing with a function in the binary and also replacing with a function in a shared library.

So, the test really should catch this problem...

@mxz297
Copy link
Member

mxz297 commented Apr 25, 2019

@bwelton Which branch are you using? For your new project, do you think it may be better to use dyninst master?

@bwelton
Copy link
Contributor Author

bwelton commented Apr 25, 2019 via email

@mxz297
Copy link
Member

mxz297 commented Apr 25, 2019

@bwelton I see. I will then augment the test and fix the problem.

@mxz297
Copy link
Member

mxz297 commented Apr 29, 2019

@bwelton Are we certain that this is not a problem for master branch?

@bwelton bwelton closed this as completed May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants