Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. ELF Format

ELF Format

Scheduled Pinned Locked Moved The Back Room
c++help
3 Posts 3 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nydhami
    wrote on last edited by
    #1

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

    N M 2 Replies Last reply
    0
    • N nydhami

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

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • N nydhami

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

        M Offline
        M Offline
        moliate
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups