[PATCH] D82479: [llvm-size] Output REL, RELA and STRTAB sections in some cases

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 09:40:44 PDT 2020


gbreynoo added a comment.

There may be some confusion on my part. My understanding is that size is used to measure the memory footprint whilst there are other utilities for viewing information regarding the files themselves. See https://bugs.llvm.org/show_bug.cgi?id=46299 for a bug involving the use of size and the expectation of its output.

Is this also your expectation of output?

.dynstr occupies memory during execution but I don't think string tables should be omitted otherwise. This is why I followed Grimar’s suggestion regarding SHF_ALLOC. In order to simplify the code we could only output sections with SHF_ALLOC flag and avoid the type dependant behaviour all together?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82479





More information about the llvm-commits mailing list