[PATCH] D70271: [AIX][XCOFF] Write Function descriptors and TOC base to data section

Jason Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 13:13:00 PST 2019


jasonliu marked an inline comment as done.
jasonliu added a comment.

In D70271#1747732 <https://reviews.llvm.org/D70271#1747732>, @daltenty wrote:

> Do we care about asserting the uniqueness of the TOC anchor somewhere?


Sure. I will do it somewhere.



================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:255
     report_fatal_error("Unhandled mapping of read-write csect to section.");
+  case XCOFF::XMC_DS:
+      return DataCsects;
----------------
DiggerLin wrote:
> DiggerLin wrote:
> > I am not sure whether all function description data will be group together and than put in the .data section of xcoffobjectfile?  all the variable data and function description will be interleaved into data section.
> > 
> > As I remember, I read some document , it talk about that , we put all variables in the data section first. then function description,s final is TOC entries.   Maybe I wrong.
> > 
> I prefer added CsectGroup DSCsects; for function description csect. 
Interleaving is acceptable for XCOFF format. What it hurts is readability of the symbol table. 
But I think the current implementation would naturally put all the global datas first and then function descriptor later, because we always emit global data first and then process each function. 


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

https://reviews.llvm.org/D70271





More information about the llvm-commits mailing list