header-abi-dumper: Refactor argv fixes

This commit extract the logic for argv fixes so that workarounds can be
kept in another source file.

Bug: 77161122
Test: Build header-abi-dumper, copy to prebuilts/clang-tools, and
rebuild bionic.

Change-Id: I74eb7cb001f854062530f5770ce1e01c8bf996e9
Merged-In: I74eb7cb001f854062530f5770ce1e01c8bf996e9
(cherry picked from commit 9e26331f3ccc6333bd39b774e84eaa55105150dc)
4 files changed