-
Notifications
You must be signed in to change notification settings - Fork 28
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
sectcreate Info.plist #60
Comments
Hey, For testing in my debugger project, I was using I was just going to look at the task stuff too, so let me know if you have anything done on it. I was going to start with I can't chime in on how active the project is however as I've only contributed once. |
@bythebook oh right so you just used the build.rs to copy it into the same directory as the executable? I'm trying to use this to get cargo-tarpaulin working on mac so I just want to be able to add/remove breakpoints and step/continue them. So if you've got any resources that could help with achieving that I'd also be grateful to be pointed in the right direction 😄 |
Sorry for the delay, but I tracked back through what I'd done before and wrote it up. I decided to throw up a blog so that when I go through stuff like this I can remember what I did! Blog is below but the tldr; is you can use the Rust [staticlib] crate type to bundle all Rust dependencies into one unlinked file that you can link with gcc. The downside is
Full details here. |
@bythebook it looks the link to your blog post with the answer I'm looking for is a dead link :) can you point me to it? Thanks! |
@awakecoding should be back up now, although you've probably moved on since. This was always a less-than-ideal solution as far as I was concerned. I was having a look at the 'bootimage' crate recently and saw how it created a cargo plugin to build the user's crate and then link it together with a bootloader into one OS bootable image. |
Back in Aug 2020 I created |
So I'm trying to do the equivalent of
gcc task_for_pid.c -sectcreate __TEXT __info_plist ./Info.plist -o task_for_pid
from https://attilathedud.me/mac-os-x-el-capitan-10-11-and-task_for_pid/ and try to use some of the task APIs in rust. But I can't figure out how to link it in because apparently you can't retrospectively append or prepend to the object file. So if there's any guidance on how that works it would be appreciated!Also how active is this project? Just because I saw the task stuff is partially implemented so I could potentially fill in some implementations while I'm working on my stuff if I notice any missing
The text was updated successfully, but these errors were encountered: