new cflag opts for target thumb

split PD's original commit into 2 parts, because I like this half less than the other half

Change-Id: I7c6ce765c59eafa1ec1284914d346cc87ca7cf05