Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 May 2020 17:16:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 246322] ld.bfd error on releng/11.4 confuses many autoconf scripts
Message-ID:  <bug-246322-29464-W01bw6HkU2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246322-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246322-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246322

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #3 from Dimitry Andric <dim@FreeBSD.org> ---
As emaste noted, it looks exactly like this very old DragonFly issue:
https://bugs.dragonflybsd.org/issues/2511. The workaround they used eventua=
lly
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 wi=
th
the .eh_frame section in crt1.o. Dwarfdump gives me:

.eh_frame

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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246322-29464-W01bw6HkU2>