Spaces:
Sleeping
Sleeping
Commit
·
47ebfff
1
Parent(s):
989208b
filter out .text
Browse files
main.py
CHANGED
@@ -91,6 +91,8 @@ def compile(compiler, flags, source):
|
|
91 |
json_relocs = json.loads(json_relocs)
|
92 |
json_relocs = json_relocs[0]["Relocations"]
|
93 |
json_relocs = [r["Relocation"] for d in json_relocs for r in d['Relocs']]
|
|
|
|
|
94 |
|
95 |
if result.returncode == 0:
|
96 |
return json_relocs, compiled_bytes, compile_output, disassembly
|
|
|
91 |
json_relocs = json.loads(json_relocs)
|
92 |
json_relocs = json_relocs[0]["Relocations"]
|
93 |
json_relocs = [r["Relocation"] for d in json_relocs for r in d['Relocs']]
|
94 |
+
# Filter out .text
|
95 |
+
json_relocs = [r for r in json_relocs if r["Symbol"]["Name"] != ".text"]
|
96 |
|
97 |
if result.returncode == 0:
|
98 |
return json_relocs, compiled_bytes, compile_output, disassembly
|