Create sections with just assignments as STT_NOBITS.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 26 Nov 2016 06:55:35 +0000 (06:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 26 Nov 2016 06:55:35 +0000 (06:55 +0000)
commitf93b8c29c8f6e71c07276cbaeb8b9cd6d06cbe52
tree91b45c61d53b751c1247c3eb36c16b1a0bd4e50d
parent5c00b0dc7486eb7c08c5266b6856bb96ac78835b
Create sections with just assignments as STT_NOBITS.

This matches the behaviour of bfd ld. Using 0 was causing problems
with strip, which would remove these sections.

llvm-svn: 287969
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/symbol-only.s