GCC could partition main into an cold and hot block causing our symbol
lookup to fail in the backtrace-dwarf testcase. Add a section attribute
on "main" so that it will be kept together.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2018-09-11 Mark Wielaard <mark@klomp.org>
+
+ * backtrace-dwarf.c (main): Add section attribute.
+
2018-07-24 Mark Wielaard <mark@klomp.org>
* run-annobingroup.sh: Add testfile-annobingroup-i386.o tests.
}
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. */