• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Firmware of Silead Touchscreen Controller for Jumper EZpad 6 Pro.


Commit MetaInfo

修订版fa750192a3b52c56afc491e446228cdae09ce1bb (tree)
时间2016-11-13 19:28:29
作者Hans de Goede <j.w.r.degoede@gmai...>
CommiterHans de Goede

Log Message

fw_extractor: Fix fw_extractor not working on some files

Some android.ko files have a .rodata section which shows
in readelf like this:

[ 9] .rodata PROGBITS 00000000 005bbc 052cfc 00 A 0 0 4

Notice the space between "[" and "9]" this was causing fw_extractor
to calculate the .rodata offset wrongly. This commit fixes this.

更改概述

差异

--- a/tools/fw_extractor
+++ b/tools/fw_extractor
@@ -20,9 +20,10 @@ if len(args) != 1:
2020
2121 rodata = args[0]
2222
23-args = rodata.split()
23+args = rodata.split(']')
24+args = args[1].split()
2425
25-offset = int(args[4], 16)
26+offset = int(args[3], 16)
2627
2728 print ".rodata offset is ", offset, "\n"
2829