Skip to content

Commit

Permalink
[ARM] nommu: backtrace code must not reference a discarded section
Browse files Browse the repository at this point in the history
The code in "1007:" is in the .fixup section, which in the mmuless
case is discarded.  Since this code is referenced from the .text
section, it causes an link error.  Move this code into the .text
section instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jun 28, 2006
1 parent d090ddd commit 583e7f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/arm/lib/backtrace.S
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,13 @@ ENTRY(c_backtrace)
b 1007f

/*
* Fixup for LDMDB
* Fixup for LDMDB. Note that this must not be in the fixup section.
*/
.section .fixup,"ax"
.align 0
1007: ldr r0, =.Lbad
mov r1, frame
bl printk
ldmfd sp!, {r4 - r8, pc}
.ltorg
.previous

.section __ex_table,"a"
.align 3
Expand Down

0 comments on commit 583e7f5

Please sign in to comment.