This is PR36799.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 26 Mar 2018 08:58:16 +0000 (08:58 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 26 Mar 2018 08:58:16 +0000 (08:58 +0000)
commita6ce78ece17db120e21c99a4728d08a9374609f9
tree94d10f324ef57d9a46cbb28bd4889f5f3a397287
parent439824622a7c4d1f9e9782256995d0f12f3e0e4a
This is PR36799.

Currently, we might have a bug with scripts like below:

.foo : ALIGN(8)
{
  *(.foo)
} > ram
because do not expand the memory region when doing ALIGN.

This might result in file range overlaps. The patch fixes the issue.

Differential revision: https://reviews.llvm.org/D44730

llvm-svn: 328479
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/test/ELF/linkerscript/memory-region-alignment.test [new file with mode: 0644]