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

ValueError: 2 candidates for kallsyms_token_table in kernel image #21

Closed
csersoft opened this issue Nov 26, 2020 · 2 comments
Closed

ValueError: 2 candidates for kallsyms_token_table in kernel image #21

csersoft opened this issue Nov 26, 2020 · 2 comments

Comments

@csersoft
Copy link

csersoft commented Nov 26, 2020

Hello, I encountered a problem when using this tool, the output is as follows:

$ vmlinux-to-elf kernel.uimage kernel.elf
[+] Kernel successfully decompressed in-memory (the offsets that follow will be given relative to the decompressed binary)
[+] Version string: Linux version 2.6.32.61-EMBSYS-CGEL-4.03.20.P1.F0 (root@A000001) (gcc version 4.5.2 2015-05-12 ZTE Embsys-TSP Vn (GCC) ) #102 Thu Jan 25 05:19:23 CST 2018
[+] Guessed architecture: armle successfully in 3.70 seconds
Traceback (most recent call last):
File "/usr/local/bin/vmlinux-to-elf", line 67, in
args.base_address, args.file_offset
File "/usr/local/bin/vmlinux_to_elf/elf_symbolizer.py", line 44, in init
kallsyms_finder = KallsymsFinder(file_contents, bit_size)
File "/usr/local/bin/vmlinux_to_elf/kallsyms_finder.py", line 193, in init
self.find_kallsyms_token_table()
File "/usr/local/bin/vmlinux_to_elf/kallsyms_finder.py", line 411, in find_kallsyms_token_table
raise ValueError('%d candidates for kallsyms_token_table in kernel image' % len(candidates_offsets))
ValueError: 2 candidates for kallsyms_token_table in kernel image

marin-m added a commit that referenced this issue Nov 26, 2020
…lsyms_token_table" (prefer setups when the next entry in the token table starts with a printable character)
@marin-m
Copy link
Owner

marin-m commented Nov 26, 2020

Hello,

I have pushed a fix in commit 0c67469. This seems to work now.

Regards,

@marin-m marin-m closed this as completed Nov 26, 2020
@csersoft
Copy link
Author

Thanks!

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

2 participants