[PATCH] D38721: [ELF] - Teach LLD to report line numbers for data symbols.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 01:07:09 PDT 2017


>Yep, llvm uses FORM_strp for everything & has no fallback/other path/flag/etc to do otherwise.

>
>GCC will likely also use FORM_strp for longer strings (once it's longer than the size of the relocation it costs to indirect through debug_str).

Yes, I had to use short filename "1.c" instead of "test.c", because otherwise GCC starts to use FORM_strp for it and that is not what I want in this patch.
I did not try to use longer variable names with GCC, but I guess it will fall back to FORM_strp too.

George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171012/72e9dd78/attachment.html>


More information about the llvm-commits mailing list