aboutsummaryrefslogtreecommitdiff
path: root/clang/docs
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-11-13 08:43:07 +0000
committerFangrui Song <maskray@google.com>2018-11-13 08:43:07 +0000
commit9596848037a2473f59404c4e01a09105ceaf7fc3 (patch)
treeccd52d83ada71e3604f8976e50183b6022154b03 /clang/docs
parentf9b2b5e67e46ada55ada74580e2939027d6f11eb (diff)
[ELF] .gdb_index: fix CuOff when a .debug_info section contains more than 1 DW_TAG_compile_unit
Summary: Idx passed to readPubNamesAndTypes was an index into Chunks, not an index into the CU list. This would be incorrect if some .debug_info section contained more than 1 DW_TAG_compile_unit. In real world, glibc Scrt1.o is a partial link of start.os abi-note.o init.o and contains 2 CUs in debug builds. Without this patch, any application linking such Scrt1.o would have invalid .gdb_index The issue could be demonstrated by: (gdb) py print(gdb.lookup_global_symbol('main')) None Reviewers: espindola, ruiu Reviewed By: ruiu Subscribers: Higuoxing, grimar, dblaikie, emaste, aprantl, arichardson, JDevlieghere, arphaman, llvm-commits Differential Revision: https://reviews.llvm.org/D54361 llvm-svn: 346747
Diffstat (limited to 'clang/docs')
0 files changed, 0 insertions, 0 deletions