[PATCH] D31464: [ELF] - Stop producing broken entries in .debug_ranges section

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 03:33:40 PDT 2017


jhenderson added a comment.

Also, one more thing: .debug_ranges can contain "base address selection entries" which have a -1 and address pair, hence why we cannot use -1 in this situation. I'm not sure how the address is set, as I have never seen a real-life example of this, but I'm wondering if there's some possible conflict with this patch, i.e. we might end up with a -1, 1 base selection entry, if there is a relocation to a discarded section used here. I have no idea if this is really something we need to worry about though (I think probably not).


https://reviews.llvm.org/D31464





More information about the llvm-commits mailing list