Changeset ace7db9 in rtems-tools


Ignore:
Timestamp:
06/30/22 21:08:48 (17 months ago)
Author:
Ryan Long <ryan.long@…>
Branches:
master
Children:
1cd476e
Parents:
ef4b8c5
git-author:
Ryan Long <ryan.long@…> (06/30/22 21:08:48)
git-committer:
Joel Sherrill <joel@…> (07/29/22 13:25:35)
Message:

rtems-syms.cpp: Change check to pointer size

Changed from a RISC-V specific value being in the conditional to a check for
the size of the architecture's pointer.

Closes #4673

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-syms.cpp

    ref4b8c5 race7db9  
    245245  if (embed)
    246246  {
    247     c.write_line ("#if __riscv_xlen == 64");
     247    c.write_line ("#if __SIZEOF_POINTER__ == 8");
    248248    c.write_line ("asm(\"  .quad " + sym.name () + "\");");
    249249    c.write_line ("#else");
     
    255255    std::stringstream oss;
    256256    oss << std::hex << std::setfill ('0') << std::setw (8) << sym.value ();
    257     c.write_line ("#if __riscv_xlen == 64");
     257    c.write_line ("#if __SIZEOF_POINTER__ == 8");
    258258    c.write_line ("asm(\"  .quad 0x" + oss.str () + "\");");
    259259    c.write_line ("#else");
Note: See TracChangeset for help on using the changeset viewer.