diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2023-01-05 13:45:21 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-01-20 08:26:35 -0600 |
commit | df0de7810f714529df7dfe2b3d063c42ed4860df (patch) | |
tree | e19f57f764feaa96b32c838fbe96c2c2b4a61114 /cpukit/libdl/rtl-rap.c | |
parent | spec: Fix Xilinx support YAML licenses (diff) | |
download | rtems-df0de7810f714529df7dfe2b3d063c42ed4860df.tar.bz2 |
cpukit/libdl: Use correct mask for reloc type
The mask 0xff is used by ELF32 while ELF64 uses 0xffffffff. These are
automatically selected based on the build type when using ELF_R_TYPE().
Diffstat (limited to 'cpukit/libdl/rtl-rap.c')
-rw-r--r-- | cpukit/libdl/rtl-rap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libdl/rtl-rap.c b/cpukit/libdl/rtl-rap.c index 64ee2947a3..f8e2b18f43 100644 --- a/cpukit/libdl/rtl-rap.c +++ b/cpukit/libdl/rtl-rap.c @@ -336,7 +336,7 @@ rtems_rtl_rap_relocate (rtems_rtl_rap* rap, rtems_rtl_obj* obj) " addend=%" PRIu32 "\n", r, info, offset, addend); - type = info & 0xff; + type = ELF_R_TYPE(info); if ((info & (1 << 31)) == 0) { |