[PATCH] D69829: [LLD] Extend /section to be compatible to MSVC link.exe

Yaron Dinkin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 15:25:00 PST 2019


ydinkin created this revision.
ydinkin added a reviewer: ruiu.
ydinkin added a project: lld.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

MSVC link.exe implements the /section flag for modification of section attributes.
Before, lld-link only supported rudimentary usage of said flag, which prevented
fine-grained control such as disabling attributes and overriding access.
Now, it is compatible with MSVC link.exe, including undocumented but relied upon behaviors.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D69829

Files:
  lld/COFF/Chunks.h
  lld/COFF/Config.h
  lld/COFF/DriverUtils.cpp
  lld/COFF/Writer.cpp
  lld/COFF/Writer.h
  lld/test/COFF/section.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69829.227792.patch
Type: text/x-patch
Size: 7371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191104/31adab58/attachment.bin>


More information about the llvm-commits mailing list