[all-commits] [llvm/llvm-project] b18293: [MC][COFF] Add COFF section flag "Info"

chenglin.bi via All-commits all-commits at lists.llvm.org
Tue Oct 18 19:33:14 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b18293edc39f216339c64dccc6c9abf9eb1aab11
  Author: chenglin.bi <chenglin.bi at linaro.org>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M llvm/lib/MC/MCParser/COFFAsmParser.cpp
    M llvm/lib/MC/MCSectionCOFF.cpp
    M llvm/test/CodeGen/ARM/global-merge-dllexport.ll
    M llvm/test/MC/COFF/linker-options.ll
    M llvm/test/MC/COFF/section.s

  Log Message:
  [MC][COFF] Add COFF section flag "Info"

For now, we have not parse section flag `Info` in asm file. When we emit a section with info flag to asm, then compile asm to obj we will lose the Info flag for the section.
The motivation of this change is ARM64EC's hybmp$x section. If we lose the Info flag MSVC link will report a warning:
`warning LNK4078: multiple '.hybmp' sections found with different attributes`

Reviewed By: efriedma

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

More information about the All-commits mailing list