[all-commits] [llvm/llvm-project] 93345e: [llvm-objcopy] -O binary: consider SHT_NOBITS sect...

Patrick Oppenlander via All-commits all-commits at lists.llvm.org
Mon Feb 1 15:01:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93345e825a0733f6a67898f6d6d156ff56db80e7
      https://github.com/llvm/llvm-project/commit/93345e825a0733f6a67898f6d6d156ff56db80e7
  Author: Patrick Oppenlander <patrick.oppenlander at gmail.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

  Changed paths:
    M llvm/test/tools/llvm-objcopy/ELF/binary-paddr.test
    M llvm/tools/llvm-objcopy/ELF/Object.cpp

  Log Message:
  -----------
  [llvm-objcopy] -O binary: consider SHT_NOBITS sections to be empty

This is consistent with BFD objcopy.

Previously llvm objcopy would allocate space for SHT_NOBITS sections
often resulting in enormous binary files.

New test case (binary-paddr.test %t6).

Reviewed By: jhenderson, MaskRay

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




More information about the All-commits mailing list