[PATCH] D41619: [llvm-objcopy] Use physical instead of virtual address when aligning and placing sections in binary

Owen Shaw via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 14:28:59 PST 2018


owenpshaw updated this revision to Diff 129159.
owenpshaw added a comment.

New patch offsets segments according to difference from lowest PAddr.

I've updated the test cases we discussed, but can back those changes out if you've already taken care of them.  The new binary align test makes sure there's a small gap as expected based on PAddrs.


https://reviews.llvm.org/D41619

Files:
  test/tools/llvm-objcopy/basic-align-copy.test
  test/tools/llvm-objcopy/binary-no-paddr.test
  test/tools/llvm-objcopy/binary-paddr.test
  test/tools/llvm-objcopy/two-seg-remove-end.test
  test/tools/llvm-objcopy/two-seg-remove-first.test
  test/tools/llvm-objcopy/two-seg-remove-third-sec.test
  tools/llvm-objcopy/Object.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41619.129159.patch
Type: text/x-patch
Size: 8444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180109/564a2c00/attachment.bin>


More information about the llvm-commits mailing list