Use __asm__ rather than asm in gold testsuite
[deliverable/binutils-gdb.git] / gold / testsuite / justsyms_exec.c
index 6155147d8c6283897dcd49ce1e8f3bec807f3235..23825d15f712571befdd658d393e287f2c3a9de6 100644 (file)
@@ -1,6 +1,6 @@
 // justsyms_exec.c -- test --just-symbols for gold
 
-// Copyright 2011 Free Software Foundation, Inc.
+// Copyright (C) 2011-2020 Free Software Foundation, Inc.
 // Written by Cary Coutant <ccoutant@google.com>.
 
 // This file is part of gold.
@@ -47,7 +47,10 @@ check(void *sym, long v, const char *name)
 int
 main(void)
 {
+#if !defined (__powerpc64__) || (defined (_CALL_ELF) && _CALL_ELF == 2)
+  /* PowerPC64 ELFv1 uses function descriptors.  */
   check(exported_func, 0x1000200, "exported_func");
+#endif
   check(&exported_data, 0x2000000, "exported_data");
   return errs;
 }
This page took 0.023863 seconds and 4 git commands to generate.