[PATCH] D38491: [ELF] Decompress debug info sections early

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 08:56:03 PDT 2017


grimar added inline comments.


================
Comment at: test/ELF/compressed-debug-conflict.s:5
+
+# CHECK:      error: duplicate symbol: main
+# CHECK-NEXT: >>> defined at reduced.c:2 (/tmp/reduced.c:2)
----------------
As far I remember, if compressed section size is greater then uncompressed, then
producer (llvm-mc) will not compress it. 
I would add check here to verify that input object contains SHF_COMPRESSED section.


================
Comment at: test/ELF/compressed-debug-conflict.s:19
+	retl
+	.file	2 "/tmp/repeat/repeat/repeat/repeat" "repeat.h"
----------------
I guess that is why you duplicated "repeat" here: to increase debug info size to force section be compressed, right ?


https://reviews.llvm.org/D38491





More information about the llvm-commits mailing list