Skip to content

[LLD][COFF] Implement /nodbgdirmerge #141712

Open
@namazso

Description

@namazso

MSVC link has a hidden flag called /nodbgdirmerge. It causes debug directory contents to be emitted into a .cvinfo section, rather than just .rdata. It would be great if lld-link supported the same flag.

In LLD the section to use is picked here:

debugInfoSec = config->mingw ? buildidSec : rdataSec;

The two options are either adding something in there to make a new section, or just always making a new .cvinfo instead and using the builtin default merges from here to merge it into rdata by default:

parseMerge(".idata=.rdata");

I'm not sure which would be the better option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions