[all-commits] [llvm/llvm-project] c52086: [crt][test] Make ctor_dtor.c robust if DT_INIT/DT_...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Aug 12 09:31:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c520863abb901912799a1178a6caa9079f6214bf
      https://github.com/llvm/llvm-project/commit/c520863abb901912799a1178a6caa9079f6214bf
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-08-12 (Thu, 12 Aug 2021)

  Changed paths:
    M compiler-rt/test/crt/ctor_dtor.c

  Log Message:
  -----------
  [crt][test] Make ctor_dtor.c robust if DT_INIT/DT_FINI is disabled

New ports in glibc typically don't define ELF_INITFINI, so
DT_INIT/DT_FINI support is disabled.
(rhel ppc64le likely patches their glibc this way as well.)
musl can disable DT_INIT/DT_FINI via -DNO_LEGACY_INITFINI.

So we cannot guarantee ctor()/dtor() will be printed.




More information about the All-commits mailing list