History

asmlinkage, module: Make ksymtab and kcrctab symbols and __this_module __visible

Make the ksymtab symbols for EXPORT_SYMBOL visible. This prevents the LTO compiler from adding a .NUMBER prefix, which avoids various problems in later export processing.

Andi Kleen committed 13 years ago

Commit e0f244c1 parent eb3057d2 files · +3 −3Browse files

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

Unified · Split

scripts/mod/modpost.c+1−1
@@ -1861,7 +1861,7 @@ static void add_header(struct buffer *b, struct module *mod) · 1860 unmodified lines
18611861 buf_printf(b, "\n");
18621862 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n");
18631863 buf_printf(b, "\n");
1864− buf_printf(b, "struct module __this_module\n");
1864+ buf_printf(b, "__visible struct module __this_module\n");
18651865 buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
18661866 buf_printf(b, "\t.name = KBUILD_MODNAME,\n");
18671867 if (mod->has_init)

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