This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hii.. this is a static function | 1.c has main function in 2.c file | | 1.c file | extern void fun(); static void fun() | main() { | { printf("hello\n"); | fun(); } | } ------------------------------------------------------------------ if i compile(do not link) 2.c file,(cc -c 2.c) gcc creats 2.o (object file ELF). and its symbol table contains name : integer(index to string table) value : integer (offset to section) size : 0 (unknown=0, character=1 or integer=4) binding: local (because static local=0, global=1,weak=0) type : function my question: if i change this binding value in symbol table from "local"(value=0) to "global"(value=1), is it possible to link 1.c and 2.o (cc 1.c 2.o). ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |