add test code for rtdisasm
This commit is contained in:
parent
d13505b2f9
commit
da43f4d8bf
2 changed files with 9 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -19,7 +19,7 @@ RTDISASM_SRC := $(addprefix $(SRC_DIR)/,$(RTDISASM_SRC))
|
||||||
RTDISASM_DEPS = rtdisasm.h rtdisasm_table.h
|
RTDISASM_DEPS = rtdisasm.h rtdisasm_table.h
|
||||||
RTDISASM_DEPS := $(addprefix $(INC_DIR)/,$(RTDISASM_DEPS))
|
RTDISASM_DEPS := $(addprefix $(INC_DIR)/,$(RTDISASM_DEPS))
|
||||||
|
|
||||||
RTDISASM_TEST_SRC = rtdisasm_test.c
|
RTDISASM_TEST_SRC = rtdisasm_test.c rtdisasm_test_data.s
|
||||||
RTDISASM_TEST_OBJ := $(addprefix $(OBJ_DIR)/,$(patsubst %.s,%.o,$(patsubst %.c,%.o,$(RTDISASM_TEST_SRC))))
|
RTDISASM_TEST_OBJ := $(addprefix $(OBJ_DIR)/,$(patsubst %.s,%.o,$(patsubst %.c,%.o,$(RTDISASM_TEST_SRC))))
|
||||||
RTDISASM_TEST_SRC := $(addprefix $(SRC_DIR)/,$(RTDISASM_TEST_SRC))
|
RTDISASM_TEST_SRC := $(addprefix $(SRC_DIR)/,$(RTDISASM_TEST_SRC))
|
||||||
RTDISASM_TEST_DEPS =
|
RTDISASM_TEST_DEPS =
|
||||||
|
|
|
||||||
8
src/rtdisasm_test_data.s
Normal file
8
src/rtdisasm_test_data.s
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
.section .rodata
|
||||||
|
.globl test_1
|
||||||
|
|
||||||
|
test_1:
|
||||||
|
lock
|
||||||
|
mov %gs:(%rbx), %rax
|
||||||
|
|
||||||
|
nop # target that rtdisasm must reach
|
||||||
Loading…
Add table
Reference in a new issue