aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorAndrew Ng <anng.sw@gmail.com>2017-07-03 10:11:25 +0000
committerAndrew Ng <anng.sw@gmail.com>2017-07-03 10:11:25 +0000
commita020d3487e0c89b905d770811a5bf5c8c4c6114d (patch)
treed86035e107a6276291e1eca6a96033a033cdca58 /llvm/unittests/Support/MathExtrasTest.cpp
parentc1a6b128c710b2cde0bad5033052aa737291635e (diff)
downloadllvm-a020d3487e0c89b905d770811a5bf5c8c4c6114d.zip
llvm-a020d3487e0c89b905d770811a5bf5c8c4c6114d.tar.gz
llvm-a020d3487e0c89b905d770811a5bf5c8c4c6114d.tar.bz2
[LLD][LinkerScript] Allow non-alloc sections to be assigned to segments.
This patch makes changes to allow sections without the SHF_ALLOC bit to be assigned to segments in a linker script. The assignment of output sections to segments is performed in LinkerScript::createPhdrs. Previously, this function would bail as soon as it encountered an output section which did not have the SHF_ALLOC bit set, thus preventing any output section without SHF_ALLOC from being assigned to a segment. This restriction has now been removed from LinkerScript::createPhdrs and instead a check for SHF_ALLOC has been added to LinkerScript::adjustSectionsAfterSorting to not propagate program headers to sections without SHF_ALLOC which matches the behaviour of bfd linker scripts. Differential Revision: https://reviews.llvm.org/D34204 llvm-svn: 307013
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions