[PATCH] D77893: [lld] Merge Mach-O input sections
    Shoaib Meenai via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri May  1 17:17:50 PDT 2020
    
    
  
smeenai added a comment.
In D77893#2014371 <https://reviews.llvm.org/D77893#2014371>, @smeenai wrote:
> One thing I just thought about (sorry :/). How do we want to handle sections in input files with the same name as our special sections? For example, what if the user gives us an input file with the section `__DATA_CONST,__got`? ld64 appears to handle this fine; it just combines the user-provided section with its own synthesized one. It also handles the case where a user input file has a `__TEXT,__mach_header` section, and treats it as distinct from its own hidden synthesized section with that name.
For a large internal binary, I confirmed that none of the input section names clashed with our synthetic section names, so I think it's pretty safe to just error out if we run into that.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77893/new/
https://reviews.llvm.org/D77893
    
    
More information about the llvm-commits
mailing list