From 76b3f1624d92fadcc20fc407457264b69276d50a Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Tue, 29 Dec 2015 19:14:37 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15754 --- coregrind/link_tool_exe_linux.in | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/coregrind/link_tool_exe_linux.in b/coregrind/link_tool_exe_linux.in index 594646324d..5214420318 100644 --- 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"; -- 2.47.2