瀏覽代碼

Seems weak_alias wasn't working as expected...

Eric Andersen 24 年之前
父節點
當前提交
bcbf416f71
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      include/features.h

+ 1 - 2
include/features.h

@@ -115,8 +115,7 @@
 	asm (".section "  ".gnu.warning." #symbol  "\n\t.previous");  \
 	    static const char __evoke_link_warning_##symbol[]     \
 	    __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
-#   define weak_alias(name, aliasname) \
-	extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
+#   define weak_alias(name, aliasname) __asm__(".weak aliasname;aliasname = name");
 #else
 #   define link_warning(symbol, msg) \
 	asm (".stabs \"" msg "\",30,0,0,0\n\t" \