[all-commits] [llvm/llvm-project] 8075f0: [BOLT] Use new contents when emitting sections wit...

Maksim Panchenko via All-commits all-commits at lists.llvm.org
Tue Feb 6 14:38:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8075f0db16f3291beed65cbcd034b047cc7373bf
      https://github.com/llvm/llvm-project/commit/8075f0db16f3291beed65cbcd034b047cc7373bf
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M bolt/lib/Core/BinarySection.cpp

  Log Message:
  -----------
  [BOLT] Use new contents when emitting sections with relocations (#80782)

We can use BinarySection::updateContents() to change section contents.
However, if we also add relocations for new contents, then the original
data (i.e. not updated) is going to be used. Fix that. A follow-up diff
will use the update interface and will include a test case.




More information about the All-commits mailing list