summaryrefslogtreecommitdiffstats
path: root/arch/alpha/lib
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2017-06-23 17:20:00 -0400
committerMatt Turner <mattst88@gmail.com>2017-08-29 15:01:46 -0400
commit4758ce82e66711b1a4557577e30a5f9b88d4a4b5 (patch)
tree8a537c5fb857dcbb7b9d504bef6f58ee1ac9303e /arch/alpha/lib
parenta720830613eaa25eb5bc9b76705a88a36296709a (diff)
alpha: Package string routines together
There are direct branches between {str*cpy,str*cat} and stx*cpy. Ensure the branches are within range by merging these objects. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/lib')
-rw-r--r--arch/alpha/lib/Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/arch/alpha/lib/Makefile b/arch/alpha/lib/Makefile
index 7083434dd241..a80815960364 100644
--- a/arch/alpha/lib/Makefile
+++ b/arch/alpha/lib/Makefile
@@ -20,12 +20,8 @@ lib-y = __divqu.o __remqu.o __divlu.o __remlu.o \
20 checksum.o \ 20 checksum.o \
21 csum_partial_copy.o \ 21 csum_partial_copy.o \
22 $(ev67-y)strlen.o \ 22 $(ev67-y)strlen.o \
23 $(ev67-y)strcat.o \ 23 stycpy.o \
24 strcpy.o \ 24 styncpy.o \
25 $(ev67-y)strncat.o \
26 strncpy.o \
27 $(ev6-y)stxcpy.o \
28 $(ev6-y)stxncpy.o \
29 $(ev67-y)strchr.o \ 25 $(ev67-y)strchr.o \
30 $(ev67-y)strrchr.o \ 26 $(ev67-y)strrchr.o \
31 $(ev6-y)memchr.o \ 27 $(ev6-y)memchr.o \
@@ -49,3 +45,17 @@ AFLAGS___remlu.o = -DREM -DINTSIZE
49$(addprefix $(obj)/,__divqu.o __remqu.o __divlu.o __remlu.o): \ 45$(addprefix $(obj)/,__divqu.o __remqu.o __divlu.o __remlu.o): \
50 $(src)/$(ev6-y)divide.S FORCE 46 $(src)/$(ev6-y)divide.S FORCE
51 $(call if_changed_rule,as_o_S) 47 $(call if_changed_rule,as_o_S)
48
49# There are direct branches between {str*cpy,str*cat} and stx*cpy.
50# Ensure the branches are within range by merging these objects.
51
52LDFLAGS_stycpy.o := -r
53LDFLAGS_styncpy.o := -r
54
55$(obj)/stycpy.o: $(obj)/strcpy.o $(obj)/$(ev67-y)strcat.o \
56 $(obj)/$(ev6-y)stxcpy.o FORCE
57 $(call if_changed,ld)
58
59$(obj)/styncpy.o: $(obj)/strncpy.o $(obj)/$(ev67-y)strncat.o \
60 $(obj)/$(ev6-y)stxncpy.o FORCE
61 $(call if_changed,ld)