a13a4c6346dada66de9ea84e542fd0e81a42201d
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / linkdebug.s
1 /* Assembler source used to create an object file for testing readelf's
2 and objdump's ability to process separate debug information files.
3
4 Copyright (C) 2017-2020 Free Software Foundation, Inc.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18
19 /* This is the separate debug info file. */
20
21 /* Create a .debug_abbrev section for use by the .debug_info section
22 in the main object file. */
23
24 .section .debug_abbrev,"",%progbits
25 abbrevs:
26 .uleb128 0x01 ;# Abbrev code.
27 .uleb128 0x11 ;# DW_TAG_compile_unit
28 .byte 0x00 ;# DW_children_no
29 .uleb128 0x03 ;# DW_AT_name
30 .uleb128 0x0e ;# DW_FORM_strp
31 .byte 0x00 ;# End of abbrev
32 .byte 0x00
33
34 .uleb128 0x02 ;# Abbrev code.
35 .uleb128 0x2e ;# DW_TAG_subprogram
36 .byte 0x00 ;# DW_children_no
37 .uleb128 0x03 ;# DW_AT_name
38 .uleb128 0x1f21 ;# DW_FORM_GNU_strp_alt
39 .byte 0x0 ;# End of abbrev
40 .byte 0x0
41
42 .byte 0x0 ;# Abbrevs terminator
43
44 /* Create a .debug_str section for remote use. This is also to check
45 the ability to dump the same section twice, if it exists in
46 both the main file and the separate debug info file. */
47
48 .section .debug_str,"MS",%progbits,1
49 string3:
50 .asciz "string-3"
51 .asciz "string-4"
52 .balign 2
53 string_end:
This page took 0.034786 seconds and 3 git commands to generate.