I'm working on RetroArch, which has its own little embedded toolchain. I recently rewrote some buggy __init/__fini shenanigans and have run into what appears to be a bug in elf2rpl. Here's the code:
Calling __fini during application shutdown causes this message when building:
Could not find matching symbol for relocation
make: [Makefile.wiiu:258: retroarch_wiiu.rpx] Error 255
The exact same code works fine in our elf build; and gets through the linking stage of the rpx build without a warning. The ctor equivalent works fine in both builds. If I change &__DTOR_END__ to another random pointer (like init) then the code builds fine; though obviously `fini` wouldn't work right in the final rpx.
Heyo!
I'm working on RetroArch, which has its own little embedded toolchain. I recently rewrote some buggy
__init
/__fini
shenanigans and have run into what appears to be a bug in elf2rpl. Here's the code:Calling
__fini
during application shutdown causes this message when building:The exact same code works fine in our elf build; and gets through the linking stage of the rpx build without a warning. The ctor equivalent works fine in both builds. If I change
&__DTOR_END__
to another random pointer (like init) then the code builds fine; though obviously `fini` wouldn't work right in the final rpx.Some info (from the erroring input elf):
You can download that elf here.
Thanks in advance! Ash