diff options
| -rw-r--r-- | tools/objtool/check.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 472e64e95891..46c1d239cc1b 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c | |||
| @@ -925,7 +925,11 @@ static struct rela *find_switch_table(struct objtool_file *file, | |||
| 925 | if (find_symbol_containing(file->rodata, text_rela->addend)) | 925 | if (find_symbol_containing(file->rodata, text_rela->addend)) |
| 926 | continue; | 926 | continue; |
| 927 | 927 | ||
| 928 | return find_rela_by_dest(file->rodata, text_rela->addend); | 928 | rodata_rela = find_rela_by_dest(file->rodata, text_rela->addend); |
| 929 | if (!rodata_rela) | ||
| 930 | continue; | ||
| 931 | |||
| 932 | return rodata_rela; | ||
| 929 | } | 933 | } |
| 930 | 934 | ||
| 931 | return NULL; | 935 | return NULL; |
