diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2023-03-23 00:15:17 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-04-02 13:51:34 +0200 |
commit | 4537a11229eb0bd8771603d4718da53cea847736 (patch) | |
tree | 9d459e6c071308adc2b9b555e05a5825bd589c71 /ld/ldmisc.h | |
parent | libctf: fix assertion failure with no system qsort_r (diff) | |
download | binutils-gdb-gentoo/binutils-2.40-4.tar.gz binutils-gdb-gentoo/binutils-2.40-4.tar.bz2 binutils-gdb-gentoo/binutils-2.40-4.zip |
libctf: get the offsets of fields of unnamed structs/unions rightgentoo/binutils-2.40-4
We were failing to add the offsets of the containing struct/union
in this case, leading to all offsets being relative to the unnamed
struct/union itself.
libctf/
PR libctf/30264
* ctf-types.c (ctf_member_info): Add the offset of the unnamed
member of the current struct as necessary.
* testsuite/libctf-lookup/unnamed-field-info*: New test.
(cherry picked from commit bddd62e188c120600857209ede4a23ab3ccc4cac)
Diffstat (limited to 'ld/ldmisc.h')
0 files changed, 0 insertions, 0 deletions