From 09f88076c8b0bcd5a084cb5db78a3837f29d28bb Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 25 Jan 2018 11:44:19 -0800 Subject: [PATCH] Fix wrong mov instruction size. * New clang 7.0 assembler rejects mov with wrong length. Bug: 72412103 Test: build and boot in emulator Change-Id: If1a1affaa4a149265f8cc2b8bf463e58e71cc47a --- libunwindstack/AsmGetRegsX86.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libunwindstack/AsmGetRegsX86.S b/libunwindstack/AsmGetRegsX86.S index 14927a347..021e6286c 100644 --- a/libunwindstack/AsmGetRegsX86.S +++ b/libunwindstack/AsmGetRegsX86.S @@ -50,12 +50,12 @@ AsmGetRegs: movl (%esp), %ecx movl %ecx, 32(%eax) - movl %cs, 36(%eax) - movl %ss, 40(%eax) - movl %ds, 44(%eax) - movl %es, 48(%eax) - movl %fs, 52(%eax) - movl %gs, 56(%eax) + mov %cs, 36(%eax) + mov %ss, 40(%eax) + mov %ds, 44(%eax) + mov %es, 48(%eax) + mov %fs, 52(%eax) + mov %gs, 56(%eax) ret .cfi_endproc