diff options
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/machine/arm/strcmp.S | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c8d18ca65..6008381f7 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2013-05-28 Richard Earnshaw <rearnsha@arm.com> + + * libc/macine/arm/strcpy.S: Explicitly set build attributes when + building for thumb1 targets. + 2013-05-22 Corinna Vinschen <vinschen@redhat.com> * libc/ctype/isalnum.c: Correct domain of definition to SUSv4 wording. 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 |