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

Having trouble compiling (jump-patch.h) #24

Open
goop32 opened this issue Jan 30, 2018 · 3 comments
Open

Having trouble compiling (jump-patch.h) #24

goop32 opened this issue Jan 30, 2018 · 3 comments

Comments

@goop32
Copy link

goop32 commented Jan 30, 2018

Hey there. I'm playing around with this and I'm unable to get it to finish. The error it leaves me with is:

In file included from ./lib/hook-functions.c:7:
./lib/arm/jump-patch.h:17:40: error: incompatible integer to pointer conversion
initializing 'void *' with an expression of type 'uint_tptr'
(aka 'unsigned int') [-Werror,-Wint-conversion]
struct assemble_ctx actx = {codep, pc, arch.pc_low_bit, 0xe};
_________________________________________^~
1 error generated.

Thanks for the cool stuff!
edit: disregard the underscores, needed them for the symbols to stay in place

@comex
Copy link
Owner

comex commented Jan 30, 2018

yeah, that looks broken, sorry. I haven't touched this codebase in quite a while.

I think it might work to change it to

struct assemble_ctx actx = {codep, *codep, pc, arch.pc_low_bit, 0xe};

@goop32
Copy link
Author

goop32 commented Jan 30, 2018 via email

@shinvou
Copy link

shinvou commented Jan 30, 2018

@soymjolk That happens because, well

ld: symbol(s) not found for architecture arm64

these symbols are gone in iOS 11. See #22 for a fix (although I'd use ifdef for the fix, seems cleaner).

Maybe @comex can just update these two things and commit them. I'd probably take like five minutes.

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

No branches or pull requests

3 participants