Questions et réponses pour le weak-symbol :

Un symbole faible indique un symbole spécialement annoté lors de la liaison des fichiers objets elf.

4
votes
pqy@localhost ~/src/test/a $ cat lib.c int fun() { return 5; } pqy@localhost ~/src/test/a $ cat m.c #include <stdio.h> __attribute__((weak)) int fun() { return 8; } int main(void){ ...