GetFirefly/firefly

-on_load module attribute not recognized

KronicDeth opened this issue · 0 comments

-on_load(F/A) needs to recognized by the parser and then the on_load function called in such a way that it mimics the function being call on load in the BEAM.

Affects the following files in OTP:

  • lib/asn1/src/asn1rt_nif.erl
  • lib/runtime_tools/src/dyntrace.erl

If this is only used for NIFs, we can ignore it in that module and instead convert the NIFs to our Rust format in our lumen/otp fork.