llvm-project/lld/test/pecoff/Inputs
Rui Ueyama c817fd2273 Call File::beforeLink hook even if the file is in an archive.
Previously we didn't call the hook on a file in an archive, which
let the PE/COFF port fail to link files in archives. It was a
simple mistake. Added a call to the hook and also added a test to
catch that error.

const_cast is an unfortunate hack. Files in the resolver are usually
const, but they are not actually const objects, since they are
mutated if either a file is taken from an archive (an archive file
does never return the same file twice) or the beforeLink hook is
called. Maybe we should just remove const from there -- because they
are not const.

llvm-svn: 230808
2015-02-27 23:15:11 +00:00
..
abs.obj.yaml PECOFF: Fix I386_DIR32 relocation to an absolute symbol 2015-02-05 07:22:53 +00:00
alignment.obj.yaml [PECOFF] Fix section alignment. 2014-11-14 21:33:07 +00:00
alternatename1.obj.yaml [PECOFF] Implement /alternatename weak symbols. 2013-12-09 05:02:57 +00:00
alternatename2.obj.yaml [PECOFF] Implement /alternatename weak symbols. 2013-12-09 05:02:57 +00:00
alternatename3.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
armnt-ImageBase.obj.yaml PE/COFF: use dyn_cast for the check of the target 2015-01-16 04:14:33 +00:00
armnt-ImageBase.s PE/COFF: use dyn_cast for the check of the target 2015-01-16 04:14:33 +00:00
armnt-addr32-exec.obj.yaml ReaderWriter: adjust ARM target addresses for exec 2015-01-03 00:57:10 +00:00
armnt-addr32-exec.s ReaderWriter: adjust ARM target addresses for exec 2015-01-03 00:57:10 +00:00
armnt-addr32.obj.yaml test: fix tests/buildbots 2015-01-01 03:39:48 +00:00
armnt-addr32.s ReaderWriter: teach the writer about IMAGE_REL_ARM_ADDR32 2015-01-01 03:11:53 +00:00
armnt-blx23t.obj.yaml ReaderWriter: teach the writer about IMAGE_REL_ARM_BLX23T 2015-01-02 18:51:36 +00:00
armnt-blx23t.s test: correct PE/COFF tests to build under MSVC mode 2015-01-03 00:57:14 +00:00
armnt-branch24t.obj.yaml ReaderWriter: teach the writer about IMAGE_REL_ARM_BRANCH24T 2015-01-02 18:51:59 +00:00
armnt-branch24t.s test: correct PE/COFF tests to build under MSVC mode 2015-01-03 00:57:14 +00:00
armnt-exports.def PE/COFF: teach ARMNT backend about ADDR32NB for exports 2015-01-07 04:20:26 +00:00
armnt-exports.obj.yaml PE/COFF: teach ARMNT backend about ADDR32NB for exports 2015-01-07 04:20:26 +00:00
armnt-import.obj.yaml PE/COFF: add support to import functions in ARM NT 2015-01-08 04:19:08 +00:00
armnt-import.s PE/COFF: add support to import functions in ARM NT 2015-01-08 04:19:08 +00:00
armnt-mov32t-exec.obj.yaml ReaderWriter: adjust ARM target addresses for exec 2015-01-03 00:57:10 +00:00
armnt-mov32t-exec.s ReaderWriter: adjust ARM target addresses for exec 2015-01-03 00:57:10 +00:00
armnt-mov32t.obj.yaml ReaderWriter: teach the writer about IMAGE_REL_ARM_MOV32T 2015-01-02 02:32:05 +00:00
armnt-mov32t.s test: correct PE/COFF tests to build under MSVC mode 2015-01-03 00:57:14 +00:00
armnt-obj.s ReaderWriter: teach PE/COFF backend about ARM NT 2014-12-31 22:32:21 +00:00
armnt-obj.yaml ReaderWriter: teach PE/COFF backend about ARM NT 2014-12-31 22:32:21 +00:00
associative1.obj.yaml [PECOFF] Support COMDAT associative sections. 2014-06-17 16:19:33 +00:00
associative3.obj.yaml [PECOFF] Support COMDAT associative sections. 2014-06-17 16:19:33 +00:00
basereloc.obj.yaml PECOFF: Fix base relocation for ImageBase. 2015-02-20 03:35:59 +00:00
bss.asm [PECOFF] Emit BSS section. 2013-07-30 22:56:46 +00:00
bss.obj [PECOFF] Emit BSS section. 2013-07-30 22:56:46 +00:00
comdat.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
common-symbol.obj.yaml [PECOFF] Fix common symbol alignment. 2014-04-09 01:01:51 +00:00
drectve.obj.yaml [PECOFF] Fix priority of locally imported symbols. 2014-04-30 03:31:46 +00:00
drectve2.obj.yaml [PECOFF] Fix /include option in .drectve section. 2014-08-04 23:48:57 +00:00
drectve3.lib Call File::beforeLink hook even if the file is in an archive. 2015-02-27 23:15:11 +00:00
entry.obj.yaml [PECOFF] Fix /entry option. 2014-09-30 21:39:49 +00:00
executable.obj.yaml PECOFF: adjust the entry point on ARM NT 2015-01-04 20:26:45 +00:00
executable.s PECOFF: adjust the entry point on ARM NT 2015-01-04 20:26:45 +00:00
export.obj.yaml [PECOFF] Do not write duplicate directives to .def file. 2014-10-22 00:05:30 +00:00
exports.def [PECOFF] Handle PRIVATE keyword in the module definition file 2014-09-22 20:50:46 +00:00
exports2.def [PECOFF] Fix exported symbols in an import library. 2014-12-05 21:52:02 +00:00
grouped-sections.asm [PECOFF] Support linking against DLL. 2013-07-11 08:46:21 +00:00
grouped-sections.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
hello.asm
hello.obj.yaml [PECOFF] Skip IMAGE_SYM_DEBUG sections correctly. 2014-04-22 23:48:42 +00:00
hello64.asm [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
hello64.obj.yaml [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
hello64lib.asm [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
hello64lib.lib [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
imagebase.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
library.lib PE/COFF: add support to import functions in ARM NT 2015-01-08 04:19:08 +00:00
machine-type-unknown.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
main.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
merge-largest1.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
merge-largest2.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
merge-same-size1.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
merge-same-size2.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
merge-same-size3.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
nonstandard-sections.obj.yaml Re-submit r195852 with GroupedSectionsPass change. 2013-12-07 00:27:17 +00:00
nop.asm
nop.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
nop64.obj.yaml [PECOFF] Emit PE+ idata tables. 2014-08-20 01:09:42 +00:00
reloc.obj.yaml PECOFF: Fix I386_DIR32 relocation to an absolute symbol 2015-02-05 07:22:53 +00:00
reloc64.obj.yaml [PECOFF] Fix AMD64_REL_[1-5] and AMD64_SECTION relocations 2014-08-29 20:33:27 +00:00
resource.rc [PECOFF] Add a test for the resource file. 2013-11-04 05:17:54 +00:00
resource.res [PECOFF] Add a test for the resource file. 2013-11-04 05:17:54 +00:00
responsefile.txt [PECOFF] Add one more test for r203875. 2014-03-14 00:44:17 +00:00
secrel1.obj.yaml [PECOFF] Fix SECREL relocations. 2014-11-06 01:03:23 +00:00
secrel2.obj.yaml [PECOFF] Fix SECREL relocations. 2014-11-06 01:03:23 +00:00
seh.c [PECOFF] Emit Load Configuration and SEH Table for x86. 2014-02-26 08:27:59 +00:00
seh.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
static-data1.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
static-data2.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
static.lib [PECOFF] Support .lib archive file. 2013-06-15 05:15:41 +00:00
subsystem.main.yaml [PECOFF] Fix entry point functions selection 2014-07-23 00:57:57 +00:00
subsystem.winmain.yaml [PECOFF] Fix entry point functions selection 2014-07-23 00:57:57 +00:00
tlsused.obj.yaml [PECOFF] Support TLS callbacks. 2014-09-18 02:02:52 +00:00
unknown-drectve.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
unwind.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00
vars-main-x64.obj.yaml [PECOFF] Support delay-load import table for x86 2014-10-16 19:30:44 +00:00
vars-main-x86.obj.yaml Fix --start-group/end-group. 2015-01-21 01:26:43 +00:00
vars-main.c [PECOFF] Trim at most one character from imported symbols. 2013-08-12 04:10:00 +00:00
vars.c [PECOFF] Trim at most one character from imported symbols. 2013-08-12 04:10:00 +00:00
vars.dll.yaml [PECOFF] Trim at most one character from imported symbols. 2013-08-12 04:10:00 +00:00
vars.lib [PECOFF] Trim at most one character from imported symbols. 2013-08-12 04:10:00 +00:00
vars64.lib [PECOFF] Emit the delay-import table 2014-10-09 02:48:14 +00:00
weak-externals.asm [PECOFF] Handle weak external symbols. 2013-09-12 21:42:52 +00:00
weak-externals.obj.yaml [PECOFF] Use richer ways of describing auxiliary symbols 2014-03-19 04:55:14 +00:00