diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-10-03 16:23:17 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-10-03 17:18:33 +0200 |
commit | b8d802fe9f6ddf02d67e7d847904e7389715561e (patch) | |
tree | ab48311937d7668d220a37c693592e137d1d3172 /package/devel/valgrind/patches/310-mips-link-tool.patch | |
parent | 90a4f2ec6d3b2103b58644dedaef97bc87b580d3 (diff) | |
download | upstream-b8d802fe9f6ddf02d67e7d847904e7389715561e.tar.gz upstream-b8d802fe9f6ddf02d67e7d847904e7389715561e.tar.bz2 upstream-b8d802fe9f6ddf02d67e7d847904e7389715561e.zip |
valgrind: improve mips support
We have to remove the FPU check, it will run in an endless loop on LEDE
when compile without FPU emulation support.
The second patch fixes this problem: valgrind: mmap(0x400000, 303104)
failed in UME with error 22 (Invalid argument).
valgrind still does not support mips16, build LEDE without mips16 support.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/devel/valgrind/patches/310-mips-link-tool.patch')
-rw-r--r-- | package/devel/valgrind/patches/310-mips-link-tool.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/devel/valgrind/patches/310-mips-link-tool.patch b/package/devel/valgrind/patches/310-mips-link-tool.patch new file mode 100644 index 0000000000..198f7408e5 --- /dev/null +++ b/package/devel/valgrind/patches/310-mips-link-tool.patch @@ -0,0 +1,38 @@ +r15754 | petarj | 2015-12-29 20:14:37 +0100 (Tue, 29 Dec 2015) | 8 lines + +mips: remove link script exception for MIPS arch + +Current toolchains on MIPS targets that we care about are reasonably +modern and we do not need this link script exception for MIPS anymore. + +This should fix issues with newer toolchain versions and .MIPS.abiflags +section. + +--- a/coregrind/link_tool_exe_linux.in ++++ b/coregrind/link_tool_exe_linux.in +@@ -69,24 +69,7 @@ shift; # Remove $ala from @ARGV + die "Bogus alt-load address" + if (length($ala) < 3 || index($ala, "0x") != 0); + +-# For mips32 or mips64 we need to use "--section-start=.reginfo=$ala" or +-# "--section-start=.MIPS.options=$ala" respectively, because "-Ttext=$ala" will +-# not put all the sections to the specificed address ($ala). +-my $x = `cat ../config.log 2>&1 | grep host_cpu= | sed "s/host_cpu='//g"`; +-my $arch = substr($x, 0, index($x, "'")); +- +-my $extra_args; +-if (($arch eq 'mips') || ($arch eq 'mipsel') +- || ($arch eq 'mipsisa32r2el')) { +- $extra_args = "-static -Wl,--section-start=.reginfo=$ala"; +-} elsif (($arch eq 'mips64') || ($arch eq 'mips64el') || +- ($arch eq 'mipsisa64el')) { +- $extra_args = "-static -Wl,--section-start=.MIPS.options=$ala"; +-} else { +- $extra_args = "-static -Wl,@FLAG_T_TEXT@=$ala"; +-} +- +-my $cmd = join(" ", @ARGV, $extra_args); ++my $cmd = join(" ", @ARGV, "-static -Wl,@FLAG_T_TEXT@=$ala"); + + #print "link_tool_exe_linux: $cmd\n"; + |