Fix a bug on gold linker.

Gold linker by default turns on the --fix-arm1176 option. It has
missing cases for TAG_CPU_ARCH_V8 and various other arm v8
architectures. The result of this causes gold using v4t stubs for
arm v8 cpus, which results in measurable code-size and performance
impact. See https://sourceware.org/bugzilla/show_bug.cgi?id=24642
for more details on the bug.

This patches extend the condition to be any TAGs larger than v7,
instead of checking the tag individually. It enables any future
updates on the tags. All the tag are defined in include/elf/arm.h.

Bug: b/134709902
Test: ./checkbuild.by passes, after the ../prebuilt/ndk/binutils is updated with newly built binutils.

Change-Id: I66277f62db1b1377b19f0e6d056f3b2d0a6f129b
1 file changed
tree: f7be769354b544093e21d9bc1b9813aa13f996ae
  1. binutils-2.27/
  2. build.py
  3. do_build.py
  4. OWNERS
  5. pylintrc