mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-01 17:00:36 +00:00
When DDB is enabled and we are building for the ARM EABI include the unwind
tables in the kernel.
This commit is contained in:
parent
3f67e83a60
commit
b56c0c673a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245675
@ -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} \
|
||||
|
@ -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)) ;
|
||||
|
Loading…
Reference in New Issue
Block a user