[PATCH] D6379: Only warn about DWARF2 supporting one section per compilation unit for code sections

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 14:03:03 PDT 2017


dim added a comment.

Actually I see that we also get this warning on our `.section ".note.GNU-stack","", at progbits` directives, which are in most of our hand-written .S files. Since the type of that section is progbits, this fix won't work for it.

However, interestingly, clang also outputs these same `.note.GNU-stack` directives in .s output for compiled files, but it does *not* warn on those, even when using `-gdwarf-2`.  So how is it avoiding them in that case?


https://reviews.llvm.org/D6379





More information about the llvm-commits mailing list