-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ELF: can't load symbols from the linux kernel image #1251
Comments
@radare sry, fixed link |
The file isn't loaded completely, r_bin_load_io_at_offset_as sets the maximum size to 0x8000000 bytes and just truncates the file if it's bigger instead of returning an error so that the other code path loads it entirely. |
Funnily, my kernel image is PE
|
This will be probably fixed with the lemon elf parser |
I have recently started to read rbin again and ive been thinking in some optimizations and stuff to change, But as i said, changes in rbin require time for fuzzing and covfixing, thelemon parser doesnt gives any benefit to r2 because it is incomplete, it is known to crash with some binaries and most of the bugs cant be prooved because there are no tests. Both elf parsers can coexist in current r2. I have already suggested several months ago to rewrite that parser with a different name to have both in master for proper testing without loosing features or so. I already said several times i was not going to switch to a new elf parser before the release. And im not going to change it if simple tests just fail. His codebase looks cleaner, but its incomplete and have several bugs, which the current one does not. Also, ive got a huge speedup using sdb in rbin for some tests, and i think that sdb can bring several other benefits to rbin, so both parsers will be deprecated soon or late. (Or just taken as base)
|
Also, the elf-ng parser cant load a PE file and understand it have a payload in ELF, in fact nobody can do that. Kernels are usually not that easy to handle because of the loader/compressed payloads. |
Anyone tried so far with the latest elf parser in r2-git? there have been several related enhacements |
fixed. Though lighter regression test should be added |
Here is the image:
http://xvilka.me/vmlinux-3.13.0-24-generic
'is' output is 0 (zero)
The text was updated successfully, but these errors were encountered: