Skip to contentSkip to conversation

sparc: Fix .size directive for do_int_load

PATCH Applied Ben Hutchings 2 participants 2 messages Mar 9, 2011 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 sparc: Fix .size directive for do_int_load

gas used to accept (and ignore?) .size directives which referred to undefined symbols, as this does. In binutils 2.21 these are treated as errors.

---
 arch/sparc/kernel/una_asm_64.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc/kernel/una_asm_64.S +1 -1
index be183fe..1c8d332 100644
@@ -127,7 +127,7 @@ do_int_load:
 	wr	%o5, 0x0, %asi
 	retl
 	 mov	0, %o0
-	.size	__do_int_load, .-__do_int_load
+	.size	do_int_load, .-do_int_load
 
 	.section	__ex_table,"a"
 	.word		4b, __retl_efault
Signature · 1 line
1.7.4.1
maintainer Applied
#1 lore raw

From: Ben Hutchings <[email protected]>
Date: Wed, 09 Mar 2011 00:31:59 +0000

Quoted 5 lines

gas used to accept (and ignore?) .size directives which referred to undefined symbols, as this does. In binutils 2.21 these are treated as errors.

Applied, thanks Ben.