]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
PowerPC64 st_other decoding in readelf
authorAlan Modra <amodra@gmail.com>
Thu, 23 Aug 2018 08:04:13 +0000 (17:34 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 23 Aug 2018 14:53:27 +0000 (00:23 +0930)
commit14732552e70bcb0c85093c404a7091627eea4e38
tree5b7cae8c24f1780f7f534921e0afc3224048acbd
parent7dd36a6f1ca92cd4ca4776064c604cda7755bc44
PowerPC64 st_other decoding in readelf

localentry:1 is a valid encoding, so display it.  The patch also bails
out of get_ppc64_symbol_other when st_other bits besides the three
used for localentry offsets are set, to avoid hiding any such values.

* readelf.c (get_ppc64_symbol_other): Return NULL if st_other
field contains unrecognised or reserved values.  Handle
localentry:1 value.
binutils/ChangeLog
binutils/readelf.c