From 31b5ce49c6d9917d725c0610ddcb8972795dff94 Mon Sep 17 00:00:00 2001 From: Nick Sanders Date: Mon, 13 Feb 2017 18:44:52 -0800 Subject: stm32: never pad usb descriptor length This marks decriptor length as byte accurate, by aligning the "__usb_desc_end" label by byte rather than short or word. BUG=chrome-os-partner:62873 TEST=servo_v4 doesn't crash adb anymore BRANCH=None Change-Id: I643bae2c59e81ce0c03d9026f4a5d7933ba4c891 Reviewed-on: https://chromium-review.googlesource.com/442012 Commit-Ready: Nick Sanders Tested-by: Nick Sanders Reviewed-by: Vincent Palatin --- core/cortex-m0/ec.lds.S | 1 - 1 file changed, 1 deletion(-) diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S index 45df126b89..e9cd726d7a 100644 --- a/core/cortex-m0/ec.lds.S +++ b/core/cortex-m0/ec.lds.S @@ -154,7 +154,6 @@ SECTIONS __usb_desc = .; KEEP(*(.rodata.usb_desc_conf)) KEEP(*(SORT(.rodata.usb_desc*))) - . = ALIGN(2); /* USB transfers enjoy 16-bit aligned size */ __usb_desc_end = .; . = ALIGN(4); KEEP(*(.rodata.usb_ep)) -- cgit v1.2.1