llvm-project/lld/test/COFF
David Majnemer 22dff0aafc [COFF] Don't hard-code the load configuration size
The load configuration directory is a structure whose size varies as the
OS gains additional functionality.  To account for this, the structure's
layout begins with a size field; this allows loaders to know which
fields are available.

However, LLD hard-coded the sizes (112 bytes for 64-bit and 64 for
32-bit).  This means that we might not inform the loader of all the
pertinent fields or we might claim that there are more fields than are
actually present.

To correctly account for this, the size field must be loaded from the
_load_config_used symbol.

N.B.  The COFF spec is either wrong or out of date, the load
configuration directory is not correctly documented in the
specification: it omits the size field.

llvm-svn: 263543
2016-03-15 09:48:27 +00:00
..
Inputs [opaque pointer type] update test cases for explicit pointee types on global aliases 2015-09-11 03:22:12 +00:00
alternatename.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
ar-comdat.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
armnt-blx23t.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
armnt-branch24t.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
armnt-entry-point.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
armnt-imports.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
armnt-mov32t-exec.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
armnt-movt32t.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
base.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
baserel.test COFF: Align sections to 512-byte boundaries on disk. 2015-08-11 23:09:00 +00:00
common.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
conflict.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
debug.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
defparser.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
delayimports.test COFF: /delayload:<DLLNAME> is case-insensitive. 2015-09-03 14:49:47 +00:00
delayimports32.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
dll.test COFF: Improve dllexported name mangling compatibility. 2015-08-31 08:43:21 +00:00
driver.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
entry-inference.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
entry-inference2.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
entry-inference32.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
entry-mangled.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
entrylib.ll COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
export-exe.test Exclude COFF/export-exe.test on non-Windows 2015-09-01 17:26:33 +00:00
export.test COFF: Update test for recent llvm-objdump change (r257539). 2016-01-12 23:29:42 +00:00
export32.test COFF: Improve dllexported name mangling compatibility. 2015-08-31 08:43:21 +00:00
failifmismatch.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
filetype.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
force.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
heap.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
hello32.test COFF: Align sections to 512-byte boundaries on disk. 2015-08-11 23:09:00 +00:00
help.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
icf-circular.test COFF: Fix ICF regression. 2015-09-20 20:19:12 +00:00
icf-circular2.test COFF: Enable ICF by default. 2015-09-16 16:41:38 +00:00
icf-different-align.test COFF: ICF should not merge sectinos if their alignments are not the same. 2015-09-25 16:50:12 +00:00
icf-local.test COFF: Non-external COMDAT sections sholud not be merged by ICF. 2015-12-03 02:23:33 +00:00
icf-simple.test COFF: /OPT should accept comma-separated multiple arguments. 2015-10-19 19:40:43 +00:00
imports-mangle.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
imports.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
include.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
include2.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
internal.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
invalid-obj.test COFF: Corrected error message if a section failed to load. 2015-09-13 20:22:22 +00:00
largeaddressaware.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
libpath.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
linkenv.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
lldmap.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
loadcfg.ll [COFF] Don't hard-code the load configuration size 2016-03-15 09:48:27 +00:00
loadcfg.test [COFF] Don't hard-code the load configuration size 2016-03-15 09:48:27 +00:00
loadcfg32.test [COFF] Don't hard-code the load configuration size 2016-03-15 09:48:27 +00:00
locally-imported.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
locally-imported32.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
long-section-name.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
lto-chkstk.ll COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
lto-comdat.ll COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
lto-linker-opts.ll COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
lto-new-symbol.ll COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
lto-opt-level.ll COFF: Introduce flag /opt:lldlto=N for controlling LTO optimization level. 2015-08-14 04:47:07 +00:00
lto-parallel.ll COFF: Implement parallel LTO code generation. 2015-08-28 22:16:09 +00:00
lto.ll COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
machine.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
manifest.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
merge.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
nodefaultlib.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
noentry.test This test needs lib.exe. 2015-08-13 00:03:47 +00:00
opt.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
options.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
order.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
out.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
reloc-arm.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
reloc-x64.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
reloc-x86.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
resource.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
responsefile.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
safeseh.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
seh.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
sort-debug.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
stack.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
subsystem-inference.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
subsystem.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
symtab.test COFF: Add /nosymtab command line option. 2015-09-21 23:43:31 +00:00
tls.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
tls32.test [COFF] Use the correct size of the TLS directory 2016-03-15 06:41:02 +00:00
unwind.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
version.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
weak-external.test COFF: Implement parallel LTO code generation. 2015-08-28 22:16:09 +00:00
weak-external2.test COFF: Make test commands shorter. NFC. 2015-08-06 16:47:46 +00:00
weak-external3.test COFF: Implement parallel LTO code generation. 2015-08-28 22:16:09 +00:00