diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-12 23:29:51 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-12 23:29:51 +0000 |
| commit | b6a812ebb10c074266d6e4f9d2e2405bf57e4788 (patch) | |
| tree | a108b29b58d3e0b9b9bdf17a74d667d207a3cc10 /llvm/lib/MC/ELFObjectWriter.cpp | |
| parent | a12fcb790fb3694c6fcdf14047be72283ae4a0ee (diff) | |
| download | bcm5719-llvm-b6a812ebb10c074266d6e4f9d2e2405bf57e4788.tar.gz bcm5719-llvm-b6a812ebb10c074266d6e4f9d2e2405bf57e4788.zip | |
Add support for having multiple sections with the same name and comdat.
Using this in combination with -ffunction-sections allows LLVM to output a .o
file with mulitple sections named .text. This saves space by avoiding long
unique names of the form .text.<C++ mangled name>.
llvm-svn: 228980
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index 5bddb09393f..b4948e659fb 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -1151,7 +1151,7 @@ ELFObjectWriter::createRelocationSection(MCAssembler &Asm, const MCSectionELF *RelaSection = Ctx.getELFSection( RelaSectionName, hasRelocationAddend() ? ELF::SHT_RELA : ELF::SHT_REL, - Flags, EntrySize, Group); + Flags, EntrySize, Group, true); return &Asm.getOrCreateSectionData(*RelaSection); } |

