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

Fix build on non-exec environments #3635

Open
radare opened this issue Oct 31, 2015 · 7 comments
Open

Fix build on non-exec environments #3635

radare opened this issue Oct 31, 2015 · 7 comments

Comments

@radare
Copy link
Collaborator

radare commented Oct 31, 2015

sh configure-plugins instead of ./configure-plugins and so on..

ubuntuphone is one of those targets, where $HOME is mounted without exec permissions

@dequis
Copy link
Contributor

dequis commented Feb 27, 2016

I don't think this is possible, libr/{anal,bin,syscall}/d/Makefile have to execute the built sdb binary

@radare
Copy link
Collaborator Author

radare commented Feb 27, 2016

that's right, even mmap(PROT_EXEC) fails when trying to map a file in the
noexec mounted path. a solution for this would be to not generate those at
compile time. we can generate them in users's home from system global files.
this way system files will be text-only, portable and generic, and user
directory will contain stuff that can be broken, removed or changed without
major issues. This also complicates a bit the model.. but it can be an option

On Feb 27 2016, at 4:56 pm, dx <notifications@github.com> wrote:

I don't think this is possible, libr/{anal,bin,syscall}/d/Makefile have to
execute the built sdb binary


Reply to this email directly or [view it on GitHub](https://github.com/radare/
radare2/issues/3635#issuecomment-189673126).![](https://github.com/notificatio
ns/beacon/AA3-lsFhnC1Y2PwqshsLny8h08MQklZTks5pob6_gaJpZM4GZaRb.gif)

@XVilka
Copy link
Contributor

XVilka commented Jul 25, 2017

This a related a bit with #7989 - by generating SDB during the runtime rather than compilation.

@dequis
Copy link
Contributor

dequis commented Jul 25, 2017

Does this even matter anymore? Isn't ubuntuphone a dead platform?

@radare
Copy link
Collaborator Author

radare commented Jul 25, 2017 via email

@XVilka XVilka added the Android label Jun 21, 2018
@ret2libc
Copy link
Contributor

Should you build on those environment? IMHO you should cross-build on another platform and then just execute radare2 from there. Am I missing anything?

@trufae
Copy link
Collaborator

trufae commented Jun 24, 2020

this implies running shellscripts with 'sh ./foo' instead of './foo' and finding a way to generate the sdb files without executing sdb (maybe sdb can load the .txt if the .sdb is not found and autogenerate it on the first run if needed and it's fine for the permissions?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants