Skip to content

Commit 626b79d

Browse files
committed
change to blob
1 parent 8eaa062 commit 626b79d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

qiling/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class QL_OS(IntEnum):
3333
EVM = 207
3434
QNX = 208
3535
MCU = 209
36-
BARE = 210
36+
BLOB = 210
3737

3838
class QL_VERBOSE(IntEnum):
3939
OFF = 0
@@ -90,7 +90,7 @@ def __reverse_enum(e: Type[Enum]) -> Mapping[str, Any]:
9090
QL_OS.DOS : "DOS",
9191
QL_OS.EVM : "EVM",
9292
QL_OS.MCU : "MCU",
93-
QL_OS.BARE : "BARE"
93+
QL_OS.BLOB : "BLOB"
9494
}
9595

9696
arch_os_map = {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from qiling.loader.loader import QlLoader
88
from qiling.os.memory import QlMemoryHeap
99

10-
class QlLoaderBARE(QlLoader):
10+
class QlLoaderBLOB(QlLoader):
1111
def __init__(self, ql: Qiling):
1212
super().__init__(ql)
1313

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
from qiling.os.fcall import QlFunctionCall
1010
from qiling.os.os import QlOs
1111

12-
class QlOsBare(QlOs):
13-
""" QlOsBare for bare barines.
12+
class QlOsBlob(QlOs):
13+
""" QlOsBlob for bare barines.
1414
1515
For bare binary such as u-boot, it's ready to be mapped and executed directly,
1616
where there is(may be) no concept of os? Currently, some functionalities such as
1717
resolve_fcall_params(), heap or add_fs_mapper() are based on os. To keep the
18-
consistence of api usage, QlOsBare is introduced and placed at its loader temporarily.
18+
consistence of api usage, QlOsBlob is introduced and placed at its loader temporarily.
1919
"""
2020
def __init__(self, ql: Qiling):
21-
super(QlOsBare, self).__init__(ql)
21+
super(QlOsBlob, self).__init__(ql)
2222

2323
self.ql = ql
2424

tests/test_blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def partial_run_init(ql):
5151
with open("../examples/rootfs/blob/u-boot.bin.img", "rb") as f:
5252
uboot_code = f.read()
5353

54-
ql = Qiling(code=uboot_code[0x40:], archtype="arm", ostype="bare", profile="profiles/uboot_bin.ql", verbose=QL_VERBOSE.DEBUG)
54+
ql = Qiling(code=uboot_code[0x40:], archtype="arm", ostype="blob", profile="profiles/uboot_bin.ql", verbose=QL_VERBOSE.DEBUG)
5555

5656
image_base_addr = ql.loader.load_address
5757
ql.hook_address(my_getenv, image_base_addr + 0x13AC0)

0 commit comments

Comments
 (0)