[PATCH] D60974: Clang IFSO driver action.

Saleem Abdulrasool via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 11:53:43 PDT 2019


compnerd added inline comments.


================
Comment at: clang/lib/Frontend/FrontendActions.cpp:326
+    (*OS) << "  - Name:            .text\n";
+    (*OS) << "    Type:            STT_SECTION\n";
+    (*OS) << "    Section:         .text\n";
----------------
This is wrong, this marks the type to be a section symbol, which is not correct.


================
Comment at: clang/lib/Frontend/FrontendActions.cpp:332
+            << "    Section:         .text\n"
+            << "    Binding:         STB_GLOBAL\n";
+    (*OS) << "...\n";
----------------
Hmm, you need to classify the data symbols properly and mark them appropriately, not as `STT_FUNC`.  This is particularly important on ARM where the ISA selection bit may alter the address.


Repository:
  rC Clang

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

https://reviews.llvm.org/D60974





More information about the cfe-commits mailing list