Repository navigation
Disable dyninstAPI/static_ctor_dtor on aarch64 - #42
Conversation
Static rewriting isn't supported on aarch64.
|
@kupsch It was failing because rewriting statically-linked binaries isn't supported on aarch64. |
|
Working correctly on grace-hopper and grace machines at UO. |
kupsch
left a comment
There was a problem hiding this comment.
Looks good. Two optional things:
-
It would be nice have the test use SKIPPED with a message instead of silently be not run so it is visible. That's what I did in on the branch kupsch/filter-DSOs-to-parse.
-
Also the AI suggests:
The cleaner fix is to make DYNINST_ENABLE_STATIC_TESTS default to OFF when the target is aarch64. That keeps one control point users can override, and it also covers any future static tests added in other directories.I'd also used skipped in this case too.
Yeah, that would be nicer behavior. I'll convert it to a runtime check in the mutator and add an error message that will show up with
That controls just this test today, but there could be others in the future that don't try to rewrite the binary. I think having each test determine what it should do is the best route for now. |
|
@kupsch I marked it as disabled instead of skipped. |
Static rewriting isn't supported on aarch64.