Date: Tue, 28 Aug 2012 19:37:54 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r239793 - projects/arm_eabi/sys/conf Message-ID: <201208281937.q7SJbsPg019206@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)) ;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208281937.q7SJbsPg019206>