This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

armcc assembler

Hi

in assembler file I have

// RO_BASE = 0x78000000

funcName 

   DCD FooEntry  - . + .

what does it mean "minus dot plus dot"?

Parents
  • Hi Ronan
    Thanks for answer
    I found this in Qalcomm ThreadX module
    This create header of the BIN from ELF for relocations

    and the question "...why one would do this..."
    I compile:

    foo // = 0x78000000 is ro_base (-ro)
    DCB 0,0,0,0,0,0,0 // 7 zeroes
    DCB foo // = 0x78000007
    DCB foo - . + . // = 0x00000008
    DCB foo // = 0x78000009

    "- . + ." it seems as current address minus ro_base

Reply
  • Hi Ronan
    Thanks for answer
    I found this in Qalcomm ThreadX module
    This create header of the BIN from ELF for relocations

    and the question "...why one would do this..."
    I compile:

    foo // = 0x78000000 is ro_base (-ro)
    DCB 0,0,0,0,0,0,0 // 7 zeroes
    DCB foo // = 0x78000007
    DCB foo - . + . // = 0x00000008
    DCB foo // = 0x78000009

    "- . + ." it seems as current address minus ro_base

Children
No data