llvm-project/lld/test/pecoff
Rui Ueyama 145ef0186c [PECOFF] Fix /include option in .drectve section.
/INCLUDE arguments passed as command line options are handled in the
same way as Unix -u. All option values are converted to an undefined
symbol and added to a dummy input file, so that the specified symbols
are resolved.

One tricky thing on Windows is that the option is also allowed to
appear in the object file's directive section. At the time when
it's being read, all (regular) command line options have already
been processed. We cannot add undefined atoms to the dummy file
anymore.

Previously, we added such /INCLUDE to a set that has already been
processed. As a result the options were ignored.

This patch fixes the issue. Now, /INCLUDE symbols in the directive
section are handled as real undefined symbol in the COFF file.
We create an undefined symbol for each /INCLUDE argument and add
it to the file being parsed.

llvm-svn: 214824
2014-08-04 23:48:57 +00:00
..
Inputs [PECOFF] Fix /include option in .drectve section. 2014-08-04 23:48:57 +00:00
alignment.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
alternatename.test [PECOFF] Fix entry point functions selection 2014-07-23 00:57:57 +00:00
associative.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
base-reloc.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
baseaddr.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
bss-section.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
comdat.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
common-symbol.test [PECOFF] Fix common symbol alignment. 2014-04-09 01:01:51 +00:00
dll.test [PECOFF] Set DLL bit in PE header if DLL. 2014-07-17 00:22:26 +00:00
dosstub.test [PECOFF] Infer subsystem from the entry point function. 2013-11-25 02:00:00 +00:00
drectve.test [PECOFF] Fix /include option in .drectve section. 2014-08-04 23:48:57 +00:00
dynamic.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
dynamicbase.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
entry.test [PECOFF] Fix entry point address. 2014-07-23 20:51:04 +00:00
export-warning.test Add a blank line to FileCheck input. 2014-01-09 02:47:52 +00:00
export.test [PECOFF] Find symbols with @number suffix for dllexported symbols 2014-05-14 06:29:32 +00:00
exportlib.test [PECOFF] Add a test for r197803. 2014-01-09 01:11:48 +00:00
exportlib2.test [PECOFF] Resolve dllexported symbols. 2014-05-09 22:19:49 +00:00
grouped-sections.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
hello.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
help.test [PECOFF] Fix /? option and add a test for the flag. 2013-09-24 17:59:30 +00:00
imagebase.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
importlib.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
include.test [ELF] Support --defsym option to define an absolute symbol. 2014-03-28 19:02:06 +00:00
lib.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
libarg.test [PECOFF] Fix arguments passed to lib.exe. 2014-03-14 05:04:08 +00:00
localyimported.test [PECOFF] Fix _imp_ implicit symbols. 2014-04-29 00:32:00 +00:00
long-section-name.test [PECOFF] Truncate long section name. 2013-12-17 06:15:09 +00:00
machinetype.test [PECOFF] Handle objects with unknown machine type header value. 2014-03-13 05:12:36 +00:00
manifest.test [PECOFF] Add one more test for r206633. 2014-04-18 20:44:05 +00:00
merge-largest.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
merge-same-size.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
multi.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
noentry.test [PECOFF] Add a test for /noentry. 2013-12-27 08:19:21 +00:00
nonstandard-sections.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
options.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
pe32plus.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
reloc.test [PECOFF] Fix _imp_ implicit symbols. 2014-04-29 00:32:00 +00:00
reloc64.test [PECOFF] Discard .debug sections. 2014-05-21 05:56:31 +00:00
resource.test [PECOFF] Fix failing test. 2014-07-28 22:31:37 +00:00
responsefile.test [PECOFF] Print out command line if we have expanded response files. 2014-03-25 20:40:27 +00:00
safeseh.test [PECOFF] Add a test for /SAFESEH:NO for non-x86 machine type. 2014-02-27 00:05:43 +00:00
section-attribute.test [PECOFF] Set section characteristics based /section options. 2013-11-27 23:44:58 +00:00
section-renaming.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
seh.test [PECOFF] Discard .debug sections. 2014-05-21 05:56:31 +00:00
seh64.test [PECOFF] Sort x64 exception handler table. 2014-03-04 18:39:12 +00:00
subsystem.test [PECOFF] Infer subsystem from the entry point function. 2013-11-25 02:00:00 +00:00
trivial.test [PECOFF] Fix section header. 2014-07-31 22:40:35 +00:00
unknown-drectve.test [PECOFF] Report error if there's unknown flag in .drectve 2013-11-05 23:53:15 +00:00
weak-external.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00