History

modpost.c: Add .text.unlikely to TEXT_SECTIONS

gcc's places cold functions into the .text.unlikely section and we need to check this section as well for section mismatches otherwise we may have false negatives for this test.

Tom Rini committed 13 years ago

Commit 06df44e1 parent d5fe85a1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mod/modpost.c+1−1
@@ -884,7 +884,7 @@ static void check_section(const char *modname, struct elf_info *elf, · 883 unmodified lines
884#define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS884#define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS
885 885
886#define DATA_SECTIONS ".data$", ".data.rel$"886#define DATA_SECTIONS ".data$", ".data.rel$"
887#define TEXT_SECTIONS ".text$"887#define TEXT_SECTIONS ".text$", ".text.unlikely$"
888 888
889#define INIT_SECTIONS ".init.*"889#define INIT_SECTIONS ".init.*"
890#define CPU_INIT_SECTIONS ".cpuinit.*"890#define CPU_INIT_SECTIONS ".cpuinit.*"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t