[PATCH] D57245: [PPC64] Sort .toc sections accessed with small code model relocs close to the .got part 2

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 28 15:09:51 PST 2019


ruiu added inline comments.


================
Comment at: ELF/Arch/PPC64.cpp:101
 
-bool elf::isPPC64SmallCodeModelReloc(RelType Type) {
-  // List is not yet complete, at the very least the got based tls related
-  // relocations need to be added, and we need to determine how the section
-  // sorting interacts with the thread pointer and dynamic thread pointer
-  // relative tls relocations.
-  return Type == R_PPC64_GOT16 || Type == R_PPC64_TOC16 ||
-         Type == R_PPC64_TOC16_DS;
+// For lld we really only need to identify objects that use the toc based small
+// code model relocs for the .toc section sorting and can ignore the got based
----------------
Could you update the comment a bit so that it gives the big picture about what this function does? Looks like this comment is slightly too detailed and might not be understood if you already know what this is for.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57245/new/

https://reviews.llvm.org/D57245





More information about the llvm-commits mailing list