Closed enrib4 closed 3 years ago
An easy fix would be declare it as global, as you are doing:
.globl cpct_fw2hw_asm
And to add a double colon on it's assembly entry point, on cpct_fw2hw_asmbindings.s
Like this:
cpct_fw2hw_asm::
After doing this, you must 'make clean' -> 'make' on cpctelera folder for build library again.
(It looks like original definition has just one colon, instead of two, not beign global thus. A minuscule detail)
Thanks @enrib4 for this issue report. In fact, as @SpDizzy says, is just a mistake with the assembly label. It should have been marked as global, but it was marked as local.
Now it's fixed (commit 507e20f4df5ae0b854a47a7feae973b3f5db488a).
Thanks both of you :)
SDCC does not allow compilation in assembly of the "cpct_fw2hw" function, trying to declare it as:
.globl cpct_fw2hw_asm
Error in the linker: