llvm-project/lld/test
James Henderson b427d4eced [ELF] Don't create empty output section for unreferenced PROVIDEs
LLD removes empty output sections otherwise specified in the linker
script. Prior to this change however, if section descriptions included
ANY kind of symbol assignment, then the consequent output section would
not be removed, even if the assignment was marked with PROVIDE and not
actually triggered (i.e. the symbol was never referenced). This change
modifies the isDiscarable function to ignore such directives when
determining whether a section should be discarded, in keeping with
bfd's behaviour. Symbol assignments that do result in a symbol
definition will continue to result in a kept section (this is not
actually the same as bfd's behaviour, but it is simpler, and probably
makes more sense).

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D48771

llvm-svn: 336184
2018-07-03 09:23:25 +00:00
..
COFF Fix test after S_PROCREF change. 2018-06-29 22:41:16 +00:00
Driver/Inputs
ELF [ELF] Don't create empty output section for unreferenced PROVIDEs 2018-07-03 09:23:25 +00:00
MinGW [MinGW] Implement the GNU ld options -S/--strip-debug 2018-06-29 06:08:31 +00:00
Unit [lit] Rename lld and clang lit configs to end in .py 2017-09-21 17:38:13 +00:00
darwin [Darwin] Do not error on '-lto_library' option 2018-06-13 18:59:14 +00:00
mach-o [lit] Fix a problem with spaces in the python path by adding quotes around it 2018-02-21 00:03:41 +00:00
wasm [LTO] Errors in LLVM backend should manifest as lld errors 2018-07-02 21:01:43 +00:00
CMakeLists.txt Add llvm-bcanalyzer as an LLD test dependency 2018-05-25 14:15:02 +00:00
lit.cfg.py Add Hexagon Support 2018-06-13 18:45:25 +00:00
lit.site.cfg.py.in [PDB] Resubmit "Support embedding natvis files in PDBs." 2018-03-23 19:57:25 +00:00