[PATCH] D12788: [elf2] Combine adjacent compatible OutputSections in PT_LOADs.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 13:40:31 PDT 2015


ruiu added a subscriber: ruiu.

================
Comment at: ELF/Writer.cpp:397-404
@@ +396,10 @@
+  void writeHeaderTo(typename ELFFile<ELFType<E, Is64Bits>>::Elf_Phdr *PHDR) {
+    PHDR->p_type = Header.p_type;
+    PHDR->p_flags = Header.p_flags;
+    PHDR->p_offset = Header.p_offset;
+    PHDR->p_vaddr = Header.p_vaddr;
+    PHDR->p_paddr = Header.p_paddr;
+    PHDR->p_filesz = Header.p_filesz;
+    PHDR->p_memsz = Header.p_memsz;
+    PHDR->p_align = Header.p_align;
+  }
----------------
Can this just be *PHDR = Header?


http://reviews.llvm.org/D12788





More information about the llvm-commits mailing list