Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
6a8d296f
Commit
6a8d296f
authored
Dec 05, 2011
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator: HAVE_SECTION_START_STOP
parent
1086d8ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
config.h
config.h
+1
-0
tools/configurator/configurator.c
tools/configurator/configurator.c
+7
-0
No files found.
config.h
View file @
6a8d296f
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#define HAVE_MMAP 1
#define HAVE_MMAP 1
#define HAVE_PROC_SELF_MAPS 1
#define HAVE_PROC_SELF_MAPS 1
#define HAVE_QSORT_R_PRIVATE_LAST 1
#define HAVE_QSORT_R_PRIVATE_LAST 1
#define HAVE_SECTION_START_STOP 1
#define HAVE_STACK_GROWS_UPWARDS 0
#define HAVE_STACK_GROWS_UPWARDS 0
#define HAVE_STATEMENT_EXPR 1
#define HAVE_STATEMENT_EXPR 1
#define HAVE_TYPEOF 1
#define HAVE_TYPEOF 1
...
...
tools/configurator/configurator.c
View file @
6a8d296f
...
@@ -181,6 +181,13 @@ static struct test tests[] = {
...
@@ -181,6 +181,13 @@ static struct test tests[] = {
" qsort_r(array, 3, sizeof(int), cmp, &called);
\n
"
" qsort_r(array, 3, sizeof(int), cmp, &called);
\n
"
" return called && array[0] == 2 && array[1] == 5 && array[2] == 9 ? 0 : 1;
\n
"
" return called && array[0] == 2 && array[1] == 5 && array[2] == 9 ? 0 : 1;
\n
"
"}
\n
"
},
"}
\n
"
},
{
"HAVE_SECTION_START_STOP"
,
DEFINES_FUNC
,
NULL
,
"static void *__attribute__((__section__(
\"
mysec
\"
))) p = &p;
\n
"
"static int func(void) {
\n
"
" extern void *__start_mysec[], *__stop_mysec[];
\n
"
" return __stop_mysec - __start_mysec;
\n
"
"}
\n
"
},
{
"HAVE_STACK_GROWS_UPWARDS"
,
DEFINES_EVERYTHING
|
EXECUTE
,
NULL
,
{
"HAVE_STACK_GROWS_UPWARDS"
,
DEFINES_EVERYTHING
|
EXECUTE
,
NULL
,
"static long nest(const void *base, unsigned int i)
\n
"
"static long nest(const void *base, unsigned int i)
\n
"
"{
\n
"
"{
\n
"
...
...
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