[PATCH] D45508: Implement --ctors-in-init-array.

Seraphime Kirkovski (VMware) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 17 12:45:18 PST 2023


skirkovski added a comment.

> I think you misunderstand things. GCC 4.7 switched from .ctors to .init_array . At the current GCC 12 time .ctors is very obsoleted now.

I don't think I am. I was debugging this issue today. I had some binaries and libraries built and linked with gcc9, now while transitioning to gcc12 I can clearly see that that .ctors from those libraries are present but are not executed when the resulting binary is linked with lld, only .init_array.

But sure whatever, I really didn't expect anything else with (atleast) 3 attempts to fix this upstream.


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

https://reviews.llvm.org/D45508



More information about the llvm-commits mailing list