]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #66532 - cuviper:dwarf-aranges, r=michaelwoerister
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 20 Nov 2019 11:58:32 +0000 (12:58 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2019 11:58:32 +0000 (12:58 +0100)
Generate DWARF address ranges for faster lookups

This adds a new option `-Zgenerate-arange-section`, enabled by default,
corresponding to LLVM's `-generate-arange-section`. This creates a
`.debug_aranges` section with DWARF address ranges, which some tools
depend on to optimize address lookups (elfutils [22288], [25173]).

This only has effect when debuginfo is enabled, and the additional data
is small compared to the other debug sections. For example, libstd.so
with full debuginfo is about 11MB, with just 61kB in aranges.

[22288]: https://sourceware.org/bugzilla/show_bug.cgi?id=22288
[25173]: https://sourceware.org/bugzilla/show_bug.cgi?id=25173

Closes #45246.
r? @michaelwoerister


Trivial merge