[PATCH] D71035: [llvm-objcopy][ELF] -O binary: use LMA instead of sh_offset to decide where to write section contents
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 10:18:46 PST 2019
MaskRay marked an inline comment as done.
MaskRay added inline comments.
================
Comment at: llvm/test/tools/llvm-objcopy/ELF/binary-paddr.test:32
Flags: [ SHF_ALLOC ]
+ ## The computed LMA is sh_address-p_vaddr+p_paddr = 0x2000-0x2000+0x4000 = 0x4000.
Address: 0x2000
----------------
jhenderson wrote:
> Does this comment still make sense? The numbers don't line up with the p_vaddr below, and the comment along with it (Also sh_address -> sh_addr).
Changed to:
## The computed LMA is sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x4000 = 0x4000.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71035/new/
https://reviews.llvm.org/D71035
More information about the llvm-commits
mailing list