summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2018-07-03 09:23:25 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2018-07-03 09:23:25 +0000
commitb427d4eced315ffa2b6f5bd0f7ee24c9c869126a (patch)
tree22b5411a2ccc68f84a137f2332a296cb58a7752e /lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
parent3897ded69101a87b6451d51bbb2e5b2e81387a53 (diff)
downloadbcm5719-llvm-b427d4eced315ffa2b6f5bd0f7ee24c9c869126a.tar.gz
bcm5719-llvm-b427d4eced315ffa2b6f5bd0f7ee24c9c869126a.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud