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
relro entry missing in JSON output of "iIj" #19964
Comments
@trufae I believe the salient part is this:
|
Imho it will be more correct to say relro:no. But this is just an elf specific thing. It doesnt exist in any other file format. So in case the value is not ther its not printed. do we want to define json schemas for every command now? |
My only concern here is that relro only makes sense on elf. So i guess the fix for this relro:no must be done in the elf plugin instead of the json printer. Anyone? |
sorry for the delay, i just had 5 spare minutes to check this issue, and pushed a pr fixing it. |
Environment
date
Sun 17 Apr 2022 02:15:05 PM IST
r2 -v
radare2 5.4.2 0 @ linux-x86-64 git.5.4.2
commit: 5.4.2 build: 2021-09-26__11:56:56
uname -ms
Linux x86_64
Description
For two different binaries, I fired the "iIj" command after "aaa". One of them showed a missing "relro" entry as shown below. Is it not supposed to be there as it becomes easy to process the JSON outcome in a standardized way. Expected to have a "relro": "" blank entry atleast. Also no idea on why its not able to extract the relro for the binary.
Test
Attached zip format of the ELF binary samples
binary without relro
binary with relro
> aaa
> iIj
Output of
ilj
from two different binariesThe text was updated successfully, but these errors were encountered: