| 1 |
/* Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 2 |
|
| 3 |
This program is free software; you can redistribute it and/or modify |
| 4 |
it under the terms of the GNU General Public License as published by |
| 5 |
the Free Software Foundation; either version 3 of the License, or |
| 6 |
(at your option) any later version. |
| 7 |
|
| 8 |
This program is distributed in the hope that it will be useful, |
| 9 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
GNU General Public License for more details. |
| 12 |
|
| 13 |
You should have received a copy of the GNU General Public License |
| 14 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 15 |
|
| 16 |
|
| 17 |
/* This file is intended to check the encoding and decoding of DWARF attributes. |
| 18 |
Currently only numeric attributes are tested, but this file should be extended |
| 19 |
to cover other types of attribute as well. */ |
| 20 |
|
| 21 |
.file "dwarf-attributes.S" |
| 22 |
|
| 23 |
.section .debug_info,"",%progbits |
| 24 |
.4byte .Ldebug_info_end - .Ldebug_info_start /* Length of Compilation Unit Info. */ |
| 25 |
|
| 26 |
.Ldebug_info_start: |
| 27 |
.2byte 0x5 /* DWARF version number. */ |
| 28 |
.byte 0x1 /* DW_UT_compile. */ |
| 29 |
.byte 0x4 /* Pointer Size (in bytes). */ |
| 30 |
.4byte .Ldebug_abbrevs /* Offset Into Abbrev. Section. */ |
| 31 |
|
| 32 |
/* Start of DIE 0xc. */ |
| 33 |
|
| 34 |
.uleb128 0x1 /* Using abbrev #1 */ |
| 35 |
.byte 1 /* Ordering: column major. */ |
| 36 |
.2byte 1 /* Language: C89. */ |
| 37 |
.byte 1 /* Visibility: local. */ |
| 38 |
.byte 1 /* Inline: inlined. */ |
| 39 |
.byte 1 /* Accessibility: public. */ |
| 40 |
.byte 1 /* Calling convention: normal. */ |
| 41 |
.byte 3,1,1,2 /* Discriminate list: range. */ |
| 42 |
.byte 1 /* Encoding: address. */ |
| 43 |
.byte 1 /* Identifier case: up. */ |
| 44 |
.byte 1 /* Virtuality: virtual. */ |
| 45 |
.byte 1 /* Decimal sign: unsigned. */ |
| 46 |
.byte 1 /* Endianity: big. */ |
| 47 |
.byte 1 /* Defaulted: in class. */ |
| 48 |
|
| 49 |
.uleb128 0x1 /* Using abbrev #1 */ |
| 50 |
.byte 0 /* Ordering: row major */ |
| 51 |
.2byte 0x0016 /* Language: Go. */ |
| 52 |
.byte 2 /* Visibility: exported. */ |
| 53 |
.byte 0 /* Inline: not. */ |
| 54 |
.byte 2 /* Accessibility: protected. */ |
| 55 |
.byte 5 /* Calling convention: pass by value. */ |
| 56 |
.byte 2,0,1 /* Discriminate list: label. */ |
| 57 |
.byte 0x12 /* Encoding: ASCII. */ |
| 58 |
.byte 0 /* Identifier case: sensitive. */ |
| 59 |
.byte 0 /* Virtuality: none. */ |
| 60 |
.byte 2 /* Decimal sign: leading overpunch. */ |
| 61 |
.byte 0 /* Endianity: default. */ |
| 62 |
.byte 0 /* Defaulted: no. */ |
| 63 |
|
| 64 |
.uleb128 0x1 /* Using abbrev #1 */ |
| 65 |
.byte -1 /* Ordering: undefined. */ |
| 66 |
.2byte 0x8001 /* Language: MIPS Assembler. */ |
| 67 |
.byte 3 /* Visibility: qualified. */ |
| 68 |
.byte 3 /* Inline: declared. */ |
| 69 |
.byte 3 /* Accessibility: private. */ |
| 70 |
.byte 0x40 /* Calling convention: Renesas SH. */ |
| 71 |
.byte 5,1,2,3,0,4 /* Discriminate list: range and label. */ |
| 72 |
.byte 0x81 /* Encoding: user specified. */ |
| 73 |
.byte 3 /* Identifier case: insensitive. */ |
| 74 |
.byte 2 /* Virtuality: pure. */ |
| 75 |
.byte 5 /* Decimal sign: trailing separate. */ |
| 76 |
.byte 0x50 /* Endianity: user specified. */ |
| 77 |
.byte 2 /* Defaulted: out of class. */ |
| 78 |
|
| 79 |
.byte 0 /* End of children of DIE 0xc. */ |
| 80 |
.Ldebug_info_end: |
| 81 |
|
| 82 |
|
| 83 |
.section .debug_abbrev,"",%progbits |
| 84 |
.Ldebug_abbrevs: |
| 85 |
.uleb128 0x1 /* (abbrev code) */ |
| 86 |
.uleb128 0x5555 /* (TAG: DW_TAG_lo_user + 0x1555) */ |
| 87 |
.byte 0 /* DW_children_no */ |
| 88 |
|
| 89 |
/* Attributes to be tested. Sorted by attribute value. */ |
| 90 |
|
| 91 |
.uleb128 0x9 /* (DW_AT_ordering) */ |
| 92 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 93 |
|
| 94 |
.uleb128 0x13 /* (DW_AT_language) */ |
| 95 |
.uleb128 0x05 /* (DW_FORM_data2) */ |
| 96 |
|
| 97 |
.uleb128 0x17 /* (DW_AT_visibility) */ |
| 98 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 99 |
|
| 100 |
.uleb128 0x20 /* (DW_AT_inline) */ |
| 101 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 102 |
|
| 103 |
.uleb128 0x32 /* (DW_AT_accessibility) */ |
| 104 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 105 |
|
| 106 |
.uleb128 0x36 /* (DW_AT_calling_convention) */ |
| 107 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 108 |
|
| 109 |
.uleb128 0x3d /* (DW_AT_discr_lists) */ |
| 110 |
.uleb128 0x0a /* (DW_FORM_block1) */ |
| 111 |
|
| 112 |
.uleb128 0x3e /* (DW_AT_encoding) */ |
| 113 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 114 |
|
| 115 |
.uleb128 0x42 /* (DW_AT_identifier_case) */ |
| 116 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 117 |
|
| 118 |
.uleb128 0x4c /* (DW_AT_virtuality) */ |
| 119 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 120 |
|
| 121 |
.uleb128 0x5e /* (DW_AT_decimal_sign) */ |
| 122 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 123 |
|
| 124 |
.uleb128 0x65 /* (DW_AT_endianity) */ |
| 125 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 126 |
|
| 127 |
.uleb128 0x8b /* (DW_AT_defaulted) */ |
| 128 |
.uleb128 0x0b /* (DW_FORM_data1) */ |
| 129 |
|
| 130 |
.byte 0 /* End of abbreviation. */ |
| 131 |
.byte 0 |
| 132 |
|
| 133 |
.byte 0 /* End of abbreviations. */ |