[llvm-bugs] [Bug 32657] New: linker script parsing error

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 13 15:15:04 PDT 2017


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

            Bug ID: 32657
           Summary: linker script parsing error
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org

/* This is x86 linker script. */
/* Ensure everything goes in the right order. */
ENTRY(_start)
OUTPUT_FORMAT(elf32-i386)

SECTIONS
{
    PAGE_SIZE = 4096;

    . =  0; /* This is relocatable executable, it will be relocated to
appropriate position in memory. */
    .text ALIGN (4) :
    {
        *(.text*)
        *(.rodata*)
        /* global static initializers */
        . = ALIGN(4);
        ctors_GLOBAL = .;
        *(SORT(.ctor*))
        QUAD(0)
        dtors_GLOBAL = .;
        *(SORT(.dtor*))
        QUAD(0)
        FILL(0x90)
    }

    .data ALIGN (4) :
    {
        *(.data*)
        FILL(0x00)
    }

    .bss ALIGN (4) :
    {
        *(COMMON*)
        *(.bss*)
    }

    /* Strip unnecessary stuff */
    /DISCARD/ : { *(.comment .note* .eh_frame) } /* FIXME: eh_frame is needed
for dwarf debug info! */
}

-- 
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/20170413/0f9b319d/attachment.html>


More information about the llvm-bugs mailing list