gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gold / testsuite / keep_text_section_prefix.cc
CommitLineData
779bdadb
ST
1/* keep_text_section_prefix.cc -- a test case for gold
2
b3adc24a 3 Copyright (C) 2018-2020 Free Software Foundation, Inc.
779bdadb
ST
4 Written by Sriraman Tallam <tmsriram@google.com>
5
6 This file is part of gold.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
22
23extern "C" {
24__attribute__((section(".text.unlikely.foo")))
25int unlikely_foo(void) {
26 return 0;
27}
28
29__attribute__((section(".text.hot.foo")))
30int hot_foo(void) {
31 return 0;
32}
33
34__attribute__((section(".text.startup.foo")))
35int startup_foo(void) {
36 return 0;
37}
38
39__attribute__((section(".text.exit.foo")))
40int exit_foo(void) {
41 return 0;
42}
43
44__attribute__((section(".text.foo")))
45int regular_foo(void) {
46 return 0;
47}
48
49int main(void) {
50 return 0;
51}
52}
This page took 0.127826 seconds and 4 git commands to generate.