platform_build_soong/cmd/symbol_inject
Colin Cross 8673b5b959 Rewrite symbol_inject to be testable
Parse the machine-specific symbol tables into a custom symbol table
object and use a single function to find the offset and size of the
symbol in the custom table.  Make the functions to convert a
machine-specific symbol table into the custom table also take mocks,
and provide functions to dump mocks from real files.  Add tests
that take the mocks and verify they produce the right offset and
size.

Test: cmd/symbol_inject/*_test.go
Change-Id: I25654032b5017dd13a9a1fe29f8b8826ce5bc82b
2018-03-02 16:47:13 -08:00
..
Android.bp Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
elf.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
elf_symboldata_test.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
elf_test.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
macho.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
macho_symboldata_test.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
macho_test.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
pe.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
pe_symboldata_test.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
pe_test.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00
symbol_inject.go Rewrite symbol_inject to be testable 2018-03-02 16:47:13 -08:00