[PATCH] [PECOFF] Handle .drectve section.

Rui Ueyama ruiu at google.com
Tue Jul 30 21:55:27 PDT 2013


Hi kledzik,

The .drectve section contains linker command line options, and the linker is
expected to interpret them as if they were given via the command line. In this
patch, the command line parser in the driver is called from the object file
reader to parse the string.

I think this patch is important, because this is the first step towards mutable
TargetInfo. We had a discussion about that on llvm-commits mailing list before.
I haven't removed "const" from the function signature yet. Instead, I just use
cast to remove "const". This is a temporary aid for an experiment. If we don't
see any issue with this mutable TargetInfo appraoch, I'll change the function
signature, and rename the class LinkerContext from TargetInfo.

http://llvm-reviews.chandlerc.com/D1246

Files:
  lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
  test/pecoff/Inputs/drectve.obj.yaml
  test/pecoff/drectve.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1246.1.patch
Type: text/x-patch
Size: 8659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130730/f0237a6c/attachment.bin>


More information about the llvm-commits mailing list