From 7a03b221a6ac2366e535d8992cf055371b3f477a Mon Sep 17 00:00:00 2001 From: fslongjin Date: Wed, 22 Jun 2022 18:54:56 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E7=BC=96=E8=AF=91=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=97=B6=EF=BC=8C=E6=8B=B7=E8=B4=9D=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/apps/about/Makefile | 2 +- user/apps/shell/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/user/apps/about/Makefile b/user/apps/about/Makefile index 0cd386c1..8a3326cd 100644 --- a/user/apps/about/Makefile +++ b/user/apps/about/Makefile @@ -2,6 +2,6 @@ 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 about.lds - objcopy -I elf64-x86-64 -S -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/about $(output_dir)/about.elf + objcopy -I elf64-x86-64 -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 diff --git a/user/apps/shell/Makefile b/user/apps/shell/Makefile index 97d5e22e..b5aae049 100644 --- a/user/apps/shell/Makefile +++ b/user/apps/shell/Makefile @@ -2,7 +2,7 @@ all: shell.o cmd.o cmd_help.o ld -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/shell $(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)/shell $(output_dir)/shell.elf + objcopy -I elf64-x86-64 -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/shell $(output_dir)/shell.elf shell.o: shell.c gcc $(CFLAGS) -c shell.c -o shell.o