Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2020 09:36:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251251] --cref on ld.lld writes the cref table to stdout even with -Map=filename
Message-ID:  <bug-251251-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 251251
           Summary: --cref on ld.lld writes the cref table to stdout even
                    with -Map=3Dfilename
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: janm@transactionware.com

The --cref option on ld.lld only seems to write to stdout, ignoring the
-Map=3Dfilename option. This is a change from GNU ld.

To reproduce, compile and link any code with --cref, for example:

    echo 'int main() { return 0; }' > test.c
    cc -Wl,-Map=3Dtest.map -Wl,--cref test.c

The cross reference table is emitted on stdout instead of being written to
test.map.

--=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-251251-227>