SunriseOS icon indicating copy to clipboard operation
SunriseOS copied to clipboard

Prefix all no_mangle symbols with __sunrise_libuser

Open roblabla opened this issue 6 years ago • 1 comments

We should prefix all our no_mangle symbols to avoid potential conflicts with user libraries. This includes:

  • eh_personality
  • panic_fmt
  • rust_oom
  • real_start
  • start
  • clean_bss
  • relocate_self
  • module_header (in global_asm)
  • init_main_thread
  • syscall_inner

roblabla avatar Sep 23 '19 08:09 roblabla

lang items like eh_personality are (afaik) not required to be no_mangle, so those should be trivial to fix -- just remove no_mangle.

kitlith avatar Oct 31 '19 23:10 kitlith