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
__attribute__ ((faible)) ne fonctionne pas pour la variable globale
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){ ...
linux
gcc
linker
weak-symbol
3 commentaire(s)