Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ riscv64-unknown-linux-gnu-objdump -d -t -r hello.ko
- hello.ko: file format elf64-littleriscv
- SYMBOL TABLE:
- 0000000000000000 l d .note.gnu.build-id 0000000000000000 .note.gnu.build-id
- 0000000000000000 l d .text 0000000000000000 .text
- 0000000000000000 l d .modinfo 0000000000000000 .modinfo
- 0000000000000000 l d .rodata.str1.8 0000000000000000 .rodata.str1.8
- 0000000000000000 l d __versions 0000000000000000 __versions
- 0000000000000000 l d .data 0000000000000000 .data
- 0000000000000000 l d .gnu.linkonce.this_module 0000000000000000 .gnu.linkonce.this_module
- 0000000000000000 l d .bss 0000000000000000 .bss
- 0000000000000000 l d .comment 0000000000000000 .comment
- 0000000000000000 l df *ABS* 0000000000000000 hello.c
- 0000000000000000 l O .modinfo 000000000000000c __UNIQUE_ID_license10
- 000000000000000c l O .modinfo 000000000000000d __UNIQUE_ID_author9
- 0000000000000019 l O .modinfo 000000000000000c __UNIQUE_ID_version8
- 0000000000000000 l .rodata.str1.8 0000000000000000 .LC0
- 0000000000000007 l .text 0000000000000000 .L0
- 0000000000000010 l .rodata.str1.8 0000000000000000 .LC1
- 000000000000002e l .text 0000000000000000 .L0
- 0000000000000000 l df *ABS* 0000000000000000 hello.mod.c
- 0000000000000028 l O .modinfo 0000000000000023 __UNIQUE_ID_srcversion10
- 0000000000000050 l O .modinfo 0000000000000009 __module_depends
- 0000000000000059 l O .modinfo 000000000000000b __UNIQUE_ID_name9
- 0000000000000064 l O .modinfo 0000000000000047 __UNIQUE_ID_vermagic8
- 0000000000000000 l O __versions 0000000000000080 ____versions
- 0000000000000000 g O .gnu.linkonce.this_module 0000000000000240 __this_module
- 000000000000002e g F .text 0000000000000010 cleanup_module
- 0000000000000003 g F .text 0000000000000028 init_module
- 0000000000000000 *UND* 0000000000000000 printk
- Disassembly of section .text:
- 0000000000000000 <init_module-0x3>:
- 0: 00 01 00 # R_RISCV_ALIGN
- 0: R_RISCV_ALIGN *ABS*+0x3
- 0000000000000003 <init_module>:
- 3: ff010113 addi sp,sp,-16
- 0000000000000007 <.L0 >:
- 7: 00000517 auipc a0,0x0
- 7: R_RISCV_PCREL_HI20 .LC0
- 7: R_RISCV_RELAX *ABS*
- b: 00050513 mv a0,a0
- b: R_RISCV_PCREL_LO12_I .L0
- b: R_RISCV_RELAX *ABS*
- f: 00113423 sd ra,8(sp)
- 13: 00000097 auipc ra,0x0
- 13: R_RISCV_CALL printk
- 13: R_RISCV_RELAX *ABS*
- 17: 000080e7 jalr ra
- 1b: 00813083 ld ra,8(sp)
- 1f: 00000513 li a0,0
- 23: 01010113 addi sp,sp,16
- 27: 00008067 ret
- 2b: 00 01 00 # R_RISCV_ALIGN
- 2b: R_RISCV_ALIGN *ABS*+0x3
- 000000000000002e <cleanup_module>:
- 2e: 00000517 auipc a0,0x0
- 2e: R_RISCV_PCREL_HI20 .LC1
- 2e: R_RISCV_RELAX *ABS*
- 32: 00050513 mv a0,a0
- 32: R_RISCV_PCREL_LO12_I .L0
- 32: R_RISCV_RELAX *ABS*
- 36: 00000317 auipc t1,0x0
- 36: R_RISCV_CALL printk
- 36: R_RISCV_RELAX *ABS*
- 3a: 00030067 jr t1
- ...
Add Comment
Please, Sign In to add comment