[llvm] [ELF] Add support for CREL to getSectionAndRelocations (PR #126445)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 9 21:43:37 PST 2025


================
@@ -6833,6 +6833,16 @@ void ELFDumper<ELFT>::printRelocatableStackSizes(
       continue;
     }
 
+    // We might end up with relocations in CREL here. If we do, report a
+    // warning since we do not currently support them.
+    if (RelocSec->sh_type == ELF::SHT_CREL) {
+      reportWarning(createError(".stack_sizes (" + describe(*StackSizesELFSec) +
+                                ") has a corresponding CREL relocation "
+                                "section, which is not currently supported."),
----------------
MaskRay wrote:

drop the trailing dot. https://llvm.org/docs/CodingStandards.html#error-and-warning-messages

https://github.com/llvm/llvm-project/pull/126445


More information about the llvm-commits mailing list