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.espind...@gmail.com Reporter: rafael.espind...@gmail.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs