[llvm-bugs] [Bug 30997] New: PHDRS assignment different from bfd
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Nov 12 11:24:33 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=30997
Bug ID: 30997
Summary: PHDRS assignment different from bfd
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: ASSIGNED
Severity: normal
Priority: P
Component: ELF
Assignee: rafael.espindola at gmail.com
Reporter: rafael.espindola at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Given
.quad 0
.section .foo,"ax"
.quad 0
and a script
PHDRS
{
ph_write PT_LOAD FLAGS(2);
ph_exec PT_LOAD FLAGS(1);
}
SECTIONS
{
.bar : { *(.bar) } : ph_exec
.foo : { *(.foo) }
.text : { *(.text) } : ph_write
}
lld will put .foo is ph_write. The problem is that we propagate implicit PHDRS
assignment walking the output sections, and since there is not .bar in the
input ph_exec is not propagated to .foo
.
--
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/20161112/a5cf0e21/attachment-0001.html>
More information about the llvm-bugs
mailing list