This is PR36799.
Currently, we might have a bug with scripts like below:
.foo : ALIGN(8) 
{
  *(.foo)
} > rambecause do not expand the memory region when doing ALIGN.
This might result in file range overlaps. The patch fixes the issue.
Paths 
  |  Differential  D44730  
[ELF] - Do not forget to expand the memory region. ClosedPublic Authored by grimar on Mar 21 2018, 4:45 AM. 
Details Summary This is PR36799. Currently, we might have a bug with scripts like below: .foo : ALIGN(8) 
{
  *(.foo)
} > rambecause do not expand the memory region when doing ALIGN. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Mar 23 2018, 7:29 PM 
Revision Contents 
 
Diff 139768 lld/trunk/ELF/LinkerScript.h
 lld/trunk/ELF/LinkerScript.cpp
 lld/trunk/test/ELF/linkerscript/memory-region-alignment.test
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||