Skip to contentSkip to conversation

xen/arm: Don't pad between function with x86 nops

PATCH In review Andrew Cooper 2 participants 2 messages Aug 31

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Don't pad between function with x86 nops

This was copy&paste from x86. It causes the padding between functions to be:

a000026dd64: 90909090 adrp x16, 9ff2147d000 <start-0xded83000>

rather than:

a000026dd64: 00000000 udf #0

No functional change.

Fixes 5da0d3123c0a ("arm: entry.S and head.S")

---
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>

Has no-one looked at disassembly and wondered why there are junk instructions between functions?

---
 xen/arch/arm/xen.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/xen.lds.S +1 -1
index 2d5f1c516d03..d4d959403307 100644
@@ -47,7 +47,7 @@ SECTIONS
 
        *(.gnu.warning)
        _etext = .;             /* End of text section */
-  } :text = 0x9090
+  } :text
 
   . = ALIGN(PAGE_SIZE);
   .rodata : {
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andrew Cooper

This was copy&paste from x86. It causes the padding between functions to be:

a000026dd64: 90909090 adrp x16, 9ff2147d000 <start-0xded83000>

Quoted 8 lines

rather than:

a000026dd64: 00000000 udf #0

No functional change.

Fixes 5da0d3123c0a ("arm: entry.S and head.S")

~Michal