[PATCH] D67137: [llvm-objcopy] Implement --only-keep-debug for ELF
    George Rimar via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jan 26 02:10:14 PST 2021
    
    
  
grimar added inline comments.
================
Comment at: llvm/test/tools/llvm-objcopy/ELF/only-keep-debug.test:217
+  - Name:  .symtab
+    Type:  SHT_STRTAB
+    Flags: [ SHF_ALLOC ]
----------------
There is an issue revealed by D95364 here. This should be `SHT_SYMTAB`, right?
llvm-objcopy reports an error when I change it:
error: Symbol table has link index of 4 which is not a string table
I guess the desired behavior is to drop the `sh_link` value as the new section is of `SHT_NOBITS` type?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67137/new/
https://reviews.llvm.org/D67137
    
    
More information about the llvm-commits
mailing list