[PATCH] D34689: [LLD][ELF] Pre-create ThunkSections at Target specific intervals

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 20:35:49 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/Arch/ARM.cpp:91-92
+
+  // Allow for 16384 12 byte Thunks per ThunkSectionSpacing
+  ThunkSectionSize = 0x30000;
 }
----------------
It is not clear to me if you really need this variable. If we understand correctly, we initially assume that we have thunks of 0x30000 bytes for each 0x1000000 bytes.  But they are just rough initial estimation and doesn't have to be accurate, right? I wonder if we just assume that the size of thunk is zero. Or, if you really need it, can you assume that we have thunks of size zero for each 0x1000000 minus 0x30000 bytes?


https://reviews.llvm.org/D34689





More information about the llvm-commits mailing list