aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2021-04-25 13:44:14 -0700
committerAndi Kleen <ak@linux.intel.com>2021-04-25 13:44:14 -0700
commit9539d3c32620c09271f1cd331e7828280015c717 (patch)
treee7be9530a8b8aa5e0b281e7f84af2a05cb1cde26
parent10f40547b0b3f2b8daee6163430355d1c10ec471 (diff)
downloadlinux-misc-lto-5.12-2-wip.tar.gz
remove objtool patches for nowlto-5.12-2-wip
-rw-r--r--tools/objtool/special.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/objtool/special.c b/tools/objtool/special.c
index 7e26d130ca8f9..2c7fbda7b0557 100644
--- a/tools/objtool/special.c
+++ b/tools/objtool/special.c
@@ -73,7 +73,6 @@ static int get_alt_entry(struct elf *elf, struct special_entry *entry,
entry->orig_len);
alt->new_len = *(unsigned char *)(sec->data->d_buf + offset +
entry->new_len);
- alt->new_sec = alt->orig_sec;
}
if (entry->feature) {
@@ -106,11 +105,6 @@ static int get_alt_entry(struct elf *elf, struct special_entry *entry,
sec, offset + entry->new);
return -1;
}
- if (!new_reloc->sym->sec) {
- WARN_FUNC("can't find new reloc symbol sec",
- sec, offset + entry->new);
- return -1;
- }
alt->new_sec = new_reloc->sym->sec;
alt->new_off = (unsigned int)new_reloc->addend;
@@ -120,9 +114,6 @@ static int get_alt_entry(struct elf *elf, struct special_entry *entry,
alt->new_off -= 0x7ffffff0;
}
- if (!alt->new_sec)
- return -1;
-
return 0;
}