Messages in this thread | | | Date | Tue, 20 May 2008 08:45:13 +0200 | From | Peter Oberparleiter <> | Subject | Re: [PATCH 1/7] kernel: call constructors |
| |
Andrew Morton wrote: > On Mon, 19 May 2008 10:43:14 +0200 > Peter Oberparleiter <peter.oberparleiter@de.ibm.com> wrote: > >> From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> >> >> Call constructors during kernel init and module load. Required by the >> gcov profiling infrastructure: gcc's profiling code uses constructors >> to register profiling data structures. >> > > What happens with architectures which do not use > include/asm-generic/vmlinux.lds.h? A quicky grep points at
In that case, no constructors would be called and as a result the gcov debugfs directory would be empty. This should be easily fixable as the case arises though. I've re-checked arch/*/vmlinux* and all of those linker scripts seem to include asm-generic/vmlinux.lds.h at most via one indirection.
> arch/m68k/kernel/vmlinux.lds.S
Includes asm-generic/vmlinux.lds.h either via vmlinux-sun3.lds or vmlinux-std.lds.
> arch/sh/kernel/vmlinux.lds.S
Includes asm-generic/vmlinux.lds.h either via vmlinux_32.lds.S or vmlinux_64.lds.S.
> arch/um/kernel/vmlinux.lds.S
Includes asm-generic/vmlinux.lds.h either via uml.lds.S or dyn.lds.S.
Regards, Peter
| |