.gdb_index sections can be very large. When you are compiling
multi-gibibyte executables, they can be larger than 1 GiB. The previous
implementation of .gdb_index seems to consume too much memory.
This patch is to reduce the memory consumption by eliminating temporary
objects.
This can be a separate change.