[PATCH] D153602: [DWARF] Adjust warning condition for .dwo sections with relocations

Haohai, Wen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 07:49:52 PDT 2023


HaohaiWen added inline comments.


================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFContext.cpp:1916
+      if (!Section.relocations().empty() && Name.ends_with(".dwo") &&
+          RelSecName.startswith(".debug")) {
+        HandleWarning(createError("unexpected relocations for dwo section '" +
----------------
Does dwo file only contains dwo sections? (all dwo sections starts with .debug_). If so, we may not need to check section name.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153602/new/

https://reviews.llvm.org/D153602



More information about the llvm-commits mailing list