[PATCH] D58426: llvm-objcopy: Change sectionWithinSegment() to use virtual addresses instead of file offsets.
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 11:52:09 PDT 2019
jakehehrlich added a comment.
Herald added a subscriber: MaskRay.
If .bss has the desired offset this will work. Also .tbss, .tdata, PT_TLS, and PT_LOAD interact in very strange ways that we need to be careful about. In particular the TLS image will exist in a PT_LOAD read-only segment but the PT_TLS segment will have a bogus vaddr and the .tbss will extend into the part of the PT_LOAD that covers .rodata, .dynstr, etc...
I'll come back to thinking about this. Also please add me as a reviewer to changes like this (ELF llvm-objcopy/strip changes that change subtle behavior).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58426/new/
https://reviews.llvm.org/D58426
More information about the llvm-commits
mailing list