https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121411

--- Comment #11 from Martin Pirker <martin.pirker1 at chello dot at> ---
(In reply to Indu Bhagat from comment #8)
> (In reply to Martin Pirker from comment #4)
> 
> > Finally 'ld' is confused by ctf_lmember_t records.
> > 
> 
> Can you provide details / testcase on ld issue you see ? Thanks

I have proposed a fix on binutils/libctf
<https://sourceware.org/bugzilla/show_bug.cgi?id=33339>.

struct or union size is in bytes, member offsets in bits.

In my attachment (dummy.c), I use unique names to distinguish
them in the output.

gcc -O2 -gctf -o dummy dummy.c
objdump --ctf dummy
...
objdump: warning: cannot visit members dumping type 0xa
objdump: warning: cannot visit members dumping type 0xc
objdump: warning: cannot visit members dumping type 0xe
objdump: warning: cannot visit members dumping type 0x10

Reply via email to