[ARM] 2924/3: taglist - postfix section with .init for `make buildcheck`
authorBen Dooks <ben-linux@fluff.org>
Tue, 20 Sep 2005 15:20:49 +0000 (16:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 20 Sep 2005 15:20:49 +0000 (16:20 +0100)
Patch from Ben Dooks

The `make buildcheck` is erroneously reporting that the taglist
is referencing items in the .init section as it is not itself
postfixed with .init

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/vmlinux.lds.S
include/asm-arm/setup.h

index ad2d66c93a5c3edf15f7a854683c9d67bfd76241..350b53b41e5b3e2dccdc2710a34b2a6b224f12d7 100644 (file)
@@ -29,7 +29,7 @@ SECTIONS
                        *(.arch.info)
                __arch_info_end = .;
                __tagtable_begin = .;
-                       *(.taglist)
+                       *(.taglist.init)
                __tagtable_end = .;
                . = ALIGN(16);
                __setup_start = .;
index adcbd79762bfa2138d6c38400e9ce8db47a05679..a4b3ebf9bdd134654f4353f76e7a14c1c5308156 100644 (file)
@@ -171,7 +171,7 @@ struct tagtable {
        int (*parse)(const struct tag *);
 };
 
-#define __tag __attribute_used__ __attribute__((__section__(".taglist")))
+#define __tag __attribute_used__ __attribute__((__section__(".taglist.init")))
 #define __tagtable(tag, fn) \
 static struct tagtable __tagtable_##fn __tag = { tag, fn }