OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [binutils/] [testsuite/] [binutils-all/] [testranges.s] - Diff between revs 205 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 205 Rev 816
# Test .debug_info can reference .debug_ranges entries without ordering the
# Test .debug_info can reference .debug_ranges entries without ordering the
# offsets strictly as increasing.
# offsets strictly as increasing.
 
 
        .text
        .text
start:
start:
        .byte   1
        .byte   1
sub:
sub:
        .byte   2
        .byte   2
end:
end:
 
 
        .section        .debug_ranges,"",%progbits
        .section        .debug_ranges,"",%progbits
range:
range:
 
 
range_sub:
range_sub:
        .4byte  sub, end
        .4byte  sub, end
        .4byte  0, 0      ;# range terminator
        .4byte  0, 0      ;# range terminator
 
 
range_cu:
range_cu:
        .4byte  start, end
        .4byte  start, end
        .4byte  0, 0      ;# range terminator
        .4byte  0, 0      ;# range terminator
 
 
        .section        .debug_info,"",%progbits
        .section        .debug_info,"",%progbits
        .4byte  debugE - debugS ;# Length of Compilation Unit Info
        .4byte  debugE - debugS ;# Length of Compilation Unit Info
debugS:
debugS:
        .short  0x2     ;# DWARF version number
        .short  0x2     ;# DWARF version number
        .4byte  abbrev0 ;# Offset Into Abbrev. Section
        .4byte  abbrev0 ;# Offset Into Abbrev. Section
        .byte   0x4     ;# Pointer Size (in bytes)
        .byte   0x4     ;# Pointer Size (in bytes)
 
 
        .uleb128 0x1    ;# (DIE (0xb) DW_TAG_compile_unit)
        .uleb128 0x1    ;# (DIE (0xb) DW_TAG_compile_unit)
        .4byte  range_cu - range        ;# DW_AT_ranges
        .4byte  range_cu - range        ;# DW_AT_ranges
 
 
        .uleb128 0x2    ;# (DIE (0x6d) DW_TAG_subprogram)
        .uleb128 0x2    ;# (DIE (0x6d) DW_TAG_subprogram)
        .ascii "A\0"    ;# DW_AT_name
        .ascii "A\0"    ;# DW_AT_name
        .4byte  range_sub - range       ;# DW_AT_ranges
        .4byte  range_sub - range       ;# DW_AT_ranges
 
 
        ;# minimal section alignment on alpha-* is 2, ensure no new invalid CU
        ;# minimal section alignment on alpha-* is 2, ensure no new invalid CU
        ;# will be started.
        ;# will be started.
        .balign 2
        .balign 2
debugE:
debugE:
 
 
        .section        .debug_abbrev,"",%progbits
        .section        .debug_abbrev,"",%progbits
abbrev0:
abbrev0:
        .uleb128 0x1    ;# (abbrev code)
        .uleb128 0x1    ;# (abbrev code)
        .uleb128 0x11   ;# (TAG: DW_TAG_compile_unit)
        .uleb128 0x11   ;# (TAG: DW_TAG_compile_unit)
        .byte   0x0     ;# DW_children_no
        .byte   0x0     ;# DW_children_no
        .uleb128 0x55   ;# (DW_AT_ranges)
        .uleb128 0x55   ;# (DW_AT_ranges)
        .uleb128 0x6    ;# (DW_FORM_data4)
        .uleb128 0x6    ;# (DW_FORM_data4)
        .byte   0x0
        .byte   0x0
        .byte   0x0
        .byte   0x0
 
 
        .uleb128 0x2    ;# (abbrev code)
        .uleb128 0x2    ;# (abbrev code)
        .uleb128 0x2e   ;# (TAG: DW_TAG_subprogram)
        .uleb128 0x2e   ;# (TAG: DW_TAG_subprogram)
        .byte   0x0     ;# DW_children_no
        .byte   0x0     ;# DW_children_no
        .uleb128 0x3    ;# (DW_AT_name)
        .uleb128 0x3    ;# (DW_AT_name)
        .uleb128 0x8    ;# (DW_FORM_string)
        .uleb128 0x8    ;# (DW_FORM_string)
        .uleb128 0x55   ;# (DW_AT_ranges)
        .uleb128 0x55   ;# (DW_AT_ranges)
        .uleb128 0x6    ;# (DW_FORM_data4)
        .uleb128 0x6    ;# (DW_FORM_data4)
        .byte   0x0
        .byte   0x0
        .byte   0x0
        .byte   0x0
 
 
        .byte   0x0     ;# abbrevs terminator
        .byte   0x0     ;# abbrevs terminator
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.