vers4.c
来自「GNU binutils是GNU交叉工具链中的一个源码包」· C语言 代码 · 共 32 行
C
32 行
/* * Testcase to make sure that a versioned symbol definition in an * application correctly defines the version node, if and only if * the actual symbol is exported. This is built both with and without * -export-dynamic. */#include <stdio.h>extern int foo ();intbar(){ return 3;}intnew_foo(){ return 1000+bar();}__asm__(".symver new_foo,foo@@VERS_2.0");intmain(){ printf("%d\n", foo()); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?