• Samuel Huang's avatar
    [Supersize] Add LLD-LTO string literal support. · b08bfffd
    Samuel Huang authored
    This is the last of the series of CLs to add LLD-LTO string literal
    support to Supersize by parsing BC .o files when LLD-LTO is enabled.
    Details:
    - Add ResolveStringPieces() (alongside ResolveStringPiecesIndirect()) to
      process strings extracted from BC files.
    - Check each .o files processed to decide if it's a BC file.
    - nm is still used to process all .o files (including BC files) to
      extract symbols.
    - Any BC .o files found are processed by the new code that calls
      llvm-bcanalyzer. This provides flexibility since some .o files may
      still be ELF.
    
    Bug: 723798
    Change-Id: I5b7d1db9f91a2cd6749fe4c57595ac46eee664a8
    Reviewed-on: https://chromium-review.googlesource.com/1130006Reviewed-by: default avatarSamuel Huang <huangs@chromium.org>
    Reviewed-by: default avataragrieve <agrieve@chromium.org>
    Commit-Queue: Samuel Huang <huangs@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#577622}
    b08bfffd
string_extract.py 10.8 KB