diff options
| author | Sam Ravnborg <sam@ravnborg.org> | 2009-06-14 16:10:41 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-14 16:10:41 -0400 |
| commit | 7923f90fffa8746f6457d4eea2109fd3d6414189 (patch) | |
| tree | cd262beed7fd28a20f708fdb7889d6c5d55f39d5 /include/linux | |
| parent | b9d97328e27b9272ed2ff2ad18de61aa1bf12af8 (diff) | |
vmlinux.lds.h update
Updated after review by Tim Abbott.
- Use HEAD_TEXT_SECTION
- Drop use of section-names.h and delete file
- Introduce EXIT_CALL
Deleting section-names.h required a few simple
updates of init.h
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Tim Abbott <tabbott@ksplice.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/init.h | 4 | ||||
| -rw-r--r-- | include/linux/section-names.h | 6 |
2 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 9f70c9f25d4b..b2189803f19a 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | #define _LINUX_INIT_H | 2 | #define _LINUX_INIT_H |
| 3 | 3 | ||
| 4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
| 5 | #include <linux/section-names.h> | ||
| 6 | #include <linux/stringify.h> | ||
| 7 | 5 | ||
| 8 | /* These macros are used to mark some functions or | 6 | /* These macros are used to mark some functions or |
| 9 | * initialized data (doesn't apply to uninitialized data) | 7 | * initialized data (doesn't apply to uninitialized data) |
| @@ -101,7 +99,7 @@ | |||
| 101 | #define __memexitconst __section(.memexit.rodata) | 99 | #define __memexitconst __section(.memexit.rodata) |
| 102 | 100 | ||
| 103 | /* For assembly routines */ | 101 | /* For assembly routines */ |
| 104 | #define __HEAD .section __stringify(HEAD_TEXT_SECTION),"ax" | 102 | #define __HEAD .section ".head.text","ax" |
| 105 | #define __INIT .section ".init.text","ax" | 103 | #define __INIT .section ".init.text","ax" |
| 106 | #define __FINIT .previous | 104 | #define __FINIT .previous |
| 107 | 105 | ||
diff --git a/include/linux/section-names.h b/include/linux/section-names.h deleted file mode 100644 index c956f4eb2adf..000000000000 --- a/include/linux/section-names.h +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | #ifndef __LINUX_SECTION_NAMES_H | ||
| 2 | #define __LINUX_SECTION_NAMES_H | ||
| 3 | |||
| 4 | #define HEAD_TEXT_SECTION .head.text | ||
| 5 | |||
| 6 | #endif /* !__LINUX_SECTION_NAMES_H */ | ||
