[Bug 246322] ld.bfd error on releng/11.4 confuses many autoconf scripts

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 9 19:44:47 UTC 2020


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

--- Comment #4 from Dimitry Andric <dim at FreeBSD.org> ---
In any case clang 8 does not produce any .cfi directives in crt*.o, while clang
9 and 10 do.

For instance /usr/obj/usr/src/lib/csu/i386/crt1_c.s with clang becomes:

        .text
        .file   "crt1_c.c"
                                        # Start of file scope inline assembly
        .ident  "$FreeBSD: stable/11/lib/csu/i386/crt1_c.c 292000 2015-12-08
19:32:58Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/crtbrand.c 339300
2018-10-11 00:26:15Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/ignore_init.c 339300
2018-10-11 00:26:15Z emaste $"
        .hidden _start1

                                        # End of file scope inline assembly
        .globl  _start1                 # -- Begin function _start1
        .p2align        4, 0x90
        .type   _start1, at function
_start1:                                # @_start1
# %bb.0:
...

With clang 10 this becomes:

       .text
        .file   "crt1_c.c"
                                        # Start of file scope inline assembly
        .ident  "$FreeBSD: stable/11/lib/csu/i386/crt1_c.c 292000 2015-12-08
19:32:58Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/crtbrand.c 339300
2018-10-11 00:26:15Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/ignore_init.c 339300
2018-10-11 00:26:15Z emaste $"
        .hidden _start1

                                        # End of file scope inline assembly
        .globl  _start1                 # -- Begin function _start1
        .p2align        4, 0x90
        .type   _start1, at function
_start1:                                # @_start1
        .cfi_startproc
# %bb.0:
...

The directives got turned on by emaste in
https://github.com/llvm/llvm-project/commit/cb1761465a0d, referring in his
commit message to bug 241562 ("failing test case:
lib.libexecinfo.backtrace_test.backtrace_fmt_basic").

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


More information about the freebsd-toolchain mailing list