]> granicus.if.org Git - llvm/commit
Create unique, but identically-named ELF sections for explicitly-sectioned functions...
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 1 Aug 2019 01:38:53 +0000 (01:38 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 1 Aug 2019 01:38:53 +0000 (01:38 +0000)
commitc6c2f143198c9e582124b5c692ce5a104e1d522a
tree85a72c9983857a79800b5bd371e2be3bc81aaa0f
parenteb43d3eca15b4bbc988ce8642935ca26afed1548
Create unique, but identically-named ELF sections for explicitly-sectioned functions and globals when using -function-sections and -data-sections.

This allows functions and globals to to be reordered later in the linking phase
(using the -symbol-ordering-file) even though reordering will be limited to
the scope of the explicit section.

Patch by Rahman Lavaee!

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/elf-associated.ll
test/CodeGen/X86/explicit-elf-sections.ll [new file with mode: 0644]