[PATCH] D150276: [llvm-objcopy] -O binary: do not align physical addresses

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 19:09:45 PDT 2023


MaskRay added a comment.

> is important for embedded images where the physical address is used to store the initial data image. The loader typically will copy this image using a start symbol created by the linker. If llvm-objcopy inserts padding before such a section, the symbol address will not match the location in the image.

Thank you. I don't have much experience with p_paddr. Unaligned p_offset seems a bit strange but I see that it may be used this way...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150276/new/

https://reviews.llvm.org/D150276



More information about the llvm-commits mailing list