We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On macOS, it can be compiled to modify kernel/Makefile as follows.
CFLAGS = -Wall -Wextra -nostdlib --target=x86_64-w64-mingw32-elf LDFLAGS = -s -x LD = lld -flavor ld.lld all: kernel apps/app1 apps/app2 apps/app3 make -C ../ make copy kernel: kernel.o segmentation.o hardware.o load_gdt.o font.o $(LD) $(LDFLAGS) -e start -T kernel.ld -o $@ $+ apps/app1: apps/app1.o $(LD) $(LDFLAGS) -T apps/app1.ld -o $@ $+ apps/app2: apps/app2.o $(LD) $(LDFLAGS) -T apps/app2.ld -o $@ $+ apps/app3: apps/app3.o $(LD) $(LDFLAGS) -T apps/app3.ld -o $@ $+
-e start is required for lld.
-e start
lld
However, it fails to boot on macOS.
Required libraries:
$ brew install wget mingw-w64 qemu
To use lld, the following line has been removed from the linker scripts.
OUTPUT_FORMAT("binary");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On macOS, it can be compiled to modify kernel/Makefile as follows.
-e start
is required forlld
.However, it fails to boot on macOS.
Required libraries:
To use
lld
, the following line has been removed from the linker scripts.The text was updated successfully, but these errors were encountered: