https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246322

Dimitry Andric <d...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |d...@freebsd.org

--- Comment #3 from Dimitry Andric <d...@freebsd.org> ---
As emaste noted, it looks exactly like this very old DragonFly issue:
https://bugs.dragonflybsd.org/issues/2511. The workaround they used eventually
was to compile the crt objects with -fno-asynchronous-unwind-tables.

But this is very likely a ld.bfd bug, as there seems to be nothing wrong with
the .eh_frame section in crt1.o. Dwarfdump gives me:

.eh_frame

fde:
<    0><0x00000020:0x00000039><_fini><cie offset 0x0000001c::cie index    
0><fde offset 0x00000018 length: 0x00000018>
       <eh aug data len 0x0>
        0x00000020: <off cfa=04(r4) > <off r8=-4(cfa) >
        0x00000023: <off cfa=04(r4) > <off r8=-4(cfa) >
        0x00000025: <off cfa=04(r5) > <off r5=-8(cfa) > <off r8=-4(cfa) >
<    1><0x00000074:0x000001a3><><cie offset 0x0000001c::cie index     1><fde
offset 0x0000004c length: 0x0000001c>
       <eh aug data len 0x0>
        0x00000074: <off cfa=04(r4) > <off r8=-4(cfa) >
        0x00000075: <off cfa=08(r4) > <off r5=-8(cfa) > <off r8=-4(cfa) >
        0x00000077: <off cfa=08(r5) > <off r5=-8(cfa) > <off r8=-4(cfa) >
        0x0000007d: <off cfa=08(r5) > <off r3=-12(cfa) > <off r5=-8(cfa) > <off
r6=-20(cfa) > <off r7=-16(cfa) > <off r8=-4(cfa) >
<    2><0x000001c4:0x00000297><><cie offset 0x0000003c::cie index     1><fde
offset 0x0000006c length: 0x00000024>
       <eh aug data len 0x0>
        0x000001c4: <off cfa=04(r4) > <off r8=-4(cfa) >
        0x000001c5: <off cfa=08(r4) > <off r5=-8(cfa) > <off r8=-4(cfa) >
        0x000001c7: <off cfa=08(r5) > <off r5=-8(cfa) > <off r8=-4(cfa) >
        0x000001cd: <off cfa=08(r5) > <off r3=-12(cfa) > <off r5=-8(cfa) > <off
r6=-20(cfa) > <off r7=-16(cfa) > <off r8=-4(cfa) >
        0x00000296: <off cfa=04(r4) > <off r3=-12(cfa) > <off r5=-8(cfa) > <off
r6=-20(cfa) > <off r7=-16(cfa) > <off r8=-4(cfa) >
<    3><0x000002cc:0x00000311><><cie offset 0x00000064::cie index     1><fde
offset 0x00000094 length: 0x00000020>
       <eh aug data len 0x0>
        0x000002cc: <off cfa=04(r4) > <off r8=-4(cfa) >
        0x000002cd: <off cfa=08(r4) > <off r5=-8(cfa) > <off r8=-4(cfa) >
        0x000002cf: <off cfa=08(r5) > <off r5=-8(cfa) > <off r8=-4(cfa) >
        0x000002d0: <off cfa=08(r5) > <off r5=-8(cfa) > <off r6=-12(cfa) > <off
r8=-4(cfa) >
        0x000002ed: <off cfa=04(r4) > <off r5=-8(cfa) > <off r6=-12(cfa) > <off
r8=-4(cfa) >
        0x000002f2: <off cfa=08(r5) > <off r5=-8(cfa) > <off r6=-12(cfa) > <off
r8=-4(cfa) >

cie:
<    0> version                         1
        cie section offset              0 0x00000000
        augmentation                    zR
        code_alignment_factor           1
        data_alignment_factor           -4
        return_address_register         8
        eh aug data len 0x1 bytes 0x1b
        bytes of initial instructions   7
        cie length                      20
        initial instructions
         0 DW_CFA_def_cfa r4 4
         3 DW_CFA_offset r8 -4
         5 DW_CFA_nop
         6 DW_CFA_nop
<    1> version                         1
        cie section offset              52 0x00000034
        augmentation                    zR
        code_alignment_factor           1
        data_alignment_factor           -4
        return_address_register         8
        eh aug data len 0x1 bytes 0x1b
        bytes of initial instructions   7
        cie length                      20
        initial instructions
         0 DW_CFA_def_cfa r4 4
         3 DW_CFA_offset r8 -4
         5 DW_CFA_nop
         6 DW_CFA_nop

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to