[all-commits] [llvm/llvm-project] 745eb0: [LLD] [MinGW] Implement the --no-seh flag

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Jul 28 11:08:58 PDT 2020


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

  Changed paths:
    M lld/COFF/Config.h
    M lld/COFF/Driver.cpp
    M lld/COFF/Options.td
    M lld/COFF/Writer.cpp
    M lld/MinGW/Driver.cpp
    M lld/MinGW/Options.td
    A lld/test/COFF/noseh.s
    M lld/test/MinGW/driver.test

  Log Message:
  -----------
  [LLD] [MinGW] Implement the --no-seh flag

Previously this flag was just ignored. If set, set the
IMAGE_DLL_CHARACTERISTICS_NO_SEH bit, regardless of the normal safeSEH
machinery.

In mingw configurations, the safeSEH bit might not be set in e.g. object
files built from handwritten assembly, making it impossible to use the
normal safeseh flag. As mingw setups don't generally use SEH on 32 bit
x86 at all, it should be fine to set that flag bit though - hook up
the existing GNU ld flag for controlling that.

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




More information about the All-commits mailing list