[all-commits] [llvm/llvm-project] 343ffa: [LLD] [COFF] Fix mingw comdat associativity for le...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Jul 27 07:32:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 343ffa70fc4c55f4dc0d717cf8c168865beaa9c4
      https://github.com/llvm/llvm-project/commit/343ffa70fc4c55f4dc0d717cf8c168865beaa9c4
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-07-27 (Mon, 27 Jul 2020)

  Changed paths:
    M lld/COFF/InputFiles.cpp
    M lld/test/COFF/associative-comdat-mingw-i386.s
    A lld/test/COFF/associative-comdat-mingw-weak.s

  Log Message:
  -----------
  [LLD] [COFF] Fix mingw comdat associativity for leader symbols with a different name

For a weak symbol func in a comdat, the actual leader symbol ends up
named like .weak.func.default*. Likewise, for stdcall on i386, the symbol
may be named _func at 4, while the section suffix only is "func", which the
previous implementation didn't handle.

This fixes unwinding through weak functions when using
-ffunction-sections in mingw environments.

Differential Revision: https://reviews.llvm.org/D84607




More information about the All-commits mailing list