Skip to content

Commit 6c730bf

Browse files
committed
modpost: handle -ffunction-sections
52dc059 introduced OTHER_TEXT_SECTIONS for identifying what sections could validly have __ex_table entries. Unfortunately, it wasn't tested with -ffunction-sections, which some architectures use. Reported-by: kbuild test robot <[email protected]> Cc: Quentin Casasnovas <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
1 parent d7e0abc commit 6c730bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mod/modpost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ static void check_section(const char *modname, struct elf_info *elf,
876876
#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \
877877
".kprobes.text"
878878
#define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \
879-
".fixup", ".entry.text", ".text.fixup", ".exception.text"
879+
".fixup", ".entry.text", ".exception.text", ".text.*"
880880

881881
#define INIT_SECTIONS ".init.*"
882882
#define MEM_INIT_SECTIONS ".meminit.*"

0 commit comments

Comments
 (0)