[PATCH] D33175: ELF: --gdb-index: Do not add dead sections to the address area.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 10:57:25 PDT 2017


pcc added inline comments.


================
Comment at: lld/test/ELF/Inputs/gdb-index-gc-sections.o.sh:4
+echo "void _start() {} void dead() {}" | \
+clang -Os -g -c -ffunction-sections -o gdb-index-gc-sections.o -x c - -Xclang -fdebug-compilation-dir -Xclang .
----------------
grimar wrote:
> Please add comment about which clang version was used.
> Also do you really need -fdebug-compilation-dir ?
> Please add comment about which clang version was used.
Will do while moving to .s.

> Also do you really need -fdebug-compilation-dir ?

Yes otherwise my cwd leaks into the object file.



https://reviews.llvm.org/D33175





More information about the llvm-commits mailing list