diff options
author | Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk> | 2019-11-11 12:34:45 +0000 |
---|---|---|
committer | Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk> | 2019-11-12 10:20:05 +0000 |
commit | e6e610d262940b7651157597b6b1406aa806b4d1 (patch) | |
tree | c05449ed99725a535aef7316671efadb63037ff2 | |
parent | rtems-syms: Use .quad instead of .long for riscv64 (diff) | |
download | rtems-tools-e6e610d262940b7651157597b6b1406aa806b4d1.tar.bz2 |
rld-rap: Ignore relocations with section index 0
-rw-r--r-- | rtemstoolkit/rld-rap.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-rap.cpp b/rtemstoolkit/rld-rap.cpp index 455328a..809b6d1 100644 --- a/rtemstoolkit/rld-rap.cpp +++ b/rtemstoolkit/rld-rap.cpp @@ -1399,6 +1399,12 @@ namespace rld bool write_addend = sec.rela; bool write_symname = false; + /* + * Ignore section index 0 + */ + if (reloc.symsect == 0) + continue; + offset = sec.offset + reloc.offset; if (rld::verbose () >= RLD_VERBOSE_TRACE) |