[PATCH] D25272: [ELF] - Fixed behavior when amount of inputsections is too large.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 05:58:15 PDT 2016


grimar added a comment.

In https://reviews.llvm.org/D25272#562436, @ruiu wrote:

> I got a feeling that these error checks are getting picky. It is OK to reject crazy numbers that only crash the linker, but essentially we should do what the object files tell us do. At least object files containing >65536 secitons seem plausible.


What about currect diff ? This change allows to move all check logic to inside Obj.sections(). Where I am planning to check if
size of total amount of sections exceeds the file buffer size.


https://reviews.llvm.org/D25272





More information about the llvm-commits mailing list