This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
query: about elf symbol table creating rules
- From: 徐强 <breezyxu at yahoo dot com dot cn>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Sep 2010 23:42:19 +0800 (CST)
- Subject: query: about elf symbol table creating rules
Hi, guys
I am searching the rules to create the elf relocatable module's symbol table. can anyone help me if you know this.
For example, if we have a elf relocated module a.o, which contains three symbols, a1,a2,a3. And we also have another module b.o, which also contains three symbols, b1,b2,b3. supposed that the a.o's symbol table contain the symbol in the sequence of a1, then a2, then a3. So does the b.o. Then after i link a.o and b.o to c.o, i have found that the symbols in the c.o's symbol table may in random sequence. such as a1, then b2, then b3, then a2, then a3, then b1.
Do you know how the gnu linker create a relocatable module's symbol table and how about the symbol's sequence added?
Thank you very much for your coming reply.
----------------------------------------- Life is full of sunshine!-----------------------------------------
breezyxu@yahoo.com.cn
-----------------------------------------