[RTEMS Project] #4069: dl06 does not link on RISCV

RTEMS trac trac at rtems.org
Thu Sep 10 04:17:07 UTC 2020


#4069: dl06 does not link on RISCV
-------------------------+-------------------------------------------------
 Reporter:  Chris Johns  |       Owner:  Hesham Almatary
                         |  <Hesham.Almatary@…>
     Type:  defect       |      Status:  reopened
 Priority:  normal       |   Milestone:  6.1
Component:  tool         |     Version:  6
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+-------------------------------------------------

Comment (by Chris Johns):

 I have looked into the crash is `dl05` and it is a misaligned access
 because the rela record has an offset of `7`. You can see this here:
 {{{
 $ riscv-rtems6-readelf -r riscv-
 rtems6/c/griscv/testsuites/libtests/dl05-o5.o
   [snip]

 Relocation section '.rela.gcc_except_table.exception_dl' at offset 0x8b98
 contains 58 entries:
  Offset     Info    Type            Sym.Value  Sym. Name + Addend
 00000007  00006423 R_RISCV_ADD32     0000002c   .LEHB0 + 0

   [snip]
 }}}
 This is a relocation table for exception table.

 I have added reloc tracing to the RISCV backend the reloc that crashes is:
 {{{
 rtl: reloc base_rel(/dl05-o5.o): ADD32: where=0x4006cc67,
 *where=0xdedeeded, addend=0x0, base 0x4006cc60
 }}}
 The `*where=0xdedeeded` can be ignored, the value is invalid because the
 address was detected as odd.

 I do not know the RISCV so does the write needs to be smarter or is the
 problem else where.

 I am wondering if a number of other crashes are the same or a similar
 issue.

--
Ticket URL: <http://devel.rtems.org/ticket/4069#comment:10>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list