mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 08:46:06 +00:00

Currently the address reported by binutils for a global is its index; but its offset (in the file or section) is more useful for binary size attribution. This PR treats globals similarly to functions, and tracks their offset and size. It also centralizes the logic differentiating linked from object and dylib files (where section addresses are 0).