D54314 fixed pr38074 for AArch64 for static linking. It added two new RelExpr instances R_AARCH64_GOT_PAGE_PC_PLT and R_GOT_PLT. These need to be added to isStaticLinkTimeConstant so that the address of an ifunc can be taken when building a shared library. I've checked that both ld.gold and ld.bfd generate the same PLT and relocations for this case.
While looking into this I think LLD isn't getting PIE or non-preemptible ifuncs right (and wasn't prior to D54314). The got entry generated as a result of the got generating relocation pair above is reduced to a R_AARCH64_RELATIVE to the ifunc resolver. I'm working on a proper fix for this but as it is not a regression I think it can go in a separate patch.