binmunge: allow relocations for function vector register loads
authorAlan Cox <alan@linux.intel.com>
Wed, 21 Nov 2018 00:32:21 +0000 (00:32 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 21 Nov 2018 00:32:21 +0000 (00:32 +0000)
commit322a64dbca8bcb5a573a1bdffca511fc035ca95f
tree822d1111f33f09494076b89f75d6158d2fd413ea
parent811f7e76552594487fdfff11e2983617583dc8ac
binmunge: allow relocations for function vector register loads

sdcc can generate this kind of code, so we need to generate stubs for
16bit register load fixups in code space

cp #1
jr z, 1f
ld hl,#func
jr 2f
1f: ld hl,#func2
2f:
push de
push bc
jp callhl
pop bc
pop de
Kernel/tools/binmunge.c