ULP: rel too far BFD_JUMPR_STEP
Posted: Sun Oct 08, 2017 7:46 pm
I get this error when the assembly file is somewhat bigger, but the displacement is still small!
This looks like an assembler bug, because the relative offset is constant and not depending on the code preceeding the jumpr
This is a known bug:
https://github.com/espressif/binutils-esp32ulp/issues/4
Edit:
I worked around it by splitting the assembler files, see e.g.:
https://github.com/tomtor/ulp-i2c
and also:
https://github.com/espressif/esp-idf/pull/1092
This looks like an assembler bug, because the relative offset is constant and not depending on the code preceeding the jumpr
Code: Select all
.text
nop
...
// 200 additional NOPs here
...
nop
jumpr bug,1,ge
nop
nop
nop
bug:
nop
https://github.com/espressif/binutils-esp32ulp/issues/4
Edit:
I worked around it by splitting the assembler files, see e.g.:
https://github.com/tomtor/ulp-i2c
and also:
https://github.com/espressif/esp-idf/pull/1092