[ARM] nommu: backtrace code must not reference a discarded section
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 21 Jun 2006 19:43:55 +0000 (20:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 28 Jun 2006 16:59:57 +0000 (17:59 +0100)
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>
arch/arm/lib/backtrace.S

index 058b80d72aa1371a748b52cbee5b61c8653392b8..91f993f2e9dbdfd5786733dcaaec3e36ae26cf31 100644 (file)
@@ -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