[LLD][ELD] - Do not reject INFO output section type when used with a start address.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 28 Aug 2018 08:39:21 +0000 (08:39 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 28 Aug 2018 08:39:21 +0000 (08:39 +0000)
commita46d08ebe6f21553d9f998b658a2f210940649af
tree5a471748f860556483c1151a9b631373be7fc196
parent27bbe7d0b4aa1ea6d1b141b66b8c198135292850
[LLD][ELD] - Do not reject INFO output section type when used with a start address.

This is https://bugs.llvm.org/show_bug.cgi?id=38625

LLD accept this:

".stack (INFO) : {",

but not this:

".stack address_expression (INFO) :"

The patch fixes it.

Differential revision: https://reviews.llvm.org/D51027

llvm-svn: 340804
lld/ELF/ScriptLexer.cpp
lld/ELF/ScriptLexer.h
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/info-section-type.s