[all-commits] [llvm/llvm-project] f456c3: [ELF] Move addWrappedSymbols before postParseObjec...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Mar 4 18:56:50 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f456c3ae3f4182b23673929e8fe0aa18bcec4289
      https://github.com/llvm/llvm-project/commit/f456c3ae3f4182b23673929e8fe0aa18bcec4289
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M lld/ELF/Driver.cpp
    A lld/test/ELF/wrap-extract.s

  Log Message:
  -----------
  [ELF] Move addWrappedSymbols before postParseObjectFile

addWrappedSymbols may trigger archive extraction: split stack implementation
uses --wrap=pthread_create, which extracts libgcc.a(generic-morestack-thread.o).

This fixes the regression caused by 09602d3b47ec83abb2c26efa5a199c13b72c7abf by
making the invariant satisfied: no more non-compileBitcodeFiles object file is
produced at postParseObjectFile.




More information about the All-commits mailing list