summaryrefslogtreecommitdiffstats
path: root/linkers
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2022-06-30 16:08:48 -0500
committerJoel Sherrill <joel@rtems.org>2022-07-29 08:25:35 -0500
commitace7db96d4561665b07ba15c2fe5f9349f4d3d8c (patch)
tree22c19eefa02590a9a4e4cd2485e656d518913563 /linkers
parenttester: Normalize JSON and YAML reports (diff)
downloadrtems-tools-ace7db96d4561665b07ba15c2fe5f9349f4d3d8c.tar.bz2
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
Diffstat (limited to 'linkers')
-rw-r--r--linkers/rtems-syms.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linkers/rtems-syms.cpp b/linkers/rtems-syms.cpp
index bfe2a48..5aa4d27 100644
--- a/linkers/rtems-syms.cpp
+++ b/linkers/rtems-syms.cpp
@@ -244,7 +244,7 @@ output_sym::operator ()(const rld::symbols::symtab::value_type& value)
if (embed)
{
- c.write_line ("#if __riscv_xlen == 64");
+ c.write_line ("#if __SIZEOF_POINTER__ == 8");
c.write_line ("asm(\" .quad " + sym.name () + "\");");
c.write_line ("#else");
c.write_line ("asm(\" .long " + sym.name () + "\");");
@@ -254,7 +254,7 @@ output_sym::operator ()(const rld::symbols::symtab::value_type& value)
{
std::stringstream oss;
oss << std::hex << std::setfill ('0') << std::setw (8) << sym.value ();
- c.write_line ("#if __riscv_xlen == 64");
+ c.write_line ("#if __SIZEOF_POINTER__ == 8");
c.write_line ("asm(\" .quad 0x" + oss.str () + "\");");
c.write_line ("#else");
c.write_line ("asm(\" .long 0x" + oss.str () + "\");");