[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 13:40:48 PDT 2019
    
    
  
jakehehrlich added a comment.
For your use case you can simply traverse the program headers for each to see if a section is indeed loadable. e.g. you want to strip all non-loadable allocated sections. That seems like a good thing but this probably isn't the right way to handle it IMO.
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