objtool: Skip ORC entry creation for non-text sections
authorJulien Thierry <jthierry@redhat.com>
Tue, 25 Aug 2020 12:47:41 +0000 (13:47 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 1 Sep 2020 22:19:11 +0000 (17:19 -0500)
commit3eaecac88a17f7fdf29561a197dc728f7f697c60
tree00d89d1e0310e71e1ef2d513f30ade80e74c170c
parentd44becb9decf4438d1e555b1428634964d2e5764
objtool: Skip ORC entry creation for non-text sections

Orc generation is only done for text sections, but some instructions
can be found in non-text sections (e.g. .discard.text sections).

Skip setting their orc sections since their whole sections will be
skipped for orc generation.

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
tools/objtool/orc_gen.c