[llvm-bugs] [Bug 39418] New: Do not ICF two sections with different output sections when using linker scripts

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 24 04:27:24 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39418

            Bug ID: 39418
           Summary: Do not ICF two sections with different output sections
                    when using linker scripts
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: anng.sw at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

Created attachment 21031
  --> https://bugs.llvm.org/attachment.cgi?id=21031&action=edit
Test to reproduce the issue.

Identical sections except for their output section should not be folded by ICF.
This is already the case when there is no linker script, see r333052
(http://llvm.org/viewvc/llvm-project?view=revision&revision=333052). However,
with linker scripts, ICF still folds such sections.

The attached test, icf-output-section.s, reproduces this issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181024/3fc2e53c/attachment-0001.html>


More information about the llvm-bugs mailing list