tests: Add section attribute to defeat -freorder-blocks-and-partition.
authorMark Wielaard <mark@klomp.org>
Tue, 11 Sep 2018 10:58:14 +0000 (12:58 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 11 Sep 2018 10:58:14 +0000 (12:58 +0200)
commita1e892e920bbde60a9daa1f98c105c227ee7427d
tree85f4293de77f7e5f6377d54c75ad6788da1442b8
parent08ed26703d658b7ae57ab60b865d05c1cde777e3
tests: Add section attribute to defeat -freorder-blocks-and-partition.

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>
tests/ChangeLog
tests/backtrace-dwarf.c