[PATCH] D17918: [ELF] - Issue an error if trying to generate relocatable from objects having mixed splitstacks.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 6 06:25:54 PST 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.

Each object file compiled in split stack mode will have an empty
section with a special name: .note.GNU-split-stack

If -r is used to link an object with the split-stack note with an object
without the split-stack note we should issue an error.
Patch implements this, as currently lld output is silently broken.

Detailed info about splitstacks can be found here:
https://gcc.gnu.org/wiki/SplitStacks



http://reviews.llvm.org/D17918

Files:
  ELF/InputFiles.cpp
  ELF/InputFiles.h
  ELF/SymbolTable.cpp
  test/ELF/relocatable-splitstacks.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17918.49913.patch
Type: text/x-patch
Size: 4388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160306/792a3987/attachment.bin>


More information about the llvm-commits mailing list