[llvm-bugs] [Bug 30646] New: unknown directive: PHDRS

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 8 17:21:50 PDT 2016


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

            Bug ID: 30646
           Summary: unknown directive: PHDRS
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: brad at comstyle.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Trying to link the OpenBSD/amd64 kernel with lld 3.9.0..

ld.lld -T ../../../../arch/amd64/conf/ld.script -X --warn-common -nopie -S -o
bsd ${SYSTEM_HEAD} vers.o ${OBJS}
line 23: unknown directive: PHDRS
PHDRS
^

from ld.script..

/* Define how we want our ELF binary to look like. */
PHDRS
{
        text PT_LOAD FILEHDR PHDRS;
        rodata PT_LOAD;
        data PT_LOAD;
        bss PT_LOAD;
        openbsd_randomize PT_OPENBSD_RANDOMIZE;
}

-- 
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/20161009/44d8d027/attachment.html>


More information about the llvm-bugs mailing list