================
@@ -0,0 +1,25 @@
+// We created a constructor function in 
compiler-rt/lib/builtins/ppc/init_ifuncs.c
+// that reads an array contained in a certain named section of the object file.
+// The compiler generates extra globals (one per ifunc) in that section.
+// This test is to make sure the section name in the builtins library and the
+// compiler match by checking the distance between the start and end of the
+// section is "2*sizeof(void*)" because there's one ifunc in the entire 
program.
+//
+// REQUIRES: target={{.*aix.*}}
+// RUN: %clang_builtins %s %librt -fno-integrated-as -o a.out
----------------
w2yehia wrote:

the integrated-as path without -ffunction-sections is broken due to the 
relocation ordering issue.
But I do still need to add an integrated-as testcase in the general ifunc 
testcase, I'll do it with -ffunction-sections only and comment out the 
-fno-function-sections RUN.

https://github.com/llvm/llvm-project/pull/153049
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to