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

            Bug ID: 34750
           Summary: lld produces a corrupted file header
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: rafael.espind...@gmail.com
                CC: llvm-bugs@lists.llvm.org, pho...@chromium.org

Given

test.s:
 .section .zed, "a"
 .zero 4

test.script:

PHDRS {
  foobar PT_LOAD FILEHDR PHDRS;
}
SECTIONS {
  . = 0x1000;
  .abc : { *(.zed) } : foobar
}

with test.s assembled for x86_64-pc-linux and linking with

ld.lld --script test.script test.o -o t

the file header is corrupted:

% file t
t: data

This works with bfd, gold and lld before r311586

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to