------- Comment #7 from dwmw2 at infradead dot org 2006-08-17 09:16 ------- The one with proc_mkdir was because the EXPORT_SYMBOL is in a different file to the original function -- although my version was working correctly, I'm willing to deal with that case.
The symbol 'proc_root' is also missing though. Simple test case: $ cat foo.c extern int foo; int __attribute__((externally_visible)) *bar(void) { return &foo; } pmac /home/dwmw2 $ cat bar.c int foo __attribute__((externally_visible)) = 42; $ gcc -fwhole-program --combine -Os -c -ofoo.o foo.c bar.c $ nm -a foo.o 00000000 T bar 00000000 b .bss 00000000 n .comment 00000000 d .data 00000000 d foo.1277 00000000 a foo.c 00000000 n .note.GNU-stack 00000000 t .text Note 'd foo.1277' instead of the expected 'D foo'. Giving foo.c and bar.c in the opposite order on the command line 'fixes' this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744