[PATCH] D52241: Eliminate .{, z}debug_gnu_pub{names, types} sections as early as possible.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 18 11:31:53 PDT 2018


dblaikie added a comment.

In https://reviews.llvm.org/D52241#1238637, @ruiu wrote:

> What I found is lld consumes a lot of memory when we feed object files containing .zdebug_gnu_pub{names,types} sections because it uncompresses them in memory. I don't know how realistic that scenario is, but that's at least I tried.
>
> Currently, if no --gdb-index is given, lld just concatenates .{,z}debug_gnu_pub{names,types} by section name because that's the default behavior of the linker. Can external tools consume such concatenated sections?


Yep - like most DWARF sections (I think maybe only the apple accelerator tables missed this), they're designed to be concatenated safely - they include a relocation to the CU they index in their header. So each chunk can be appropriately attributed.


https://reviews.llvm.org/D52241





More information about the llvm-commits mailing list