[PATCH] D22807: [ELF] Linkerscript: simplify DATA_SEGMENT_ALIGN evaluation
    George Rimar via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jul 26 10:27:57 PDT 2016
    
    
  
grimar added inline comments.
================
Comment at: lld/trunk/ELF/LinkerScript.cpp:814-816
@@ -813,5 +813,5 @@
     expect(")");
     return [=](uint64_t Dot) -> uint64_t {
       uint64_t Val = E(Dot);
-      return alignTo(Dot, Val) + (Dot & (Val - 1));
+      return alignTo(Dot, Val);
     };
----------------
ruiu wrote:
> So actually this can be `return [=](uint64_t Dot) { return alignTo(Dot, E(Dot)); }`.
r276768
Repository:
  rL LLVM
https://reviews.llvm.org/D22807
    
    
More information about the llvm-commits
mailing list