mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
fix(build): filter out mislinked debug symbol in the first link stage (#1129)
This commit is contained in:
parent
1485456bf3
commit
0f827fb191
@ -42,7 +42,7 @@ kernel_rust:
|
||||
|
||||
|
||||
all: kernel
|
||||
|
||||
rm -f ./debug/kallsyms.o
|
||||
# if x86_64
|
||||
ifeq ($(ARCH), x86_64)
|
||||
$(MAKE) __link_x86_64_kernel
|
||||
@ -63,7 +63,7 @@ kernel: $(kernel_subdirs) kernel_rust
|
||||
__link_riscv64_kernel:
|
||||
@echo "Linking kernel..."
|
||||
$(LD) -b elf64-littleriscv -z muldefs $(LDFLAGS_UNWIND) -o kernel ../target/riscv64gc-unknown-none-elf/release/libdragonos_kernel.a -T arch/riscv64/link.ld --no-relax
|
||||
# 生成kallsyms
|
||||
# 生成kallsyms
|
||||
current_dir=$(pwd)
|
||||
|
||||
@dbg='debug';for x in $$dbg; do \
|
||||
|
Loading…
x
Reference in New Issue
Block a user