Commit 6a8d296f authored by Rusty Russell's avatar Rusty Russell

configurator: HAVE_SECTION_START_STOP

parent 1086d8ce
......@@ -42,6 +42,7 @@
#define HAVE_MMAP 1
#define HAVE_PROC_SELF_MAPS 1
#define HAVE_QSORT_R_PRIVATE_LAST 1
#define HAVE_SECTION_START_STOP 1
#define HAVE_STACK_GROWS_UPWARDS 0
#define HAVE_STATEMENT_EXPR 1
#define HAVE_TYPEOF 1
......
......@@ -181,6 +181,13 @@ static struct test tests[] = {
" qsort_r(array, 3, sizeof(int), cmp, &called);\n"
" return called && array[0] == 2 && array[1] == 5 && array[2] == 9 ? 0 : 1;\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,
"static long nest(const void *base, unsigned int i)\n"
"{\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment