Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144158
b: refs/heads/master
c: c80d471
h: refs/heads/master
v: v3
  • Loading branch information
Tim Abbott authored and Linus Torvalds committed Apr 26, 2009
1 parent 81041a1 commit 49d3431
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c8454f56623505a99463405fd7d5664adfbb094
refs/heads/master: c80d471a476b6d6fe0bc1fd25293c24c66b7aaaf
4 changes: 3 additions & 1 deletion trunk/include/asm-generic/vmlinux.lds.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <linux/section-names.h>

#ifndef LOAD_OFFSET
#define LOAD_OFFSET 0
#endif
Expand Down Expand Up @@ -331,7 +333,7 @@
#endif

/* Section used for early init (in .S files) */
#define HEAD_TEXT *(.head.text)
#define HEAD_TEXT *(HEAD_TEXT_SECTION)

/* init and exit section handling */
#define INIT_DATA \
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define _LINUX_INIT_H

#include <linux/compiler.h>
#include <linux/section-names.h>
#include <linux/stringify.h>

/* These macros are used to mark some functions or
* initialized data (doesn't apply to uninitialized data)
Expand Down Expand Up @@ -107,7 +109,7 @@
#define __memexitconst __section(.memexit.rodata)

/* For assembly routines */
#define __HEAD .section ".head.text","ax"
#define __HEAD .section __stringify(HEAD_TEXT_SECTION),"ax"
#define __INIT .section ".init.text","ax"
#define __FINIT .previous

Expand Down
6 changes: 6 additions & 0 deletions trunk/include/linux/section-names.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 49d3431

Please sign in to comment.