[PATCH] D50688: [LLD] Sort alloc/non-alloc output sections in linkerscripts

Konstantin Schwarz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 14 02:08:26 PDT 2018


kschwarz added a comment.

The problem was discovered within an ARM specific linker script, however it is target independent (see added testcases)
I think the existing test in test/ELF/linkerscript/sections.s is even incomplete, because it only checks the section order, not the created program headers.
If checked, you will see that there is no PT_LOAD for .data and .text. 
I wouldn't say its the issue of the script, I think its an issue of a missing spec. We claim to support the same linker scripts as GNU, but behave differently in certain undocumented situations, which can lead to surprising results.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D50688





More information about the llvm-commits mailing list