[PATCH] D24801: [ELF] - Fix combination of -script and relocatable output.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 08:24:17 PDT 2016


grimar added a comment.

In https://reviews.llvm.org/D24801#548662, @ruiu wrote:

> Shouldn't we simply report an error if both -relocatable and linker script SECTIONS command are used? It is hard to imagine that there's a valid use case for that combination.


That was mentioned in summary for https://reviews.llvm.org/D24032 that we have such issue and also in comments for https://reviews.llvm.org/D24782. So I guess there is a use case. I fixed it because zero sized sections is too obvious issue and it was very simple to support the correct scripted behavior.


https://reviews.llvm.org/D24801





More information about the llvm-commits mailing list