linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* modules without a .toc section not loading
@ 2006-04-20  0:02 Robin H. Johnson
       [not found] ` <20060420002829.GD27430@bubble.grove.modra.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Robin H. Johnson @ 2006-04-20  0:02 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]

Hi,

I recently got myself a quad G5, and I'm working on a few things, and
I've run into what is either a ppc-specific GCC bug, or a module loader
bug. While the bug shows up in my custom module, it also shows up in two
other places in the current tree.

This was mentioned on the list in February, and Paulus asked for some
off-list input from the reporter, but I find nothing else.

Output in dmesg after insmod:
windfarm_pid: doesn't contain .toc or .stubs.

- My current tree is Paulus's powerpc.git tree.
- Tested with gcc 3.4.4 and 3.4.6 - both show the problem.
- in-tree modules that show it: windfarm_pid, ide-generic

Checking:
# objdump -h windfarm_pid.ko | grep toc
(not found)
# objdump -h windfarm_pid.o | grep toc
(not found)

Similarities in affected code:
All of the affected code seems to be very simple, and does not reference
very many external symbols, or any significant external symbols.

If I add some dud code with an external symbol (I added kalloc/kfree to
windfarm_pid), a .toc section does get generated correctly.

Hypothesis:
GCC isn't generating a .toc section because the source file doesn't
need one by it's consideration. 

Ideas for Solutions:
1. Either the kernel needs to realize that it does not need a .toc
section (I'm uncertain about this, being new to PPC).
2. GCC is at fault, and it should be generating a .toc.

-- 
Robin Hugh Johnson
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 241 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-24 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20  0:02 modules without a .toc section not loading Robin H. Johnson
     [not found] ` <20060420002829.GD27430@bubble.grove.modra.org>
2006-04-20  0:54   ` Robin H. Johnson
2006-04-20  8:54     ` Alan Modra
     [not found]       ` <20060423035614.GB30578@curie-int.vc.shawcable.net>
2006-04-24 12:41         ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).