apsun / loliOS

Lightweight & operational Linux-inspired OS.
33 stars 1 forks source link

Compiling with gcc -O3 + LTO fails with linker error #30

Closed apsun closed 2 years ago

apsun commented 2 years ago
/usr/bin/ld: /tmp/ccjI03lp.ltrans1.ltrans.o: in function `terminal_mouse_read.lto_priv.0':
<artificial>:(.text+0x2a53): undefined reference to `scheduler_yield_impl'

I already marked scheduler_yield_impl as __attribute__((used)), not sure how to fix this one.

apsun commented 2 years ago

Fixed in 655395dbe6c0afb76561f4247ea77e3a694b29eb