Re: ld plugin bfd_make_readable leak
[binutils-gdb.git] / gdb / testsuite / gdb.arch / skip-prologue.c
blob08ceacb6aa8d830abdafa8949413c798060fc3b8
1 /* Copyright 2024 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 void
19 f1 (void)
21 asm ("f1_prologue_end: .globl f1_prologue_end");
24 int
25 f2 (int a)
27 asm ("f2_prologue_end: .globl f2_prologue_end");
28 return a;
31 void
32 f3 (void)
34 asm ("f3_prologue_end: .globl f3_prologue_end");
35 f1 ();
38 int
39 f4 (int a)
41 asm ("f4_prologue_end: .globl f4_prologue_end");
42 return f2 (a);
45 int
46 main (void)
48 f1 ();
49 f2 (0);
50 f3 ();
51 f4 (0);
53 return 0;