Browse Source

[ARM] nommu: backtrace code must not reference a discarded section

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>
Russell King 19 năm trước cách đây
mục cha
commit
583e7f5d36
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      arch/arm/lib/backtrace.S

+ 1 - 4
arch/arm/lib/backtrace.S

@@ -97,16 +97,13 @@ ENTRY(c_backtrace)
 		b	1007f
 		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
 1007:		ldr	r0, =.Lbad
 		mov	r1, frame
 		mov	r1, frame
 		bl	printk
 		bl	printk
 		ldmfd	sp!, {r4 - r8, pc}
 		ldmfd	sp!, {r4 - r8, pc}
 		.ltorg
 		.ltorg
-		.previous
 		
 		
 		.section __ex_table,"a"
 		.section __ex_table,"a"
 		.align	3
 		.align	3