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

Great Tool! What about adding ARM64 support (aarch64)? #2

Open
ronamin opened this issue May 31, 2015 · 0 comments
Open

Great Tool! What about adding ARM64 support (aarch64)? #2

ronamin opened this issue May 31, 2015 · 0 comments

Comments

@ronamin
Copy link

ronamin commented May 31, 2015

This worked and served well for ARM32 kernels. Thank You!!!
It was able to find and extract kallsyms (offset + function name). It was limited to known 6 patterns of kallsyms locations, but still was better than nothing.
Now, new devices are coming (Samsung S6 Series, for example) based on ARM64 (aarch64). It is UBOOT images, with uncompressed kernel. The tool does not work anymore.
I was trying to do some manual work and figured out following:

0xffffffc000206000 is offset of the first 3 kallsyms functions, so I was able to find where kallsyms_addresses table starts.
It was found at aarch64.img at offset from 0xc19800 to 0xc96088 (size is 510088 or 0x7C888). There are 0xF911 (63761) symbols (11 F9 00 00), and kallsyms_num_syms is located at 0xc96090 (after 0x78 (120) zero bytes after table ends).
Next data block of something starts at 0xc96190
Looks like all sections inside kernel are 32-byte aligned.
I was able to find some text part at 0x007d5f90.
Something that looks like some table (maybe not related) at 0x08403504.
Another table at 0x00e8eb20 - 0x00eb6a00.

Not found:
kallsyms_names - a list of length-prefixed byte arrays that encode indexes into the token table
kallsyms_token_table - a list of 256 zero-terminated tokens from which symbol names are built
kallsyms_token_index - 256 shorts pointing to the corresponding entry in kallsyms_token_table

Hope this helps..
Also, can you advise any good reading on topic?

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

1 participant