Firmware of Silead Touchscreen Controller for Jumper EZpad 6 Pro.
Révision | fa750192a3b52c56afc491e446228cdae09ce1bb (tree) |
---|---|
l'heure | 2016-11-13 19:28:29 |
Auteur | Hans de Goede <j.w.r.degoede@gmai...> |
Commiter | Hans de Goede |
fw_extractor: Fix fw_extractor not working on some files
Some android.ko files have a .rodata section which shows
in readelf like this:
Notice the space between "[" and "9]" this was causing fw_extractor
to calculate the .rodata offset wrongly. This commit fixes this.
@@ -20,9 +20,10 @@ if len(args) != 1: | ||
20 | 20 | |
21 | 21 | rodata = args[0] |
22 | 22 | |
23 | -args = rodata.split() | |
23 | +args = rodata.split(']') | |
24 | +args = args[1].split() | |
24 | 25 | |
25 | -offset = int(args[4], 16) | |
26 | +offset = int(args[3], 16) | |
26 | 27 | |
27 | 28 | print ".rodata offset is ", offset, "\n" |
28 | 29 |