[all-commits] [llvm/llvm-project] 98f5f0: [BUG-FIX][XCOFF] fixed a bug of XCOFFObjectFile.cp...

diggerlin via All-commits all-commits at lists.llvm.org
Tue Dec 10 08:15:18 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 98f5f022f0cb5ac6605385966ced38e1e2851f6b
      https://github.com/llvm/llvm-project/commit/98f5f022f0cb5ac6605385966ced38e1e2851f6b
  Author: diggerlin <digger.llvm at gmail.com>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    M llvm/lib/MC/XCOFFObjectWriter.cpp
    M llvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-str.ll

  Log Message:
  -----------
  [BUG-FIX][XCOFF] fixed a bug of XCOFFObjectFile.cpp when there is padding at the last csect of a sections

SUMMARY:
  Fixed a bug of XCOFFObjectFile.cpp when there is padding at the last csect of a sections.
when there is a tail padding of a section, but the value of CurrentAddressLocation do not be increased by the padding size. it will hit assert assert(CurrentAddressLocation == Section->Address && "We should have no padding between sections.");

Reviewers: daltenty,hubert.reinterpretcast,

Differential Revision: https://reviews.llvm.org/D70859




More information about the All-commits mailing list