Skip to content

Commit

Permalink
Fix symbols and linker script for compliance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Aug 22, 2024
1 parent 40d34d2 commit 24006a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 1 addition & 4 deletions verif/plugin-serv/env/link.ld
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
OUTPUT_ARCH( "riscv" )
ENTRY(_start)
ENTRY(rvtest_entry_point)

SECTIONS
{
. = 0x00000000;
.text.init : { *(.text.init) }
. = ALIGN(0x1000);
.tohost : { *(.tohost) }
. = ALIGN(0x1000);
.text : { *(.text) }
. = ALIGN(0x1000);
.data : { *(.data) }
.data.string : { *(.data.string)}
.bss : { *(.bss) }
Expand Down
9 changes: 2 additions & 7 deletions verif/plugin-serv/env/model_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@
.align 4; .global end_signature; end_signature: \


#define RVMODEL_BOOT \
.section .text.init; \
.align 4; \
.globl _start; \
_start:

#define RVMODEL_BOOT

#define LOCAL_IO_WRITE_STR(_STR) RVMODEL_IO_WRITE_STR(x31, _STR)
#define RVMODEL_IO_WRITE_STR(_SP, _STR)
Expand All @@ -68,4 +63,4 @@
#define RVMODEL_CLEAR_MTIMER_INT
#define RVMODEL_CLEAR_MEXT_INT

#endif // _COMPLIANCE_MODEL_H
#endif // _COMPLIANCE_MODEL_H

0 comments on commit 24006a7

Please sign in to comment.