ELF Format
-
I am working on a assembler and linker (c++) for a specific microprocessor assembly language. I am using ELF format ( Executable and linking Format). I have very little documentation for the linker/assembler. I am having problem handling global variables in multiple obj file. i.e. the variable is defined in one file and can be used in other files. While assembler have scope of only one file how will the linker will know, in which file this global symbol is used. I have searched many sites but found no relevant information. Would you please refer me to some information relating to the subject. Regards! Nadeem Yousaf :((
-
I am working on a assembler and linker (c++) for a specific microprocessor assembly language. I am using ELF format ( Executable and linking Format). I have very little documentation for the linker/assembler. I am having problem handling global variables in multiple obj file. i.e. the variable is defined in one file and can be used in other files. While assembler have scope of only one file how will the linker will know, in which file this global symbol is used. I have searched many sites but found no relevant information. Would you please refer me to some information relating to the subject. Regards! Nadeem Yousaf :((
Nadeem, I am not at all sure that the rant and rave is the right forum for this question. TRy the C++ forum or the Lounge [as this is not a pure tech question] Nish Nish was here, now Nish has gone; He left his soul, to turn you on; Those who knew Nish, knew him well; Those who didn't, can go to hell. I like to :jig: on the Code Project Sonork ID 100.9786 voidmain www.busterboy.org
-
I am working on a assembler and linker (c++) for a specific microprocessor assembly language. I am using ELF format ( Executable and linking Format). I have very little documentation for the linker/assembler. I am having problem handling global variables in multiple obj file. i.e. the variable is defined in one file and can be used in other files. While assembler have scope of only one file how will the linker will know, in which file this global symbol is used. I have searched many sites but found no relevant information. Would you please refer me to some information relating to the subject. Regards! Nadeem Yousaf :((
The exact format of a relocatable module depends on the system. There are almost no similarity between VAX/VMS and UNIX for SPARC, for example.. If you are running this on a Unix box, you might want to do a 'man a.out' to get information on the structure. Otherwise, I'm afraid I can't help you. I have only done a little ELF, and only system 5/SPARC.. /moliate