[PATCH] D41735: Use uint64_t to store the ELF sh_entsize field.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 11:10:38 PST 2018


mattd created this revision.
mattd added reviewers: rengolin, grosbach.
Herald added a subscriber: emaste.

Use 64bit sizes for sh_entsize.

Elf64_Shdr uses 64bit sizes (Elf64_Xword) to represent the section entry size
(sh_entsize).  The internal LLVM representation maintains this field as a 32bit
value, regardless if Elf32 or Elf64. This change ensures that enormous
entsizes (values larger than 2^32) can be represented internally.


https://reviews.llvm.org/D41735

Files:
  include/llvm/MC/MCContext.h
  include/llvm/MC/MCSectionELF.h
  lib/MC/MCContext.cpp
  test/MC/ELF/entsize.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41735.128633.patch
Type: text/x-patch
Size: 7909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180104/c866f3f4/attachment.bin>


More information about the llvm-commits mailing list