diff options
| author | 2018-02-28 13:05:39 -0800 | |
|---|---|---|
| committer | 2018-02-28 15:04:59 -0800 | |
| commit | dfce764476b6be22907d555097b7346cfa16f0ca (patch) | |
| tree | 0a35c3dd22cefeb0068f341b5739857872860a86 /python/python.go | |
| parent | 0c74ad9381e33545e77596dd0e9208e5e215eae8 (diff) | |
Fix finding next symbol when multiple symbols have the same address
Some exe files have a .data symbol at the same address as the
soong_build_number symbol. If the .data symbol is after
soong_build_number in the symbol list, symbol_inject would think
the end address was the same as the start address, and use
uint32(-1) as the size.
Use sort.Search to find the first symbol whose section number is
the same as the target symbol, but whose address is higher than
the target symbol.
Test: manual
Change-Id: I51d6e53c6b906222ba68c5cf93be944843e23550
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions