mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-23 16:23:24 +00:00
🆕 exec (存在bug
This commit is contained in:
7
user/apps/about/Makefile
Normal file
7
user/apps/about/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
all: about.o
|
||||
|
||||
ld -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/about $(shell find . -name "*.o") $(shell find $(sys_libs_dir) -name "*.o") -T shell.lds
|
||||
|
||||
objcopy -I elf64-x86-64 -S -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/about $(output_dir)/about.elf
|
||||
about.o: about.c
|
||||
gcc $(CFLAGS) -c about.c -o about.o
|
7
user/apps/about/about.c
Normal file
7
user/apps/about/about.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <libc/stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello World!\n");
|
||||
while(1);
|
||||
}
|
Reference in New Issue
Block a user