[PATCH] D103324: [lld/mac] Implement -dead_strip

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 28 02:48:16 PDT 2021


DavidSpickett added a comment.

@thakis `dead-strip.s` has been failing on our 32 bit armv8 bot: https://lab.llvm.org/buildbot/#/builders/178/builds/42
(I think we missed when this started due to some bot config changes we were doing)

I've disabled it for 32 bit builds in: https://reviews.llvm.org/rG6942076096e6dcfb0893a351a9a586490beec572

Seems like some of the symbol names change order when built for 32 bit. At least that's my guess, doesn't seem like an Arm specific thing unless it's distro related somehow. Happens with GCC or clang built lld.

Expected:

  # UNWIND-NEXT:   g F __TEXT,__text __mh_execute_header
  # UNWIND-NEXT:   *UND* ___cxa_allocate_exception
  # UNWIND-NEXT:   *UND* ___cxa_end_catch
  # UNWIND-NEXT:   *UND* __ZTIi
  # UNWIND-NEXT:   *UND* ___cxa_throw
  # UNWIND-NEXT:   *UND* ___gxx_personality_v0
  # UNWIND-NEXT:   *UND* ___cxa_begin_catch
  # UNWIND-NEXT:   *UND* dyld_stub_binder

Got:

   8: 0000000100000000 g F __TEXT,__text __mh_execute_header
   9: 0000000000000000 *UND* __ZTIi
  10: 0000000000000000 *UND* ___gxx_personality_v0
  11: 0000000000000000 *UND* ___cxa_throw
  12: 0000000000000000 *UND* ___cxa_end_catch
  13: 0000000000000000 *UND* ___cxa_allocate_exception
  14: 0000000000000000 *UND* ___cxa_begin_catch
  15: 0000000000000000 *UND* dyld_stub_binder

Any ideas?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103324/new/

https://reviews.llvm.org/D103324



More information about the llvm-commits mailing list