Store fields for gnu_hash separately

Kindle app relies on soinfo's sysv hash
  fields while linking native libraries.

  This change allows to keep sysv hash fields
  intact for the libraries linked with --hash-style=both.

Bug: 19059885
Change-Id: I12528652955638f1a6586bda99e111bb1c8aa7a3
This commit is contained in:
Dmitriy Ivanov
2015-03-09 12:02:02 -07:00
committed by Dimitry Ivanov
parent edc1d3e3c6
commit 3597b8055d
2 changed files with 29 additions and 20 deletions

View File

@@ -309,6 +309,10 @@ struct soinfo {
size_t strtab_size_;
// version >= 2
size_t gnu_nbucket_;
uint32_t* gnu_bucket_;
uint32_t* gnu_chain_;
uint32_t gnu_maskwords_;
uint32_t gnu_shift2_;
ElfW(Addr)* gnu_bloom_filter_;