[llvm-bugs] [Bug 31335] New: We fail to detect that '.' moved backwards

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 9 20:04:56 PST 2016


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

            Bug ID: 31335
           Summary: We fail to detect that '.' moved backwards
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Given

SECTIONS { .text 0x2000 : {. = 0x100 ; *(.text) } }

lld will compute the size of text as 0x100 - 0x2000 and then try to create a
really large file.

bfd actually accepts this. I am not entirely sure what it does with it. We
should at least produce a better error message.

-- 
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/20161210/29cce1a4/attachment-0001.html>


More information about the llvm-bugs mailing list