gdb index version was bumped from 7 to 8 by commit 796a7ff8234cfaa8ad1ab884c1c8dafe29b18d42.
The format doesn't change.
Accept version 8 so that we can dump .gdb_index built by the 'save gdb-index' command of gdb (Jan 2013 or newer). Manually verified the result is plausible:
mkdir dir; gdb a -batch -q -ex 'save gdb-index dir'; objcopy --add-section .gdb_index=dir/a.gdb-index --set-section-flags .gdb_index=readonly a b llvm-dwarfdump -gdb-index b
Personally, I'd prefer to have another binary file for version 8 than patching the existing one. What do you think?