diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/mpy_ld.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/mpy_ld.py b/tools/mpy_ld.py index 44a76bdee..70cab2b89 100755 --- a/tools/mpy_ld.py +++ b/tools/mpy_ld.py @@ -702,9 +702,13 @@ def do_relocation_text(env, text_addr, r): elif env.arch.name == "EM_RISCV": (addr, value) = process_riscv32_relocation(env, text_addr, r) + elif env.arch.name == "EM_ARM" and r_info_type == R_ARM_ABS32: + # happens for soft-float on armv6m + raise ValueError("Absolute relocations not supported on ARM") + else: # Unknown/unsupported relocation - assert 0, r_info_type + assert 0, (r_info_type, s.name, s.entry, env.arch.name) # Write relocation if env.arch.name == "EM_RISCV": |
