platform_build_soong/cmd/symbol_inject
Colin Cross dfce764476 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
2018-02-28 15:04:59 -08:00
..
Android.bp Add a tool to inject data into an elf, macho, or PE symbol 2018-02-06 19:12:21 +00:00
elf.go Fix injecting data into a .o file 2018-02-20 17:54:20 +00:00
macho.go Fix finding next symbol when multiple symbols have the same address 2018-02-28 15:04:59 -08:00
pe.go Fix finding next symbol when multiple symbols have the same address 2018-02-28 15:04:59 -08:00
symbol_inject.go Add a tool to inject data into an elf, macho, or PE symbol 2018-02-06 19:12:21 +00:00