[llvm-bugs] [Bug 47056] New: --shuffle-sections can produce an invalid dynamic relocation order
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Sat Aug  8 14:41:30 PDT 2020
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=47056
            Bug ID: 47056
           Summary: --shuffle-sections can produce an invalid dynamic
                    relocation order
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael at espindo.la
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
There are requirements on the order of dynamic relocations. For example, the
IRELATIVE relocations must be after the regular ones.
That is implemented by placing the synthetic sections in the right order.
Unfortunately --shuffle-sections also shuffles those.
The sortSection function should probably be updated to skip ELF_REL and
ELF_RELA.
-- 
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/20200808/234beb69/attachment.html>
    
    
More information about the llvm-bugs
mailing list