Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m curious why this needs to be code injection and not, like, a shell script?
 help



Because...it's official behaviour that is fully supported by clang? If you want to add a hook on compilation start, it's literally the documented way - you include your own dlib with necessary overrides and then you can call your own methods at each compilation step. Not even sure how you'd do it with a shell script? You need to have knowledge of all the compilation and linking units, which....you have from within Clang.

What's the interface this uses? I don't think I am familiar with it

There's a very good explanation in this presentation :-)

https://static.linaro.org/connect/yvr18/presentations/yvr18-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: