提交 c0fb96a5 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

include eh_frame sections

上级 04501470
...@@ -73,7 +73,7 @@ KERN = $(O)/kernel.elf ...@@ -73,7 +73,7 @@ KERN = $(O)/kernel.elf
ALL += $(KERN) ALL += $(KERN)
$(O)/kernel/%.o: CFLAGS+=-mcmodel=kernel -DXV6_KERNEL $(O)/kernel/%.o: CFLAGS+=-mcmodel=kernel -DXV6_KERNEL
$(O)/kernel/%.o: CXXFLAGS+=-mcmodel=kernel -DXV6_KERNEL $(O)/kernel/%.o: CXXFLAGS+=-mcmodel=kernel -DXV6_KERNEL -fnothrow-opt -Wnoexcept
$(KERN): $(O)/kernel/boot.o $(OBJS) $(LDEPS) kernel/kernel.ld $(KERN): $(O)/kernel/boot.o $(OBJS) $(LDEPS) kernel/kernel.ld
@echo " LD $@" @echo " LD $@"
......
...@@ -19,10 +19,13 @@ SECTIONS ...@@ -19,10 +19,13 @@ SECTIONS
} }
PROVIDE(eprof = .); PROVIDE(eprof = .);
. = ALIGN(0x1000); . = ALIGN(0x1000);
.got : { *(.got) *(.igot) }
.got.plt : { *(.got.plt) *(.igot.plt) }
.data : { .data : {
*(.data .data.* .gnu.linkonce.d.*) *(.data .data.* .gnu.linkonce.d.*)
*(.got) *(.igot)
*(.got.plt) *(.igot.plt)
*(.eh_frame_hdr)
*(.eh_frame)
*(.gcc_except_table .gcc_except_table.*)
} }
PROVIDE(edata = .); PROVIDE(edata = .);
.bss : { .bss : {
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论