aboutsummaryrefslogtreecommitdiffstats
path: root/tools/objtool/orc_gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/objtool/orc_gen.c')
-rw-r--r--tools/objtool/orc_gen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/orc_gen.c b/tools/objtool/orc_gen.c
index e61fe703197b..18384d9be4e1 100644
--- a/tools/objtool/orc_gen.c
+++ b/tools/objtool/orc_gen.c
@@ -98,6 +98,11 @@ static int create_orc_entry(struct section *u_sec, struct section *ip_relasec,
98 struct orc_entry *orc; 98 struct orc_entry *orc;
99 struct rela *rela; 99 struct rela *rela;
100 100
101 if (!insn_sec->sym) {
102 WARN("missing symbol for section %s", insn_sec->name);
103 return -1;
104 }
105
101 /* populate ORC data */ 106 /* populate ORC data */
102 orc = (struct orc_entry *)u_sec->data->d_buf + idx; 107 orc = (struct orc_entry *)u_sec->data->d_buf + idx;
103 memcpy(orc, o, sizeof(*orc)); 108 memcpy(orc, o, sizeof(*orc));