summaryrefslogtreecommitdiffstats
path: root/tests/backtrace-dwarf.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-09-14 12:28:58 +0200
committerMark Wielaard <mark@klomp.org>2018-09-14 12:28:58 +0200
commit029c76f0d4b06584e370b5fc0112712ba99a6219 (patch)
tree20c91ff0dc7125251b26ded357e71c542b67d5cc /tests/backtrace-dwarf.c
parent94c975eefdfbfa9319b7bab69600c76fe6be7910 (diff)
parent52b6b2f1f49e7385527e9f311f248092be0c0b61 (diff)
Merge branch 'master' into mjw/RH-DTSdts-0.174
elfutils 0.174 release Removed new M68K and RISCV tests.
Diffstat (limited to 'tests/backtrace-dwarf.c')
-rw-r--r--tests/backtrace-dwarf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c
index 7ff826cd..35f25ed6 100644
--- a/tests/backtrace-dwarf.c
+++ b/tests/backtrace-dwarf.c
@@ -21,10 +21,10 @@
#include <stdio_ext.h>
#include <locale.h>
#include <errno.h>
-#include <error.h>
#include <unistd.h>
#include <sys/types.h>
#include ELFUTILS_HEADER(dwfl)
+#include "system.h"
#ifndef __linux__
@@ -124,6 +124,7 @@ thread_callback (Dwfl_Thread *thread, void *thread_arg)
}
int
+__attribute__((section(".main"))) /* Defeat -freorder-blocks-and-partition */
main (int argc __attribute__ ((unused)), char **argv)
{
/* We use no threads here which can interfere with handling a stream. */