When DDB is enabled and we are building for the ARM EABI include the unwind

tables in the kernel.
This commit is contained in:
Andrew Turner 2013-01-19 22:08:16 +00:00
parent 3f67e83a60
commit b56c0c673a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245675
2 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,8 @@ STRIP_FLAGS = -S
.if empty(DDB_ENABLED)
CFLAGS += -mno-apcs-frame
.elif defined(WITH_ARM_EABI)
CFLAGS += -funwind-tables
.endif
SYSTEM_LD_ = ${LD} -Bdynamic -T ldscript.$M.noheader ${LDFLAGS} \

View File

@ -56,6 +56,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)) ;