[PATCH] D32289: [ELF] - Linkerscript: support combination of linkerscript and --compress-debug-sections.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 15:27:25 PDT 2017
ruiu added inline comments.
================
Comment at: ELF/OutputSections.cpp:154
+ // The actual offsets will be computed during assignAddresses. For now, use
+ // crude approximation so that it is at least easy for other code to know the
----------------
during -> by
================
Comment at: test/ELF/linkerscript/compress-debug-sections.s:15
+
+# CHECK: .debug_str contents:
+# CHECK-NEXT: CCC
----------------
I don't think you really need this much hand-crafted debug info. You can just create an object file with `-g`, link it with LLD and verify that the debug section doesn't have SHF_COMPRESSED flag by using llvm-objdump or readobj.
https://reviews.llvm.org/D32289
More information about the llvm-commits
mailing list