This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 
-----------------------------------------





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]