platform_build_soong/cmd/symbols_map
Colin Cross 6285c65e3b symbols_map: don't error on bad elf files
There are cc_binary_prebuilt modules in the tree that are shell
scripts, and attempting to extract an elf ID from them results
in an error.  Ignore too short files and files missing the elf
magic header the same way we do for elf files without an elf ID.

Bug: 218888599
Test: Test_elfIdentifierFromReaderAt_BadElfFile
Change-Id: If7117925ca2371a8ee61ba3616372f6e9b0fab0e
2022-04-05 18:08:32 -07:00
..
symbols_map_proto Add a symbols_map tool for extracting identifiers from elf and r8 files 2022-04-04 15:53:38 -07:00
Android.bp Add a symbols_map tool for extracting identifiers from elf and r8 files 2022-04-04 15:53:38 -07:00
elf.go symbols_map: don't error on bad elf files 2022-04-05 18:08:32 -07:00
elf_test.go symbols_map: don't error on bad elf files 2022-04-05 18:08:32 -07:00
r8.go Add a symbols_map tool for extracting identifiers from elf and r8 files 2022-04-04 15:53:38 -07:00
r8_test.go Add a symbols_map tool for extracting identifiers from elf and r8 files 2022-04-04 15:53:38 -07:00
symbols_map.go Add a symbols_map tool for extracting identifiers from elf and r8 files 2022-04-04 15:53:38 -07:00
symbols_map_test.go Add a symbols_map tool for extracting identifiers from elf and r8 files 2022-04-04 15:53:38 -07:00