From ef05ad03f2f3b3ad73eed85f9ba63ecf8197daa6 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Tue, 28 May 2013 12:43:48 +0000 Subject: * libc/macine/arm/strcpy.S: Explicitly set build attributes when building for thumb1 targets. --- newlib/libc/machine/arm/strcmp.S | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'newlib/libc/machine') diff --git a/newlib/libc/machine/arm/strcmp.S b/newlib/libc/machine/arm/strcmp.S index 0a4057e3b..6926b2ec3 100644 --- a/newlib/libc/machine/arm/strcmp.S +++ b/newlib/libc/machine/arm/strcmp.S @@ -55,6 +55,13 @@ #if defined (__thumb__) .thumb .thumb_func +#if !defined (__thumb2__) + /* If we have thumb1 only, we need to explictly mark the + compatibility. */ + .arch armv4t + .eabi_attribute Tag_also_compatible_with, "\006\013" /* v6-M. */ + .eabi_attribute Tag_ARM_ISA_use, 0 +#endif #endif .global strcmp .type strcmp, %function -- cgit v1.2.3