[PATCH] D22811: [ELF] Linkerscript: allow setting custom output section for common symbols, instead of .bss

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 08:15:41 PDT 2016


evgeny777 created this revision.
evgeny777 added reviewers: ruiu, rafael.
evgeny777 added subscribers: grimar, davide, emaste, ikudrin, llvm-commits.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.

This patch allows common symbols to be placed to arbitrary section, specified in linker script. Special rule *(COMMON) is used for this case.
Only one output section is supported.

The patch introduces artificial input section object (CommonInputSection<ELFT>), which is used to reserve certain amount of space in the output section.


Repository:
  rL LLVM

https://reviews.llvm.org/D22811

Files:
  ELF/InputSection.cpp
  ELF/InputSection.h
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/OutputSections.cpp
  ELF/SymbolTable.cpp
  ELF/Symbols.cpp
  ELF/Symbols.h
  ELF/Writer.cpp
  test/ELF/linkerscript/linkerscript-common.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22811.65522.patch
Type: text/x-patch
Size: 15868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160726/9fdd1276/attachment.bin>


More information about the llvm-commits mailing list