summaryrefslogtreecommitdiff
path: root/include/linux/section-names.h
diff options
context:
space:
mode:
authorTim Abbott <tabbott@MIT.EDU>2009-04-26 02:10:56 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-26 16:20:38 (GMT)
commitc80d471a476b6d6fe0bc1fd25293c24c66b7aaaf (patch)
treee7e6cf35915186c614728dadbd95c5197bff0075 /include/linux/section-names.h
parent0c8454f56623505a99463405fd7d5664adfbb094 (diff)
downloadlinux-fsl-qoriq-c80d471a476b6d6fe0bc1fd25293c24c66b7aaaf.tar.xz
Add new HEAD_TEXT_SECTION macro.
This patch is preparation for replacing all uses of ".head.text" or ".text.head" in the kernel with macros, so that the section name can later be changed without having to touch a lot of the kernel. Since some linker scripts do more complex things than referencing HEAD_TEXT, we add a HEAD_TEXT_SECTION macro that just contains the actual name. I've defined HEAD_TEXT_SECTION in a new header, include/linux/section-names.h, so that this section name only needs to appear in one place. I anticipate creating similar macro structures for a number of other section names. The long-term goal here is to be able to change the kernel's magic section names to those that are compatible with -ffunction-sections -fdata-sections. This requires renaming all magic sections with names of the form ".text.foo". Signed-off-by: Tim Abbott <tabbott@mit.edu> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/section-names.h')
-rw-r--r--include/linux/section-names.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/section-names.h b/include/linux/section-names.h
new file mode 100644
index 0000000..c956f4e
--- /dev/null
+++ b/include/linux/section-names.h
@@ -0,0 +1,6 @@
+#ifndef __LINUX_SECTION_NAMES_H
+#define __LINUX_SECTION_NAMES_H
+
+#define HEAD_TEXT_SECTION .head.text
+
+#endif /* !__LINUX_SECTION_NAMES_H */