llvm-project/lld/test/pecoff
Rui Ueyama d31cf6065f [PECOFF] Fix a bug in /export option handler.
/export option can be given multiple times to specify multiple
symbols to be exported. /export accepts both decorated and
undecorated name.

If you give both undecorated and decorated name of the same symbol
to /export, they are resolved to the same symbol. In this case,
we need to de-duplicate the exported names, so that we don't have
duplicated items in the export symbol table in a DLL.

We remove duplicate items from a vector. The bug was there.
Because we had pointers pointing to elements of the vector,
after an item is removed, they would point wrong elements.

This patch is to remove these pointers. Added a test for that case.

llvm-svn: 223200
2014-12-03 04:34:20 +00:00
..
Inputs [PECOFF] Fix section alignment. 2014-11-14 21:33:07 +00:00
alignment.test [PECOFF] Fix section alignment. 2014-11-14 21:33:07 +00:00
alternatename.test [PECOFF] Improve subsystem inference 2014-11-06 23:50:48 +00:00
associative.test Update test to reflect the true section contents 2014-10-09 08:45:51 +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
conflicting-machine.test PE/COFF: add a check to ensure that we dont mix up architectures 2014-10-05 23:43:59 +00:00
delayimport.test [PECOFF] Fix 32-bit delay-import table. 2014-11-17 02:04:54 +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 PE/COFF: add a check to ensure that we dont mix up architectures 2014-10-05 23:43:59 +00:00
dynamicbase.test [PECOFF] Add file extensions to temporary files. 2013-12-27 08:37:40 +00:00
entry.test [PECOFF] Look for decorated entry symbol name. 2014-10-21 02:28:28 +00:00
export-warning.test [PECOFF] Fix duplicate /export options 2014-09-23 23:49:41 +00:00
export.test [PECOFF] Fix a bug in /export option handler. 2014-12-03 04:34:20 +00:00
exportlib.test [PECOFF] Add a test for r197803. 2014-01-09 01:11:48 +00:00
exportlib2.test [PECOFF] Fix symbols in module-definition file. 2014-11-04 22:09:13 +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
hello64.test [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +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 PE/COFF: add a check to ensure that we dont mix up architectures 2014-10-05 23:43:59 +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_ prefix on x64. 2014-09-30 19:42:04 +00:00
long-section-name.test PECOFF: Use the string table for long section names in EXEs/DLLs 2014-11-04 00:53:57 +00:00
machinetype.test [PECOFF] Infer machine type from input object file 2014-10-07 01:38:46 +00:00
manifest.test [PECOFF] Add one more test for r206633. 2014-04-18 20:44:05 +00:00
merge-largest.test [PECOFF] Do not skip COMDAT section symbols. 2014-11-05 02:21:39 +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 PE/COFF: add a check to ensure that we dont mix up architectures 2014-10-05 23:43:59 +00:00
pe32plus.test Update to match LLVM r222216 2014-11-18 03:06:52 +00:00
reloc.test [PECOFF] Fix _imp_ implicit symbols. 2014-04-29 00:32:00 +00:00
reloc64.test [PECOFF] Fix AMD64_REL_[1-5] and AMD64_SECTION relocations 2014-08-29 20:33:27 +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] /safeseh:no on x64 is not an error 2014-09-18 21:18:05 +00:00
secrel.test [PECOFF] Fix SECREL relocations. 2014-11-06 01:03:23 +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] Another Win64 relocation bug fix 2014-08-28 19:00:40 +00:00
subsystem.test [PECOFF] Infer subsystem from the entry point function. 2013-11-25 02:00:00 +00:00
tls.test [PECOFF] Support TLS callbacks. 2014-09-18 02:02:52 +00:00
trivial.test Update to match LLVM r222216 2014-11-18 03:06:52 +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