diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-12 13:26:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-12 13:26:03 -0500 |
commit | c5c80bd923d34f7dc70e7b23eb427cd284989a1b (patch) | |
tree | be447f70226997678cc6e9596ec75f14335fa670 | |
parent | 03891f9c853d5c4473224478a1e03ea00d70ff8d (diff) | |
parent | 8083013fc3201b75535afc39338cc7d2cad32e37 (diff) |
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fixes from Ralf Baechle:
"This is the final pull request for MIPS for 4.4. It fixes:
- scripts/ld-version.sh parsing of ld version numbers that contain
large numbers as components.
- fix parsing of version numbers as used by Fedora's ld.
Currently scripts/ld-version.sh is only being used by MIPS"
[ This obviously missed 4.4, so getting merged now in the merge window
for 4.5 instead ]
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
ld-version: Fix it on Fedora
Fix ld-version.sh to handle large 3rd version part
-rw-r--r-- | arch/mips/vdso/Makefile | 2 | ||||
-rwxr-xr-x | scripts/ld-version.sh | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile index 14568900fc1d..ee3617c0c5e2 100644 --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile | |||
@@ -26,7 +26,7 @@ aflags-vdso := $(ccflags-vdso) \ | |||
26 | # the comments on that file. | 26 | # the comments on that file. |
27 | # | 27 | # |
28 | ifndef CONFIG_CPU_MIPSR6 | 28 | ifndef CONFIG_CPU_MIPSR6 |
29 | ifeq ($(call ld-ifversion, -lt, 22500000, y),y) | 29 | ifeq ($(call ld-ifversion, -lt, 225000000, y),y) |
30 | $(warning MIPS VDSO requires binutils >= 2.25) | 30 | $(warning MIPS VDSO requires binutils >= 2.25) |
31 | obj-vdso-y := $(filter-out gettimeofday.o, $(obj-vdso-y)) | 31 | obj-vdso-y := $(filter-out gettimeofday.o, $(obj-vdso-y)) |
32 | ccflags-vdso += -DDISABLE_MIPS_VDSO | 32 | ccflags-vdso += -DDISABLE_MIPS_VDSO |
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh index 198580d245e0..d154f0877fd8 100755 --- a/scripts/ld-version.sh +++ b/scripts/ld-version.sh | |||
@@ -2,7 +2,9 @@ | |||
2 | # extract linker version number from stdin and turn into single number | 2 | # extract linker version number from stdin and turn into single number |
3 | { | 3 | { |
4 | gsub(".*)", ""); | 4 | gsub(".*)", ""); |
5 | gsub(".*version ", ""); | ||
6 | gsub("-.*", ""); | ||
5 | split($1,a, "."); | 7 | split($1,a, "."); |
6 | print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5]; | 8 | print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5]; |
7 | exit | 9 | exit |
8 | } | 10 | } |