-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi, Andi.
I've spent a few hours in trying to port LTO patches to arm64 4.9 kernel for a fun weekend project.
I got everything to compile and link. The kernel loads and device drivers seem to be probing correctly.
Unfortunately, doing LTO seems to hide(?) some syscalls.
Android fails to boot with the following error:
[ 2.164405] init: setegid(0) for /dev/block/sde16 device failed: Function not implemented
[ 2.164420] init: setegid(AID_ROOT) failed: Function not implemented
[ 2.164428] init: Reboot start, reason: reboot, rebootTarget: bootloader
[ 2.164614] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
Adding CFLAGS_sys.o = $(DISABLE_LTO)
doesn't seem to help.
Judging by some files opened and closed previous to that point, I assume other syscalls are find.
Can you suggest me some pointers on where to look at?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels