[PATCH] D43942: [lld] Fix handling of output section selection for unmerged mergeable inputs and relocatable output

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 07:12:33 PST 2018


gbreynoo added a comment.

We found that there were problems with DWARF output when using the flags above, consumers were either creating incorrect output or crashing. These consumers where relying on there only being one .debug_str section. The DWARF specification has an attribute that is an offset into the .debug_str section (e.g. DW_form_strp), only one of such section is expected.

Use of -fno-unique-section-names with Clang makes the output of multiple sections with the same name explicit, however this behaviour was not expected with the flags used above.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43942





More information about the llvm-commits mailing list