]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix security_initcall in m68knommu linker script
authorGreg Ungerer <gerg@snapgear.com>
Mon, 7 Jul 2003 16:21:47 +0000 (09:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 7 Jul 2003 16:21:47 +0000 (09:21 -0700)
Global SECURITY_INIT macro cannot be used inside .init section
for m68knommu linker script. It is a complete section of its own,
need to just list the components individually.

arch/m68knommu/vmlinux.lds.S

index fa2004ada4ba99ec73f4f6c7c797c0b351d8731b..1ab8a31ef9645c2e291b7cb83f3df7af4b80df00 100644 (file)
@@ -277,7 +277,9 @@ SECTIONS {
                __con_initcall_start = .;
                *(.con_initcall.init)
                __con_initcall_end = .;
-               SECURITY_INIT
+               __security_initcall_start = .;
+               *(.security_initcall.init)
+               __security_initcall_end = .;
                . = ALIGN(4);
                __initramfs_start = .;
                *(.init.ramfs)