-
Notifications
You must be signed in to change notification settings - Fork 47
/
example-x86_64.def
32 lines (26 loc) · 1.21 KB
/
example-x86_64.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Specify which CPU plugin to use. Plugins are just Python modules/packages,
# they are searched either on PYTHONPATH as usual or, additionally, in
# subdirectories "plugins" and "plugins/cpu" of the ScratchABit dir.
cpu x86_64_pymsasid
# Show up to this many raw bytes of code/data
show bytes 4
# This defines memory area at the given address of the given size
# and permissions (all of read/write/execute in this case)
area .bin 0x600000(0x1000) rwx
# Alternatively, end address (inclusive) can be specified:
#area .bin 0x600000-0x600fff rwx
# Load binary code to disassemble to the defined memory area
load example-x86_64.bin 0x600000
# And/or load a structured executable (e.g. ELF) via a specific
# loader plugin ("elf" below).
#load example-x86_32.elf elf
# Start disassembly from the addresses defined below (left-hand
# side defines label for that address). Multiple entrypoints allowed.
# Address first in list is what will be shown after load.
[entrypoints]
start = 0x600000
# Alternatively or additionally, entrypoints/symbol addresses may
# be loaded from a file. Format is the same as above (actually, even
# more relaxed, each line may have arbitrary prefix and suffix around
# "label = addr" part).
#load "ld-provides.ld"