[PATCH] D65240: [XCOFF][AIX] Generate symbol table entries with llvm-readobj

Alex Brachet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 12:45:36 PDT 2019


abrachet added inline comments.


================
Comment at: llvm/include/llvm/Object/XCOFFObjectFile.h:162-167
+struct XCOFFSectAuxEntForDwarf {
+  support::ubig32_t SectionLength;
+  uint8_t Pad1[4];
+  support::ubig32_t NumberOfRelocEnt;
+  uint8_t Pad2[6];
+};
----------------
How do these and the other structs work? They have seemingly random padding that align these on non normal boundaries. Assuming this is the file format, why is there no need for `#pragma pack` or `aligans`? If we take just this type as an example 18 bytes worth of members, wont this be aligned by the compiler to 24 bytes?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D65240





More information about the llvm-commits mailing list