Read corrrect auxiliary entry in AIX
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 27 Apr 2017 13:57:08 +0000 (15:57 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 27 Apr 2017 13:57:08 +0000 (15:57 +0200)
commit55bcecda5703eb4647165cb3ddb86aed63fd44d2
treeddf74dbcb03f635514412db5c09e6c86687ecf04
parent14f72d45a22f25f6d00a62fc03bcf9827df226f5
Read corrrect auxiliary entry in AIX

Fix handling of XCOFF function auxiliary entries, in particular when
the xlc -qfuncsect or gcc -ffunction-sections compiler option is used
in AIX.  Also handle C_WEAKEXT storage class.

gdb/
2016-10-21  Sangamesh Mallayya  <sangamesh.swamy@in.ibm.com>
    Ulrich Weigand  <uweigand@de.ibm.com>

* xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
is used in AIX.
(read_xcoff_symtab): Handle C_WEAKEXT storage class.
(process_xcoff_symbol): Likewise.
(scan_xcoff_symtab): Likewise.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
gdb/ChangeLog
gdb/xcoffread.c