History

Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Pull arm64 fix from Will Deacon: "One trivial fix for -rc8/final that ensures that the script used to detect RELR relocation support in the toolchain works correctly when $CC contains quotes. Although it fails safely (by failing to detect the support when it exists), it would be nice to have this fixed in 5.4 given that it was only introduced in the last merge window. Summary: - Handle CC variables containing quotes in tools-support-relr.sh script" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: scripts/tools-support-relr.sh: un-quote variables

Linus Torvalds committed 7 years ago

Commit eb70e262 parents 34b38f5 65e1f381 file · +4 −4Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/tools-support-relr.sh+4−4
@@ -4,13 +4,13 @@ · 3 unmodified lines
4tmp_file=$(mktemp)4tmp_file=$(mktemp)
5trap "rm -f $tmp_file.o $tmp_file $tmp_file.bin" EXIT5trap "rm -f $tmp_file.o $tmp_file $tmp_file.bin" EXIT
6 6
7cat << "END" | "$CC" -c -x c - -o $tmp_file.o >/dev/null 2>&17cat << "END" | $CC -c -x c - -o $tmp_file.o >/dev/null 2>&1
8void *p = &p;8void *p = &p;
9END9END
10"$LD" $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr -o $tmp_file10$LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr -o $tmp_file
11 11
12# Despite printing an error message, GNU nm still exits with exit code 0 if it12# Despite printing an error message, GNU nm still exits with exit code 0 if it
13# sees a relr section. So we need to check that nothing is printed to stderr.13# sees a relr section. So we need to check that nothing is printed to stderr.
14test -z "$("$NM" $tmp_file 2>&1 >/dev/null)"14test -z "$($NM $tmp_file 2>&1 >/dev/null)"
15 15
16"$OBJCOPY" -O binary $tmp_file $tmp_file.bin16$OBJCOPY -O binary $tmp_file $tmp_file.bin

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t