diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-21 19:52:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-21 19:52:08 -0400 |
commit | ea75a2c715a4bf682c756d4754665fb3595f3531 (patch) | |
tree | ee2b4979e9c3b7b35dae23578264c1dfa2a55c72 /tools | |
parent | ffb48e7924768d760bcd63212c8530c010059215 (diff) | |
parent | 092b31aa2048cf7561a39697974adcd147fbb27b (diff) |
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core kernel fixes from Ingo Molnar:
"This is mostly the copy_to_user_mcsafe() related fixes from Dan
Williams, and an ORC fix for Clang"
* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/asm/memcpy_mcsafe: Fix copy_to_user_mcsafe() exception handling
lib/iov_iter: Fix pipe handling in _copy_to_iter_mcsafe()
lib/iov_iter: Document _copy_to_iter_flushcache()
lib/iov_iter: Document _copy_to_iter_mcsafe()
objtool: Use '.strtab' if '.shstrtab' doesn't exist, to support ORC tables on Clang
Diffstat (limited to 'tools')
-rw-r--r-- | tools/objtool/elf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index 0d1acb704f64..7ec85d567598 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c | |||
@@ -519,10 +519,12 @@ struct section *elf_create_section(struct elf *elf, const char *name, | |||
519 | sec->sh.sh_flags = SHF_ALLOC; | 519 | sec->sh.sh_flags = SHF_ALLOC; |
520 | 520 | ||
521 | 521 | ||
522 | /* Add section name to .shstrtab */ | 522 | /* Add section name to .shstrtab (or .strtab for Clang) */ |
523 | shstrtab = find_section_by_name(elf, ".shstrtab"); | 523 | shstrtab = find_section_by_name(elf, ".shstrtab"); |
524 | if (!shstrtab) | ||
525 | shstrtab = find_section_by_name(elf, ".strtab"); | ||
524 | if (!shstrtab) { | 526 | if (!shstrtab) { |
525 | WARN("can't find .shstrtab section"); | 527 | WARN("can't find .shstrtab or .strtab section"); |
526 | return NULL; | 528 | return NULL; |
527 | } | 529 | } |
528 | 530 | ||