svn commit: r239793 - projects/arm_eabi/sys/conf
Andrew Turner
andrew at FreeBSD.org
Tue Aug 28 19:37:54 UTC 2012
Author: andrew
Date: Tue Aug 28 19:37:54 2012
New Revision: 239793
URL: http://svn.freebsd.org/changeset/base/239793
Log:
When building a kernel with DDB provide the unwind tables
Modified:
projects/arm_eabi/sys/conf/Makefile.arm
projects/arm_eabi/sys/conf/ldscript.arm
Modified: projects/arm_eabi/sys/conf/Makefile.arm
==============================================================================
--- projects/arm_eabi/sys/conf/Makefile.arm Tue Aug 28 19:36:54 2012 (r239792)
+++ projects/arm_eabi/sys/conf/Makefile.arm Tue Aug 28 19:37:54 2012 (r239793)
@@ -54,6 +54,8 @@ DDB_ENABLED!= grep DDB opt_ddb.h || true
.if empty(DDB_ENABLED)
CFLAGS += -mno-apcs-frame
+.else
+CFLAGS += -funwind-tables
.endif
SYSTEM_LD_ = ${LD} -Bdynamic -T ldscript.$M.noheader \
Modified: projects/arm_eabi/sys/conf/ldscript.arm
==============================================================================
--- projects/arm_eabi/sys/conf/ldscript.arm Tue Aug 28 19:36:54 2012 (r239792)
+++ projects/arm_eabi/sys/conf/ldscript.arm Tue Aug 28 19:37:54 2012 (r239793)
@@ -57,6 +57,18 @@ SECTIONS
.init : { *(.init) } =0x9090
.plt : { *(.plt) }
+ _extab_start = .;
+ PROVIDE(extab_start = .);
+ .ARM.extab : { *(.ARM.extab) }
+ _extab.end = .;
+ PROVIDE(extab_end = .);
+
+ _exidx_start = .;
+ PROVIDE(exidx_start = .);
+ .ARM.exidx : { *(.ARM.exidx) }
+ _exidx_end = .;
+ PROVIDE(exidx_end = .);
+
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x1000) + (. & (0x1000 - 1)) ;
More information about the svn-src-projects
mailing list