Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4a31a229
Commit
4a31a229
authored
Jan 29, 2010
by
Uwe Kleine-König
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modpost: define ALL_XXX{IN,EX}IT_SECTIONS
Signed-off-by:
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
parent
b75dcabd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
scripts/mod/modpost.c
scripts/mod/modpost.c
+9
-6
No files found.
scripts/mod/modpost.c
View file @
4a31a229
...
...
@@ -781,10 +781,13 @@ static void check_section(const char *modname, struct elf_info *elf,
#define ALL_EXIT_TEXT_SECTIONS \
".exit.text$", ".devexit.text$", ".cpuexit.text$", ".memexit.text$"
#define ALL_INIT_SECTIONS INIT_SECTIONS, DEV_INIT_SECTIONS, \
CPU_INIT_SECTIONS, MEM_INIT_SECTIONS
#define ALL_EXIT_SECTIONS EXIT_SECTIONS, DEV_EXIT_SECTIONS, \
CPU_EXIT_SECTIONS, MEM_EXIT_SECTIONS
#define ALL_XXXINIT_SECTIONS DEV_INIT_SECTIONS, CPU_INIT_SECTIONS, \
MEM_INIT_SECTIONS
#define ALL_XXXEXIT_SECTIONS DEV_EXIT_SECTIONS, CPU_EXIT_SECTIONS, \
MEM_EXIT_SECTIONS
#define ALL_INIT_SECTIONS INIT_SECTIONS, ALL_XXXINIT_SECTIONS
#define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS
#define DATA_SECTIONS ".data$", ".data.rel$"
#define TEXT_SECTIONS ".text$"
...
...
@@ -876,7 +879,7 @@ const struct sectioncheck sectioncheck[] = {
},
/* Do not reference init code/data from devinit/cpuinit/meminit code/data */
{
.
fromsec
=
{
DEV_INIT_SECTIONS
,
CPU_INIT_SECTIONS
,
MEM_
INIT_SECTIONS
,
NULL
},
.
fromsec
=
{
ALL_XXX
INIT_SECTIONS
,
NULL
},
.
tosec
=
{
INIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXINIT_TO_INIT
,
},
...
...
@@ -894,7 +897,7 @@ const struct sectioncheck sectioncheck[] = {
},
/* Do not reference exit code/data from devexit/cpuexit/memexit code/data */
{
.
fromsec
=
{
DEV_EXIT_SECTIONS
,
CPU_EXIT_SECTIONS
,
MEM_
EXIT_SECTIONS
,
NULL
},
.
fromsec
=
{
ALL_XXX
EXIT_SECTIONS
,
NULL
},
.
tosec
=
{
EXIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXEXIT_TO_EXIT
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment