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

sflib ARM libraries missing? #2500

Closed
0x27 opened this issue May 5, 2015 · 9 comments
Closed

sflib ARM libraries missing? #2500

0x27 opened this issue May 5, 2015 · 9 comments
Labels
ARM ARM architecture support issues ragg2

Comments

@0x27
Copy link

0x27 commented May 5, 2015

Was test driving ragg2-cc, noticed it seemed to have an ARM output option. It seems the ARM headers/libraries are actually missing (current, as of this issue opening-time git version of r2) or not yet present? Was basically experimenting with the shellcode generation (which works amazingly for x86 so far! beautiful!)

$ ragg2-cc -c -a arm bind_syscallonly.c
cc1: fatal error: /usr/include/libr/sflib/linux-arm-64/sflib.h: No such file or directory
compilation terminated.
$ ragg2-cc -c -a arm -b 32 bind_syscallonly.c
cc1: fatal error: /usr/include/libr/sflib/linux-arm-32/sflib.h: No such file or directory
compilation terminated.
$

Not sure if PEBKAC or actual issue, but figured I'd flag it anyway :)

@radare
Copy link
Collaborator

radare commented May 5, 2015

Yeah, we should include and test more of those backends. We can take those from @whatsbcn 's shellforge project. https://github.com/whatsbcn/shellforge4 in which i based the implementation in r2.

Do you mind to send a pullreq?

@0x27
Copy link
Author

0x27 commented May 6, 2015

Will fork and do some testing today and send a PR if I get it working in the next couple days. If I can get ARM to work, probably can get other architectures working too, but might not be able to effectively test those (maybe Qemu...) :)

@radare
Copy link
Collaborator

radare commented May 6, 2015

you’ll probably need to set CC environment pointing to your favourite arm C compiler when doing -a arm.

Would be cool to make ragg2-cc support most common toolchains like the android NDK or the one shipped by Apple (CC="xcrun —sdk iphoneos gcc -arch armv7")

this can be easily added. and i’m looking forward to support it

thanks!

On 06 May 2015, at 10:27, David Davidson notifications@github.com wrote:

Will fork and do some testing today and send a PR if I get it working in the next couple days. If I can get ARM to work, probably can get other architectures working too, but might not be able to effectively test those (maybe Qemu...) :)


Reply to this email directly or view it on GitHub #2500 (comment).

@0x27
Copy link
Author

0x27 commented May 18, 2015

Hey,
Was preparing for a workshop last couple days, didn't get a chance to properly attempt this. Going to give it a try using the uclibc ARM GCC tonight and the sflib libraries now that have had time to look over how it works :)

@radare
Copy link
Collaborator

radare commented May 18, 2015

cool! let me know if you have any question or problem

On 18 May 2015, at 12:51, David Davidson notifications@github.com wrote:

Hey,
Was preparing for a workshop last couple days, didn't get a chance to properly attempt this. Going to give it a try using the uclibc ARM GCC tonight and the sflib libraries now that have had time to look over how it works :)


Reply to this email directly or view it on GitHub #2500 (comment).

@radare
Copy link
Collaborator

radare commented May 21, 2015

We are going to release next week, and i will find this feature really interesting to be ready, i can have a look at it too. But it will be great if you could check this out this weekend if you have some spare time for ti. thanks!

@radare
Copy link
Collaborator

radare commented May 31, 2015

ping?

@Maijin Maijin added the bug label Jun 4, 2015
@Maijin Maijin added the ARM ARM architecture support issues label Oct 25, 2016
@alvarofe
Copy link
Contributor

alvarofe commented Mar 8, 2017

I think this is more related with ragg2 than with arm

@Maijin Maijin added the ragg2 label Mar 8, 2017
@radare
Copy link
Collaborator

radare commented Mar 9, 2017

I think we can close this. Sflib is just a collection of includes. It requires no libs at all. And its important to note that sflib supports arm and arm64 already

@radare radare closed this as completed Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM ARM architecture support issues ragg2
Projects
None yet
Development

No branches or pull requests

4 participants