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

Subversion Repositories open8_urisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /open8_urisc/trunk
    from Rev 51 to Rev 52
    Reverse comparison

Rev 51 → Rev 52

/gnu/binutils/gas/testsuite/gas/elf/file.s
0,0 → 1,29
# delta (m68k sub-target)
.file "~tilde"
 
# ia64
.file "hash#"
 
# m68k
.ifdef m86k
.opt nocase
.endif
.file "lower"
.file "UPPER"
 
# mmix
.file ":colon"
.ifdef mmix
.prefix prefix
.endif
.file "/dir/file.s"
 
# ppc/xcoff
.file "[brackets]"
.file "{braces}"
 
# thumb (arm sub-target)
.file "slash/data"
 
# xtensa (through --rename-section file.s=file.c)
.file "file.s"
/gnu/binutils/gas/testsuite/gas/elf/pseudo.d
0,0 → 1,2
#name: Ill-formed directives
#error-output: pseudo.l
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-2.s
0,0 → 1,199
/* This testcase is derived from a similar test in GDB.
 
Copyright 2009 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
 
/* Dummy function to provide debug information for. */
 
.file "dwarf2-2.c"
.section .gnu.linkonce.t.foo,"axG",%progbits,foo,comdat
.globl _start
_start:
.int 0
.Lbegin_text1:
.globl func_cu1
.type func_cu1, %function
func_cu1:
.Lbegin_func_cu1:
.int 0
.Lend_func_cu1:
.size func_cu1, .-func_cu1
.Lend_text1:
 
/* Debug information */
 
.section .debug_info,"G",%progbits,foo,comdat
.Lcu1_begin:
/* CU header */
.4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
.Lcu1_start:
.2byte 2 /* DWARF Version */
.4byte .Labbrev1_begin /* Offset into abbrev section */
.byte 4 /* Pointer size */
 
/* CU die */
.uleb128 1 /* Abbrev: DW_TAG_compile_unit */
.4byte .Lline1_begin /* DW_AT_stmt_list */
.4byte .Lend_text1 /* DW_AT_high_pc */
.4byte .Lbegin_text1 /* DW_AT_low_pc */
.ascii "file1.txt\0" /* DW_AT_name */
.ascii "GNU C 3.3.3\0" /* DW_AT_producer */
.byte 1 /* DW_AT_language (C) */
 
/* func_cu1 */
.uleb128 2 /* Abbrev: DW_TAG_subprogram */
.byte 1 /* DW_AT_external */
.byte 1 /* DW_AT_decl_file */
.byte 2 /* DW_AT_decl_line */
.ascii "func_cu1\0" /* DW_AT_name */
.4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
.4byte .Lbegin_func_cu1 /* DW_AT_low_pc */
.4byte .Lend_func_cu1 /* DW_AT_high_pc */
.byte 1 /* DW_AT_frame_base: length */
.byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */
 
.Ltype_int:
.uleb128 3 /* Abbrev: DW_TAG_base_type */
.ascii "int\0" /* DW_AT_name */
.byte 4 /* DW_AT_byte_size */
.byte 5 /* DW_AT_encoding */
 
.byte 0 /* End of children of CU */
 
.Lcu1_end:
 
/* Line table */
.section .debug_line,"G",%progbits,foo,comdat
.Lline1_begin:
.4byte .Lline1_end - .Lline1_start /* Initial length */
.Lline1_start:
.2byte 2 /* Version */
.4byte .Lline1_lines - .Lline1_hdr /* header_length */
.Lline1_hdr:
.byte 1 /* Minimum insn length */
.byte 1 /* default_is_stmt */
.byte 1 /* line_base */
.byte 1 /* line_range */
.byte 0x10 /* opcode_base */
 
/* Standard lengths */
.byte 0
.byte 1
.byte 1
.byte 1
.byte 1
.byte 0
.byte 0
.byte 0
.byte 1
.byte 0
.byte 0
.byte 1
.byte 0
.byte 0
.byte 0
 
/* Include directories */
.byte 0
 
/* File names */
.ascii "file1.txt\0"
.uleb128 0
.uleb128 0
.uleb128 0
 
.byte 0
 
.Lline1_lines:
.byte 0 /* DW_LNE_set_address */
.uleb128 5
.byte 2
.4byte .Lbegin_func_cu1
 
.byte 3 /* DW_LNS_advance_line */
.sleb128 3 /* ... to 4 */
 
.byte 1 /* DW_LNS_copy */
 
.byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */
 
.byte 0 /* DW_LNE_set_address */
.uleb128 5
.byte 2
.4byte .Lend_func_cu1
 
.byte 0 /* DW_LNE_end_of_sequence */
.uleb128 1
.byte 1
 
.Lline1_end:
 
/* Abbrev table */
.section .debug_abbrev,"G",%progbits,foo,comdat
.Labbrev1_begin:
.uleb128 1 /* Abbrev code */
.uleb128 0x11 /* DW_TAG_compile_unit */
.byte 1 /* has_children */
.uleb128 0x10 /* DW_AT_stmt_list */
.uleb128 0x6 /* DW_FORM_data4 */
.uleb128 0x12 /* DW_AT_high_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x11 /* DW_AT_low_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x3 /* DW_AT_name */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0x25 /* DW_AT_producer */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0x13 /* DW_AT_language */
.uleb128 0xb /* DW_FORM_data1 */
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
 
.uleb128 2 /* Abbrev code */
.uleb128 0x2e /* DW_TAG_subprogram */
.byte 0 /* has_children */
.uleb128 0x3f /* DW_AT_external */
.uleb128 0xc /* DW_FORM_flag */
.uleb128 0x3a /* DW_AT_decl_file */
.uleb128 0xb /* DW_FORM_data1 */
.uleb128 0x3b /* DW_AT_decl_line */
.uleb128 0xb /* DW_FORM_data1 */
.uleb128 0x3 /* DW_AT_name */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0x49 /* DW_AT_type */
.uleb128 0x13 /* DW_FORM_ref4 */
.uleb128 0x11 /* DW_AT_low_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x12 /* DW_AT_high_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x40 /* DW_AT_frame_base */
.uleb128 0xa /* DW_FORM_block1 */
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
 
.uleb128 3 /* Abbrev code */
.uleb128 0x24 /* DW_TAG_base_type */
.byte 0 /* has_children */
.uleb128 0x3 /* DW_AT_name */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0xb /* DW_AT_byte_size */
.uleb128 0xb /* DW_FORM_data1 */
.uleb128 0x3e /* DW_AT_encoding */
.uleb128 0xb /* DW_FORM_data1 */
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
 
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
/gnu/binutils/gas/testsuite/gas/elf/struct.s
0,0 → 1,9
.globl w1, w2, w3, l1, l2
.data
l1: .long 0
.struct 2
w1: .short 0
w2: .short 0
w3: .short 0
.previous
l2: .long 0
/gnu/binutils/gas/testsuite/gas/elf/groupauto.s
0,0 → 1,17
.text
.byte 1
.section .foo,"a?","progbits"
.byte 1
 
.section .text,"axG",%progbits,some_group,comdat
.byte 1
.pushsection .note.bar,"?","note"
.4byte 1f-0f, 3f-2f, 123
0: .asciz "somevendor"
1: .balign 4
2: .byte 1
.uleb128 5f-4f
3: .balign 4
.popsection
4: .byte 2
5: .byte 3
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-4.s
0,0 → 1,12
.file "__dn_comp.c"
.section .debug_abbrev,"",%progbits
.Ldebug_abbrev0:
.section .debug_info,"",%progbits
.Ldebug_info0:
.section .debug_line,"",%progbits
.Ldebug_line0:
.text
.Ltext0:
.Letext0:
.section .debug_abbrev
.byte 0x0
/gnu/binutils/gas/testsuite/gas/elf/pseudo.l
0,0 → 1,12
[^:]*: Assembler messages:
[^:]*:2: Error: Missing symbol name in directive
[^:]*:4: Error: Missing symbol name in directive
[^:]*:6: Error: Missing symbol name in directive
[^:]*:8: Error: Missing symbol name in directive
[^:]*:10: Error: Missing symbol name in directive
[^:]*:12: Error: Missing symbol name in directive
[^:]*:14: Error: Missing symbol name in directive
[^:]*:14: Error: expected comma after name in .symver
[^:]*:16: Error: Missing symbol name in directive
[^:]*:18: Error: Missing symbol name in directive
[^:]*:18: Error: unrecognized symbol type ""
/gnu/binutils/gas/testsuite/gas/elf/pseudo.s
0,0 → 1,18
.hidden h1n1
.hidden
# next line has spaces
.hidden
# next line has tabs
.hidden
.internal i2
.internal
.protected porpoise
.protected
.local foo
.local
.symver foo, foo@version1
.symver
.weak wimp
.weak
.type foo1,object
.type
/gnu/binutils/gas/testsuite/gas/elf/group1b.d
0,0 → 1,9
#readelf: -g
#name: group section with multiple sections of same name
#source: group1.s
 
#...
COMDAT group section \[ 1\] `\.group' \[.foo_group\] contains 1 sections:
[ ]+\[Index\][ ]+Name
[ ]+\[.*\][ ]+.text
#pass
/gnu/binutils/gas/testsuite/gas/elf/section2.e-armeabi
0,0 → 1,9
 
Symbol table '.symtab' contains 6 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +4
+5: 0+0 +0 +SECTION +LOCAL +DEFAULT +5
/gnu/binutils/gas/testsuite/gas/elf/section1.d
0,0 → 1,20
#objdump: -s
#name: elf section1
# The h8300 port issues a warning message for
# new sections created without atrributes.
#skip: h8300-*
 
.*: +file format .*
 
Contents of section .data:
0+000 00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00.*
# The MIPS includes a 'section .reginfo' and such here.
#...
Contents of section A:
0+000 01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01.*
Contents of section B:
0+000 02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02.*
Contents of section C:
0+000 03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03.*
# Arm includes a .ARM.attributes section here
#...
/gnu/binutils/gas/testsuite/gas/elf/section3.d
0,0 → 1,6
#readelf: -S
#name: note section
 
#...
[ ]*\[.*\][ ]+\.foo[ ]+NOTE.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/groupautob.d
0,0 → 1,10
#readelf: -g
#name: automatic section group b
#source: groupauto.s
 
#...
COMDAT group section \[ 1\] `\.group' \[some_group\] contains 2 sections:
[ ]+\[Index\][ ]+Name
[ ]+\[.*\][ ]+.text
[ ]+\[.*\][ ]+.note.bar
#pass
/gnu/binutils/gas/testsuite/gas/elf/section5.e
0,0 → 1,5
.* \.test0[ ]+PROGBITS[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[ ]+[0-9]+.*
.* \.test1[ ]+PROGBITS[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[ ]+[0-9]+.*
.* \.test2[ ]+PROGBITS[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[ ]+[0-9]+.*
.* \.test3[ ]+PROGBITS[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+WA[ ]+[0-9]+.*
.* \.test4[ ]+NOBITS[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+[0-9a-fA-F]+[ ]+WA[ ]+[0-9]+.*
/gnu/binutils/gas/testsuite/gas/elf/section7.d
0,0 → 1,24
#objdump: -s
#name: elf section7
# .pushsection always creates the named section, but the
# test harness translates ".text" into "P" for the RX...
#not-target: rx-*
 
.*: +file format .*
 
# The MIPS includes a 'section .reginfo' and such here.
#...
Contents of section .bar:
0000 00000000 00000000 0000 .*
Contents of section .bar1:
0000 0102 .*
Contents of section .bar2:
0000 0102 .*
Contents of section .bar3:
0000 0103 .*
Contents of section .bar4:
0000 04 .*
Contents of section .text:
0000 feff .*
# Arm includes a .ARM.attributes section here
#...
/gnu/binutils/gas/testsuite/gas/elf/equ-reloc.d
0,0 → 1,13
#objdump: -rsj .data
#name: elf equate relocs
 
.*: +file format .*
 
RELOCATION RECORDS FOR \[.*\]:
OFFSET *TYPE *VALUE
0*0 [^ ]+ +(\.bss(\+0x0*4)?|y1)
0*4 [^ ]+ +(\.bss(\+0x0*8)?|y2)
#...
Contents of section .data:
0000 0[04]00000[04] 0[08]00000[08].*
#pass
/gnu/binutils/gas/testsuite/gas/elf/section2.e-mips
0,0 → 1,10
 
Symbol table '.symtab' contains 7 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1 (|\.text)
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2 (|\.data)
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3 (|\.bss)
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +6 (|A)
+5: 0+0 +0 +SECTION +LOCAL +DEFAULT +4 (|\.reginfo)
+6: 0+0 +0 +SECTION +LOCAL +DEFAULT +5 (|\.pdr)
/gnu/binutils/gas/testsuite/gas/elf/section9.d
0,0 → 1,7
#readelf: -S --wide
#name: section flags
 
#...
[ ]*\[.*\][ ]+\.gnu\.lto_main[ ]+PROGBITS.*[ ]+E[ ]+.*
[ ]*\[.*\][ ]+\.gnu\.lto_\.pureconst[ ]+PROGBITS.*[ ]+E[ ]+.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/section5.l
0,0 → 1,36
.*: Assembler messages:
.*:7: Warning: .*
.*:7: Warning: .*
.*:10: Warning: .*
.*:16: Warning: .*
.*:18: Warning: .*
.*:20: Warning: .*
.*:22: Warning: .*
.*:24: Warning: .*
.*GAS.*
 
 
[ ]+[0-9]+[ ]+.section[ ]+.test0[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test1,[ ]*"",[ ]*%progbits[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test2[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test3,[ ]*"aw"[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test4,[ ]*"aw",[ ]*%nobits[ ]*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test1,[ ]*"aw",[ ]*%nobits[ ]*
[ ]+[0-9]+[ ]+.*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test2,[ ]*"w"[ ]*
[ ]+[0-9]+[ ]+.*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test3,[ ]*"aw",[ ]*%progbits[ ]*
[ ]+[0-9]+[ ]+.*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.test4,[ ]*"aw"[ ]*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.data,[ ]*"a"[ ]*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.bss,[ ]*"a"[ ]*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.data,[ ]*"aw",[ ]*%nobits[ ]*
[ ]+[0-9]+[ ]*
[ ]+[0-9]+[ ]+.section[ ]+.bss,[ ]*"aw",[ ]*%progbits[ ]*
/gnu/binutils/gas/testsuite/gas/elf/ifunc-1.d
0,0 → 1,8
#readelf: -s
#name: .set with IFUNC
#not-target: alpha*
 
#...
[ ]+[0-9]+:[ ]+[0-9a-f]+[ ]+[0-9]+[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+[1-9] __GI_foo
[ ]+[0-9]+:[ ]+[0-9a-f]+[ ]+[0-9]+[ ]+IFUNC[ ]+GLOBAL[ ]+DEFAULT[ ]+[1-9] foo
#pass
/gnu/binutils/gas/testsuite/gas/elf/section1.s
0,0 → 1,32
.data
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0
.section A
.byte 1,1,1,1,1,1,1,1,1,1,1
.previous
.byte 0
.previous
.byte 1
.pushsection B
.byte 2,2,2,2,2,2,2,2,2,2,2,2
.previous
.byte 1
.previous
.byte 2
.pushsection C
.byte 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
.previous
.byte 2
.previous
.byte 3
.popsection
.byte 2
.previous
.byte 1
.previous
.byte 2
.popsection
.byte 1
.previous
.byte 0
.previous
.byte 1
/gnu/binutils/gas/testsuite/gas/elf/section3.s
0,0 → 1,2
.section .foo,"","note"
.byte 0,0,0,0
/gnu/binutils/gas/testsuite/gas/elf/section5.s
0,0 → 1,24
.section .test0
.section .test1, "", %progbits
.section .test2
.section .test3, "aw"
.section .test4, "aw", %nobits
 
.section .test1, "aw", %nobits
test1: .long test1
 
.section .test2, "w"
test2: .long test2
 
.section .test3, "aw", %progbits
test3: .long test3
 
.section .test4, "aw"
 
.section .data, "a"
 
.section .bss, "a"
 
.section .data, "aw", %nobits
 
.section .bss, "aw", %progbits
/gnu/binutils/gas/testsuite/gas/elf/section7.s
0,0 → 1,38
.section .bar,"a"
.byte 0
.pushsection .bar1,2,"a"
.byte 2
.popsection
.byte 0
.pushsection .bar2,3,"a"
.byte 2
.popsection
.byte 0
.pushsection .bar3,2,"a", %progbits
.byte 3
.popsection
.byte 0
.pushsection .bar4
.byte 4
.popsection
.byte 0
.pushsection .text,1,"axG",%progbits,foo,comdat
.byte -1
.popsection
.byte 0
.pushsection .text,"axG",%progbits,foo,comdat
.byte -2
.popsection
.byte 0
.pushsection .bar1,"a"
.byte 1
.popsection
.byte 0
.pushsection .bar3,"a", %progbits
.byte 1
.popsection
.byte 0
.pushsection .bar2,"a"
.byte 1
.popsection
.byte 0
/gnu/binutils/gas/testsuite/gas/elf/equ-reloc.s
0,0 → 1,16
.data
.long x1, x2
 
.global x1, x2, z2
 
.set x1, y1
.set x2, y2
.set x2, z2
 
.section .bss, "aw", %nobits
x1:
.zero 4
y1:
.zero 4
y2:
.zero 4
/gnu/binutils/gas/testsuite/gas/elf/section9.s
0,0 → 1,4
.section .gnu.lto_main,"",%progbits
.byte 0,0,0,0
.section .gnu.lto_.pureconst,"",%progbits
.byte 0,0,0,0
/gnu/binutils/gas/testsuite/gas/elf/section2.e-rx
0,0 → 1,9
 
Symbol table '.symtab' contains . entries:
Num: Value[ ]* Size Type Bind Vis Ndx Name
0: 0+0 0 NOTYPE LOCAL DEFAULT UND
1: 0+0 0 SECTION LOCAL DEFAULT 1
2: 0+0 0 SECTION LOCAL DEFAULT 2
3: 0+0 0 SECTION LOCAL DEFAULT 3
4: 0+0 0 SECTION LOCAL DEFAULT 4
#...
/gnu/binutils/gas/testsuite/gas/elf/group0b.d
0,0 → 1,10
#readelf: -g
#name: group section
#source: group0.s
 
#...
COMDAT group section \[ 1\] `\.group' \[.foo_group\] contains 2 sections:
[ ]+\[Index\][ ]+Name
[ ]+\[.*\][ ]+.foo
[ ]+\[.*\][ ]+.bar
#pass
/gnu/binutils/gas/testsuite/gas/elf/ifunc-1.s
0,0 → 1,9
.globl __GI_foo
.set __GI_foo, foo
.text
.globl foo
.type foo, %function
foo:
.byte 0x0
.size foo, .-foo
.type foo, %gnu_indirect_function
/gnu/binutils/gas/testsuite/gas/elf/type-noifunc.e
0,0 → 1,5
+.: 0+0 +1 +FUNC +LOCAL +DEFAULT +. function
+.: 0+0 +1 +OBJECT +LOCAL +DEFAULT +. object
+.: 0+1 +1 +TLS +LOCAL +DEFAULT +. tls_object
+..: 0+2 +1 +NOTYPE +LOCAL +DEFAULT +. notype
+..: 0+1 +1 +(COMMON|OBJECT) +GLOBAL +DEFAULT +COM common
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-1.d
0,0 → 1,101
#as: --compress-debug-sections
#readelf: -w
#name: DWARF2 1
#not-target: ia64-*-*
 
Contents of the .[z]?debug_info section:
 
Compilation Unit @ offset 0x0:
Length: 0x4e \(32-bit\)
Version: 2
Abbrev Offset: 0
Pointer Size: 4
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
<c> DW_AT_stmt_list : 0x0
<10> DW_AT_high_pc : 0x.
<14> DW_AT_low_pc : 0x.
<18> DW_AT_name : file1.txt
<22> DW_AT_producer : GNU C 3.3.3
<2e> DW_AT_language : 1 \(ANSI C\)
<1><2f>: Abbrev Number: 2 \(DW_TAG_subprogram\)
<30> DW_AT_external : 1
<31> DW_AT_decl_file : 1
<32> DW_AT_decl_line : 2
<33> DW_AT_name : func_cu1
<3c> DW_AT_type : <0x4a>
<40> DW_AT_low_pc : 0x.
<44> DW_AT_high_pc : 0x.
<48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5 \([^()]*\)\)
<1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\)
<4b> DW_AT_name : int
<4f> DW_AT_byte_size : 4
<50> DW_AT_encoding : 5 \(signed\)
 
Raw dump of debug contents of section .[z]?debug_line:
 
Offset: 0x0
Length: 62
DWARF Version: 2
Prologue Length: 35
Minimum Instruction Length: 1
Initial value of 'is_stmt': 1
Line Base: 1
Line Range: 1
Opcode Base: 16
 
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 args
Opcode 3 has 1 args
Opcode 4 has 1 args
Opcode 5 has 1 args
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 args
Opcode 10 has 0 args
Opcode 11 has 0 args
Opcode 12 has 1 args
Opcode 13 has 0 args
Opcode 14 has 0 args
Opcode 15 has 0 args
 
The Directory Table is empty.
 
The File Name Table:
Entry Dir Time Size Name
1 0 0 0 file1.txt
 
Line Number Statements:
Extended opcode 2: set Address to .*
Advance Line by 3 to 4
Copy
Copy
Extended opcode 2: set Address to .*
Extended opcode 1: End of Sequence
 
 
Contents of the .[z]?debug_abbrev section:
 
Number TAG
1 DW_TAG_compile_unit \[has children\]
DW_AT_stmt_list DW_FORM_data4
DW_AT_high_pc DW_FORM_addr
DW_AT_low_pc DW_FORM_addr
DW_AT_name DW_FORM_string
DW_AT_producer DW_FORM_string
DW_AT_language DW_FORM_data1
2 DW_TAG_subprogram \[no children\]
DW_AT_external DW_FORM_flag
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_name DW_FORM_string
DW_AT_type DW_FORM_ref4
DW_AT_low_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
DW_AT_frame_base DW_FORM_block1
3 DW_TAG_base_type \[no children\]
DW_AT_name DW_FORM_string
DW_AT_byte_size DW_FORM_data1
DW_AT_encoding DW_FORM_data1
 
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-3.d
0,0 → 1,38
#readelf: -wl
#name: DWARF2 3
#not-target: ia64-*-* h8300-*-*
 
Raw dump of debug contents of section \.z?debug_line:
 
Offset: 0x0
Length: 41
DWARF Version: 2
Prologue Length: 35
Minimum Instruction Length: [0-9]*
Initial value of 'is_stmt': 1
Line Base: -5
Line Range: 14
Opcode Base: 13
 
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 args
Opcode 3 has 1 args
Opcode 4 has 1 args
Opcode 5 has 1 args
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 args
Opcode 10 has 0 args
Opcode 11 has 0 args
Opcode 12 has 1 args
 
The Directory Table is empty.
 
The File Name Table:
Entry Dir Time Size Name
1 0 0 0 /beginwarn.c
 
Line Number Statements:
 
/gnu/binutils/gas/testsuite/gas/elf/section2.e-armelf
0,0 → 1,10
 
Symbol table '.symtab' contains 7 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +4
+5: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +4 \$d
+6: 0+0 +0 +SECTION +LOCAL +DEFAULT +5
/gnu/binutils/gas/testsuite/gas/elf/group0.s
0,0 → 1,4
.section .foo,"axG",%progbits,.foo_group,comdat
.byte 1
.section .bar,"aG",%progbits,.foo_group,comdat
.byte 1
/gnu/binutils/gas/testsuite/gas/elf/bad-size.d
0,0 → 1,2
#name: Check bad size directive
#error-output: bad-size.err
/gnu/binutils/gas/testsuite/gas/elf/symtab.d
0,0 → 1,9
# The Alpha has its own version of .set.
# The HPPA does not output non-global absolute symbols.
#skip: alpha-*-* hppa*-*-*
#readelf: -s
#name: .set with expression
 
#...
.*ABS.*shift.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/type-noifunc.s
0,0 → 1,20
.text
.size function,1
.type function,%function
function:
.byte 0x0
.data
.type object,%object
.size object,1
object:
.byte 0x0
.type tls_object,%tls_object
.size tls_object,1
tls_object:
.byte 0x0
.type notype,%notype
.size notype,1
notype:
.byte 0x0
.comm common, 1
.type common,STT_COMMON
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-1.s
0,0 → 1,199
/* This testcase is derived from a similar test in GDB.
 
Copyright 2009 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
 
/* Dummy function to provide debug information for. */
 
.file "dwarf2-1.c"
.text
.globl _start
_start:
.int 0
.Lbegin_text1:
.globl func_cu1
.type func_cu1, %function
func_cu1:
.Lbegin_func_cu1:
.int 0
.Lend_func_cu1:
.size func_cu1, .-func_cu1
.Lend_text1:
 
/* Debug information */
 
.section .debug_info
.Lcu1_begin:
/* CU header */
.4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
.Lcu1_start:
.2byte 2 /* DWARF Version */
.4byte .Labbrev1_begin /* Offset into abbrev section */
.byte 4 /* Pointer size */
 
/* CU die */
.uleb128 1 /* Abbrev: DW_TAG_compile_unit */
.4byte .Lline1_begin /* DW_AT_stmt_list */
.4byte .Lend_text1 /* DW_AT_high_pc */
.4byte .Lbegin_text1 /* DW_AT_low_pc */
.ascii "file1.txt\0" /* DW_AT_name */
.ascii "GNU C 3.3.3\0" /* DW_AT_producer */
.byte 1 /* DW_AT_language (C) */
 
/* func_cu1 */
.uleb128 2 /* Abbrev: DW_TAG_subprogram */
.byte 1 /* DW_AT_external */
.byte 1 /* DW_AT_decl_file */
.byte 2 /* DW_AT_decl_line */
.ascii "func_cu1\0" /* DW_AT_name */
.4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
.4byte .Lbegin_func_cu1 /* DW_AT_low_pc */
.4byte .Lend_func_cu1 /* DW_AT_high_pc */
.byte 1 /* DW_AT_frame_base: length */
.byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */
 
.Ltype_int:
.uleb128 3 /* Abbrev: DW_TAG_base_type */
.ascii "int\0" /* DW_AT_name */
.byte 4 /* DW_AT_byte_size */
.byte 5 /* DW_AT_encoding */
 
.byte 0 /* End of children of CU */
 
.Lcu1_end:
 
/* Line table */
.section .debug_line
.Lline1_begin:
.4byte .Lline1_end - .Lline1_start /* Initial length */
.Lline1_start:
.2byte 2 /* Version */
.4byte .Lline1_lines - .Lline1_hdr /* header_length */
.Lline1_hdr:
.byte 1 /* Minimum insn length */
.byte 1 /* default_is_stmt */
.byte 1 /* line_base */
.byte 1 /* line_range */
.byte 0x10 /* opcode_base */
 
/* Standard lengths */
.byte 0
.byte 1
.byte 1
.byte 1
.byte 1
.byte 0
.byte 0
.byte 0
.byte 1
.byte 0
.byte 0
.byte 1
.byte 0
.byte 0
.byte 0
 
/* Include directories */
.byte 0
 
/* File names */
.ascii "file1.txt\0"
.uleb128 0
.uleb128 0
.uleb128 0
 
.byte 0
 
.Lline1_lines:
.byte 0 /* DW_LNE_set_address */
.uleb128 5
.byte 2
.4byte .Lbegin_func_cu1
 
.byte 3 /* DW_LNS_advance_line */
.sleb128 3 /* ... to 4 */
 
.byte 1 /* DW_LNS_copy */
 
.byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */
 
.byte 0 /* DW_LNE_set_address */
.uleb128 5
.byte 2
.4byte .Lend_func_cu1
 
.byte 0 /* DW_LNE_end_of_sequence */
.uleb128 1
.byte 1
 
.Lline1_end:
 
/* Abbrev table */
.section .debug_abbrev
.Labbrev1_begin:
.uleb128 1 /* Abbrev code */
.uleb128 0x11 /* DW_TAG_compile_unit */
.byte 1 /* has_children */
.uleb128 0x10 /* DW_AT_stmt_list */
.uleb128 0x6 /* DW_FORM_data4 */
.uleb128 0x12 /* DW_AT_high_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x11 /* DW_AT_low_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x3 /* DW_AT_name */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0x25 /* DW_AT_producer */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0x13 /* DW_AT_language */
.uleb128 0xb /* DW_FORM_data1 */
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
 
.uleb128 2 /* Abbrev code */
.uleb128 0x2e /* DW_TAG_subprogram */
.byte 0 /* has_children */
.uleb128 0x3f /* DW_AT_external */
.uleb128 0xc /* DW_FORM_flag */
.uleb128 0x3a /* DW_AT_decl_file */
.uleb128 0xb /* DW_FORM_data1 */
.uleb128 0x3b /* DW_AT_decl_line */
.uleb128 0xb /* DW_FORM_data1 */
.uleb128 0x3 /* DW_AT_name */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0x49 /* DW_AT_type */
.uleb128 0x13 /* DW_FORM_ref4 */
.uleb128 0x11 /* DW_AT_low_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x12 /* DW_AT_high_pc */
.uleb128 0x1 /* DW_FORM_addr */
.uleb128 0x40 /* DW_AT_frame_base */
.uleb128 0xa /* DW_FORM_block1 */
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
 
.uleb128 3 /* Abbrev code */
.uleb128 0x24 /* DW_TAG_base_type */
.byte 0 /* has_children */
.uleb128 0x3 /* DW_AT_name */
.uleb128 0x8 /* DW_FORM_string */
.uleb128 0xb /* DW_AT_byte_size */
.uleb128 0xb /* DW_FORM_data1 */
.uleb128 0x3e /* DW_AT_encoding */
.uleb128 0xb /* DW_FORM_data1 */
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
 
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-3.s
0,0 → 1,186
.file "beginwarn.c"
.section .debug_abbrev,"",%progbits
.Ldebug_abbrev0:
.section .debug_info,"",%progbits
.Ldebug_info0:
.section .debug_line,"",%progbits
.Ldebug_line0:
.text
.Ltext0:
.section .init_array
.align 4
.type init_array, %object
.size init_array, 4
init_array:
.long foo
.section .gnu.warning.foo,"a",%progbits
.type _evoke_link_warning_foo, %object
.size _evoke_link_warning_foo, 27
_evoke_link_warning_foo:
.string "function foo is deprecated"
.file 1 "/beginwarn.c"
.text
.Letext0:
.section .debug_info
.4byte 0x8a
.2byte 0x2
.4byte .Ldebug_abbrev0
.byte 0x4
.uleb128 0x1
.4byte .Ldebug_line0
.4byte .Letext0
.4byte .Ltext0
.4byte .LASF4
.byte 0x1
.4byte .LASF5
.uleb128 0x2
.4byte 0x31
.4byte 0x38
.uleb128 0x3
.4byte 0x31
.byte 0x1a
.byte 0x0
.uleb128 0x4
.4byte .LASF0
.byte 0x4
.byte 0x7
.uleb128 0x5
.4byte 0x3d
.uleb128 0x4
.4byte .LASF1
.byte 0x1
.byte 0x6
.uleb128 0x6
.4byte .LASF2
.byte 0x1
.byte 0x3
.4byte 0x55
.byte 0x5
.byte 0x3
.4byte _evoke_link_warning_foo
.uleb128 0x5
.4byte 0x21
.uleb128 0x2
.4byte 0x6a
.4byte 0x6c
.uleb128 0x3
.4byte 0x31
.byte 0x0
.byte 0x0
.uleb128 0x7
.byte 0x1
.uleb128 0x5
.4byte 0x71
.uleb128 0x8
.byte 0x4
.4byte 0x6a
.uleb128 0x6
.4byte .LASF3
.byte 0x1
.byte 0x9
.4byte 0x88
.byte 0x5
.byte 0x3
.4byte init_array
.uleb128 0x5
.4byte 0x5a
.byte 0x0
.section .debug_abbrev
.uleb128 0x1
.uleb128 0x11
.byte 0x1
.uleb128 0x10
.uleb128 0x6
.uleb128 0x12
.uleb128 0x1
.uleb128 0x11
.uleb128 0x1
.uleb128 0x25
.uleb128 0xe
.uleb128 0x13
.uleb128 0xb
.uleb128 0x3
.uleb128 0xe
.byte 0x0
.byte 0x0
.uleb128 0x2
.uleb128 0x1
.byte 0x1
.uleb128 0x1
.uleb128 0x13
.uleb128 0x49
.uleb128 0x13
.byte 0x0
.byte 0x0
.uleb128 0x3
.uleb128 0x21
.byte 0x0
.uleb128 0x49
.uleb128 0x13
.uleb128 0x2f
.uleb128 0xb
.byte 0x0
.byte 0x0
.uleb128 0x4
.uleb128 0x24
.byte 0x0
.uleb128 0x3
.uleb128 0xe
.uleb128 0xb
.uleb128 0xb
.uleb128 0x3e
.uleb128 0xb
.byte 0x0
.byte 0x0
.uleb128 0x5
.uleb128 0x26
.byte 0x0
.uleb128 0x49
.uleb128 0x13
.byte 0x0
.byte 0x0
.uleb128 0x6
.uleb128 0x34
.byte 0x0
.uleb128 0x3
.uleb128 0xe
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x49
.uleb128 0x13
.uleb128 0x2
.uleb128 0xa
.byte 0x0
.byte 0x0
.uleb128 0x7
.uleb128 0x15
.byte 0x0
.uleb128 0x27
.uleb128 0xc
.byte 0x0
.byte 0x0
.uleb128 0x8
.uleb128 0xf
.byte 0x0
.uleb128 0xb
.uleb128 0xb
.uleb128 0x49
.uleb128 0x13
.byte 0x0
.byte 0x0
.byte 0x0
.section .debug_str,"MS",%progbits,1
.LASF5:
.string "/beginwarn.c"
.LASF0:
.string "unsigned int"
.LASF3:
.string "init_array"
.LASF2:
.string "_evoke_link_warning_foo"
.LASF4:
.string "GNU C 3.4.6"
.LASF1:
.string "char"
/gnu/binutils/gas/testsuite/gas/elf/bad-section-flag.err
0,0 → 1,2
.*bad-section-flag\.s: Assembler messages:
.*bad-section-flag\.s:1: Fatal error: .*
/gnu/binutils/gas/testsuite/gas/elf/bad-size.s
0,0 → 1,6
.text
_test_nop:
.byte 0
.section .text.entry.continue, "xa"
.byte 0
.size _test_nop, .-_test_nop
/gnu/binutils/gas/testsuite/gas/elf/group1a.d
0,0 → 1,13
#readelf: -SW
#name: group section with multiple sections of same name
#source: group1.s
# The RX port uses non-standard section names.
#not-target: rx-*
 
#...
[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AX[ ]+.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AXG[ ]+.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/symtab.s
0,0 → 1,5
.text
.global foo
foo:
.set shift, 32
.set shift, shift - 1
/gnu/binutils/gas/testsuite/gas/elf/type.e
0,0 → 1,7
+.: 0+0 +1 +FUNC +LOCAL +DEFAULT +. function
+.: 0+1 +1 +IFUNC +LOCAL +DEFAULT +. indirect_function
+.: 0+0 +1 +OBJECT +LOCAL +DEFAULT +. object
+.: 0+1 +1 +TLS +LOCAL +DEFAULT +. tls_object
+..: 0+2 +1 +NOTYPE +LOCAL +DEFAULT +. notype
+..: 0+3 +1 +OBJECT +UNIQUE +DEFAULT +. unique_global
+..: 0+1 +1 +(COMMON|OBJECT) +GLOBAL +DEFAULT +COM common
/gnu/binutils/gas/testsuite/gas/elf/section0.d
0,0 → 1,20
#objdump: -s
#name: elf section0
# The h8300 port issues a warning message for
# new sections created without atrributes.
#skip: h8300-*
 
.*: +file format .*
 
Contents of section .data:
0+000 00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00 ?00.*
# The MIPS includes a 'section .reginfo' and such here.
#...
Contents of section A:
0+000 01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01 ?01.*
Contents of section B:
0+000 02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02 ?02.*
Contents of section C:
0+000 03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03 ?03.*
# Arm includes a .ARM.attributes section here
#...
/gnu/binutils/gas/testsuite/gas/elf/redef.d
0,0 → 1,13
#objdump: -t
#name: .equ redefinitions (ELF)
 
.*: .*
 
SYMBOL TABLE:
#...
0+[ ]+l[ ].*[ ]here
#...
0*2+[ ]+l[ ]+\*ABS\*[ ].*[ ]sym
#...
0+[ ]+\*UND\*[ ].*[ ]xtrn
#...
/gnu/binutils/gas/testsuite/gas/elf/symver.d
0,0 → 1,19
#objdump: --syms
#name: ELF symbol versioning
#
# The #... and #pass are there to match extra symbols inserted by
# some toolchains, eg the mips-elf port will add .reginfo and .ptrd
# and the arm-elf toolchain will add $d.
 
dump.o: file format .*
 
SYMBOL TABLE:
 
0+000 l.*d.*\.text.*0+000.*
0+000 l.*d.*\.data.*0+000.*
0+000 l.*d.*\.bss.*0+000.*
#...
0+000 l.*O.*\.data.*0+004 x
#...
0+000 l.*O.*\.data.*0+004 x@VERS\.0
#pass
/gnu/binutils/gas/testsuite/gas/elf/groupautoa.d
0,0 → 1,17
#readelf: -SW
#name: automatic section group a
#source: groupauto.s
# The RX port uses non-standard section names.
#not-target: rx-*
 
#...
[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AX[ ]+.*
#...
[ ]*\[.*\][ ]+\.foo[ ]+PROGBITS.*[ ]+A[ ]+.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AXG[ ]+.*
#...
[ ]*\[.*\][ ]+\.note.bar[ ]+NOTE.*[ ]+G[ ]+.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/section2.e-xtensa
0,0 → 1,9
 
Symbol table '.symtab' contains 6 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +4
+5: 0+0 +0 +SECTION +LOCAL +DEFAULT +5
/gnu/binutils/gas/testsuite/gas/elf/section2.e
0,0 → 1,8
 
Symbol table '.symtab' contains 5 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +4
/gnu/binutils/gas/testsuite/gas/elf/section4.d
0,0 → 1,14
#readelf: --sections
#name: label arithmetic with multiple same-name sections
# The RX port uses non-standard section names.
#not-target: rx-*
 
#...
[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*
#...
[ ]*\[.*\][ ]+\.data[ ]+PROGBITS.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/section6.d
0,0 → 1,16
#objdump: -s
#name: elf section6
# The h8300 port issues a warning message for
# new sections created without atrributes.
#skip: h8300-*
 
.*: +file format .*
 
# The MIPS includes a 'section .reginfo' and such here.
#...
Contents of section sec1:
0+000 01 ?02 ?05.*
Contents of section sec2:
0+000 04 ?03.*
# Arm includes a .ARM.attributes section here
#...
/gnu/binutils/gas/testsuite/gas/elf/section8.d
0,0 → 1,6
#readelf: -S --wide
#name: section flags
 
#...
[ ]*\[.*\][ ]+\.foo1[ ]+PROGBITS.*[ ]+E[ ]+.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/section2.l
0,0 → 1,8
.*: Assembler messages:
.*:2: Warning: .*
.*GAS.*
 
 
[ ]+1[ ]+.section A
[ ]+2[ ]+.global A
[ ]+3 0000 31[ ]+.byte 49
/gnu/binutils/gas/testsuite/gas/elf/ehopt0.d
0,0 → 1,9
#objdump: -s -j .eh_frame
#name: elf ehopt0
 
.*: +file format .*
 
Contents of section .eh_frame:
0+000 (10|00)0000(00|10) 00000000 017a0001 781a0004 .*
0+010 (01|00)0000(00|01) (12|00)0000(00|12) (18|00)0000(00|18) 00000000 .*
0+020 (08|00)0000(00|08) 04(08|00)0000 (00|08)44 .*
/gnu/binutils/gas/testsuite/gas/elf/bad-section-flag.d
0,0 → 1,2
#name: Check bad section flag
#error-output: bad-section-flag.err
/gnu/binutils/gas/testsuite/gas/elf/section2.e-score
0,0 → 1,9
 
Symbol table '.symtab' contains 6 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 00000000 +0 +SECTION +LOCAL +DEFAULT +1
+2: 00000000 +0 +SECTION +LOCAL +DEFAULT +2
+3: 00000000 +0 +SECTION +LOCAL +DEFAULT +3
+4: 00000000 +0 +SECTION +LOCAL +DEFAULT +5
+5: 00000000 +0 +SECTION +LOCAL +DEFAULT +4
/gnu/binutils/gas/testsuite/gas/elf/type.s
0,0 → 1,37
.text
.size function,1
.type function,%function
function:
.byte 0x0
.size indirect_function,1
.type indirect_function,%gnu_indirect_function
indirect_function:
.byte 0x0
.data
.type object,%object
.size object,1
object:
.byte 0x0
.type tls_object,%tls_object
.size tls_object,1
tls_object:
.byte 0x0
.type notype,%notype
.size notype,1
notype:
.byte 0x0
 
.type unique_global,%gnu_unique_object
unique_global:
.byte 0x0
.size unique_global,1
 
.comm common, 1
.type common,STT_COMMON
/gnu/binutils/gas/testsuite/gas/elf/section0.s
0,0 → 1,16
.data
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
.section A
.byte 1,1,1,1,1,1,1,1,1,1,1,1,1,1
.pushsection B
.byte 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
.pushsection C
.byte 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
.popsection
.byte 2
.popsection
.byte 1
.previous
.byte 0
.previous
.byte 1
/gnu/binutils/gas/testsuite/gas/elf/bad-size.err
0,0 → 1,2
.*bad-size\.s: Assembler messages:
.*bad-size\.s:.* Error: .*
/gnu/binutils/gas/testsuite/gas/elf/redef.s
0,0 → 1,10
.data
here:
.set sym, here
.long sym
.set sym, 0x11111111
.long sym
.set sym, xtrn
.long sym
.set sym, 0x22222222
.long sym
/gnu/binutils/gas/testsuite/gas/elf/symver.s
0,0 → 1,6
.data
.type x,%object
.size x,4
x:
.word 12
.symver x, x@VERS.0
/gnu/binutils/gas/testsuite/gas/elf/section2.s
0,0 → 1,3
.section A
.global A
.byte 49
/gnu/binutils/gas/testsuite/gas/elf/section4.s
0,0 → 1,11
.text
.L1:
.align 4
.L2:
.L3:
.section .data,"",%progbits
.long .L3 - .L1
.section .text,"axG",%progbits,foo,comdat
.word 0
/gnu/binutils/gas/testsuite/gas/elf/section2.e-m32r
0,0 → 1,9
 
Symbol table '.symtab' contains 6 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +5
+5: 0+0 +0 +SECTION +LOCAL +DEFAULT +4
/gnu/binutils/gas/testsuite/gas/elf/section6.s
0,0 → 1,10
.section sec1
.byte 1
.subsection 2
.byte 2
.pushsection sec2,1
.byte 3
.subsection 0
.byte 4
.popsection
.byte 5
/gnu/binutils/gas/testsuite/gas/elf/section8.s
0,0 → 1,2
.section .foo1,"e", %progbits
.byte 0,0,0,0
/gnu/binutils/gas/testsuite/gas/elf/group0a.d
0,0 → 1,10
#readelf: -SW
#name: group section
#source: group0.s
 
#...
[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.foo[ ]+PROGBITS.*[ ]+AXG[ ]+.*
[ ]*\[.*\][ ]+\.bar[ ]+PROGBITS.*[ ]+AG[ ]+.*
#pass
/gnu/binutils/gas/testsuite/gas/elf/ehopt0.s
0,0 → 1,32
.text
LFB1:
.4byte 0
L1:
.4byte 0
LFE1:
.section .eh_frame,"aw"
__FRAME_BEGIN__:
.4byte LECIE1-LSCIE1
LSCIE1:
.4byte 0x0
.byte 0x1
.ascii "z\0"
.byte 0x1
.byte 0x78
.byte 0x1a
.byte 0x0
.byte 0x4
.4byte 1
.p2align 1
LECIE1:
LSFDE1:
.4byte LEFDE1-LASFDE1
LASFDE1:
.4byte LASFDE1-__FRAME_BEGIN__
.4byte LFB1
.4byte LFE1-LFB1
.byte 0x4
.4byte LFE1-LFB1
.byte 0x4
.4byte L1-LFB1
LEFDE1:
/gnu/binutils/gas/testsuite/gas/elf/bad-section-flag.s
0,0 → 1,32
.section ".rodata", "z~&q"
/gnu/binutils/gas/testsuite/gas/elf/elf.exp
0,0 → 1,184
#
# elf tests
#
 
proc run_elf_list_test { name suffix opts readelf_opts readelf_pipe } {
global READELF
global srcdir subdir
set testname "elf $name list"
set file $srcdir/$subdir/$name
gas_run ${name}.s "$opts -o dump.o" ">&dump.out"
if { ![string match "" $opts]
&& [regexp_diff "dump.out" "${file}.l"] } then {
fail $testname
verbose "output is [file_contents "dump.out"]" 2
return
}
send_log "$READELF $readelf_opts dump.o $readelf_pipe > dump.out\n"
set status [gas_host_run "$READELF $readelf_opts dump.o" ">readelf.out"]
if { [lindex $status 0] != 0 || ![string match "" [lindex $status 1]] } then {
send_log "[lindex $status 1]\n"
fail $testname
return
}
catch "exec cat readelf.out $readelf_pipe > dump.out\n" comp_output
if ![string match "" $comp_output] then {
send_log "$comp_output\n"
fail $testname
return
}
verbose_eval {[file_contents "dump.out"]} 3
if { [regexp_diff "dump.out" "${file}.e${suffix}"] } then {
fail $testname
verbose "output is [file_contents "dump.out"]" 2
return
}
pass $testname
}
 
# We're testing bits in obj-elf -- don't run on anything else.
if { ([istarget "*-*-*elf*"]
|| [istarget "*-*-linux*"]
|| [istarget "*-*-gnu*"]
|| [istarget "m6811-*"]
|| [istarget "m6812-*"]
|| [istarget "sparc*-*-solaris*"]
|| [istarget "mips*-*-irix6*"]
|| [istarget "arm*-*-eabi"])
&& ![istarget *-*-linux*aout*]
&& ![istarget *-*-linux*coff*]
&& ![istarget *-*-linux*oldld*]
&& ![istarget sh64*-*-linux*]
} then {
set target_machine ""
if {[istarget "mips*-*-*"]} then {
set target_machine -mips
}
if {[istarget m32r*-*-*]} then {
set target_machine -m32r
}
if {[istarget "score-*-*"]} then {
set target_machine -score
}
if {[istarget "tic6x-*-*"]} then {
set target_machine -tic6x
}
if {[istarget "xtensa*-*-*"]} then {
set target_machine -xtensa
}
if {[istarget "rx-*-*"]} then {
set target_machine -rx
}
if {[istarget "arm*-*-*"]} {
 
if { ([istarget "*-*-*eabi"]
|| [istarget "*-*-linux-*"]
|| [istarget "*-*-symbianelf"])} then {
set target_machine -armeabi
} else {
set target_machine -armelf
}
}
 
# The MN10300 and Xtensa ports disable the assembler's call frame
# optimization because it interfers with link-time relaxation of
# function prologues.
if {![istarget "mn10300-*-*"]
&& ![istarget "xtensa*-*-*"]
&& ![istarget "am3*-*-*"]} then {
run_dump_test "ehopt0"
}
case $target_triplet in {
{ m68k-*-* m68[03]??-*-* } {
run_dump_test "file" { { as "--defsym m68k=1" } }
}
{ mmix-*-* } {
run_dump_test "file" { { as "--defsym mmix=1" } }
}
{ xtensa*-*-* } {
run_dump_test "file" { { as "--rename-section file.s=file.c" } }
}
default {
run_dump_test "file"
}
}
run_dump_test "group0a"
run_dump_test "group0b"
run_dump_test "group0c"
run_dump_test "group1a"
run_dump_test "group1b"
run_dump_test "groupautoa"
case $target_triplet in {
{ xtensa*-*-* } { }
default {
run_dump_test "groupautob"
}
}
case $target_triplet in {
{ alpha*-*-* } { }
{ cr16*-*-* } { }
{ crx*-*-* } { }
{ h8300-*-* } { }
{ hppa*-*-* } { }
{ iq2000*-*-* } { }
{ mips*-*-* } { }
{ mn10200-*-* } { }
{ mn10300-*-* } { }
{ *c54x*-*-* } { }
{ rx-*-* } { }
default {
# The next test can fail if the target does not convert fixups
# against ordinary symbols into relocations against section symbols.
# This is usually revealed by the error message:
# symbol `sym' required but not present
run_dump_test redef
run_dump_test equ-reloc
}
}
run_dump_test "pseudo"
run_dump_test "section0"
run_dump_test "section1"
if {! [istarget "h8300-*-*"]} then {
# The h8300 port issues a warning message for
# new sections created without atrributes.
run_elf_list_test "section2" "$target_machine" "-al" "-s" ""
}
run_dump_test "section3"
run_dump_test "section4"
if {! [istarget "h8300-*-*"] && ! [istarget "rx-*-*"]} then {
# The h8300 port issues a warning message for
# new sections created without atrributes.
# The RX port does not complain about changing the attributes of the
# .data and .bss sections since it does not use those names.
run_elf_list_test "section5" "" "-al" "-SW" "| grep \" \\\\.test\\\[0-9\\\]\""
}
run_dump_test "struct"
if { ![istarget "alpha*-*-*"] } then {
# The alpha port uses .set for state, e.g. nomacro.
run_dump_test "symtab"
}
run_dump_test "symver"
 
# The MSP port sets the ELF header's OSABI field to ELFOSABI_STANDALONE.
# The non-eabi ARM ports sets it to ELFOSABI_ARM.
# So for these targets we cannot include an IFUNC symbol type
# in the symbol type test.
if { [istarget "msp*-*-*"]
|| [istarget "arm*-*-*"]} then {
run_elf_list_test "type-noifunc" "" "" "-s" "| grep \"1 *\\\[FONTC\\\]\""
} else {
run_dump_test ifunc-1
run_elf_list_test "type" "" "" "-s" "| grep \"1 *\\\[FIONTCU\\\]\""
}
 
run_dump_test "section6"
run_dump_test "section7"
run_dump_test "section8"
run_dump_test "section9"
run_dump_test "dwarf2-1"
run_dump_test "dwarf2-2"
run_dump_test "dwarf2-3"
run_dump_test "dwarf2-4"
run_dump_test "bad-section-flag"
run_dump_test "bad-size"
}
/gnu/binutils/gas/testsuite/gas/elf/file.d
0,0 → 1,18
#objdump: -t
#name: .file file names
 
.*: .*
 
SYMBOL TABLE:
#...
0+ l[ ]*df \*ABS\*[ ]+0+ file\.s
0+ l[ ]*df \*ABS\*[ ]+0+ slash/data
0+ l[ ]*df \*ABS\*[ ]+0+ \{braces\}
0+ l[ ]*df \*ABS\*[ ]+0+ \[brackets\]
0+ l[ ]*df \*ABS\*[ ]+0+ /dir/file\.s
0+ l[ ]*df \*ABS\*[ ]+0+ :colon
0+ l[ ]*df \*ABS\*[ ]+0+ UPPER
0+ l[ ]*df \*ABS\*[ ]+0+ lower
0+ l[ ]*df \*ABS\*[ ]+0+ hash\#
0+ l[ ]*df \*ABS\*[ ]+0+ ~tilde
#pass
/gnu/binutils/gas/testsuite/gas/elf/group0c.d
0,0 → 1,7
#readelf: -sW
#name: group section name
#source: group0.s
 
#...
.*NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+[0-9]+[ ]+\.foo_group
#pass
/gnu/binutils/gas/testsuite/gas/elf/section2.e-tic6x
0,0 → 1,9
 
Symbol table '.symtab' contains 6 entries:
Num: Value[ ]* Size Type Bind Vis Ndx Name
0: 0+0 0 NOTYPE LOCAL DEFAULT UND
1: 0+0 0 SECTION LOCAL DEFAULT 1
2: 0+0 0 SECTION LOCAL DEFAULT 2
3: 0+0 0 SECTION LOCAL DEFAULT 3
4: 0+0 0 SECTION LOCAL DEFAULT 4
5: 0+0 0 SECTION LOCAL DEFAULT 5
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-2.d
0,0 → 1,101
#as: --compress-debug-sections
#readelf: -w
#name: DWARF2 2
#not-target: ia64-*-*
 
Contents of the .[z]?debug_info section:
 
Compilation Unit @ offset 0x0:
Length: 0x4e \(32-bit\)
Version: 2
Abbrev Offset: 0
Pointer Size: 4
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
<c> DW_AT_stmt_list : 0x0
<10> DW_AT_high_pc : 0x.
<14> DW_AT_low_pc : 0x.
<18> DW_AT_name : file1.txt
<22> DW_AT_producer : GNU C 3.3.3
<2e> DW_AT_language : 1 \(ANSI C\)
<1><2f>: Abbrev Number: 2 \(DW_TAG_subprogram\)
<30> DW_AT_external : 1
<31> DW_AT_decl_file : 1
<32> DW_AT_decl_line : 2
<33> DW_AT_name : func_cu1
<3c> DW_AT_type : <0x4a>
<40> DW_AT_low_pc : 0x.
<44> DW_AT_high_pc : 0x.
<48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5 \([^()]*\)\)
<1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\)
<4b> DW_AT_name : int
<4f> DW_AT_byte_size : 4
<50> DW_AT_encoding : 5 \(signed\)
 
Raw dump of debug contents of section .[z]?debug_line:
 
Offset: 0x0
Length: 62
DWARF Version: 2
Prologue Length: 35
Minimum Instruction Length: 1
Initial value of 'is_stmt': 1
Line Base: 1
Line Range: 1
Opcode Base: 16
 
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 args
Opcode 3 has 1 args
Opcode 4 has 1 args
Opcode 5 has 1 args
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 args
Opcode 10 has 0 args
Opcode 11 has 0 args
Opcode 12 has 1 args
Opcode 13 has 0 args
Opcode 14 has 0 args
Opcode 15 has 0 args
 
The Directory Table is empty.
 
The File Name Table:
Entry Dir Time Size Name
1 0 0 0 file1.txt
 
Line Number Statements:
Extended opcode 2: set Address to .*
Advance Line by 3 to 4
Copy
Copy
Extended opcode 2: set Address to .*
Extended opcode 1: End of Sequence
 
 
Contents of the .[z]?debug_abbrev section:
 
Number TAG
1 DW_TAG_compile_unit \[has children\]
DW_AT_stmt_list DW_FORM_data4
DW_AT_high_pc DW_FORM_addr
DW_AT_low_pc DW_FORM_addr
DW_AT_name DW_FORM_string
DW_AT_producer DW_FORM_string
DW_AT_language DW_FORM_data1
2 DW_TAG_subprogram \[no children\]
DW_AT_external DW_FORM_flag
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_name DW_FORM_string
DW_AT_type DW_FORM_ref4
DW_AT_low_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
DW_AT_frame_base DW_FORM_block1
3 DW_TAG_base_type \[no children\]
DW_AT_name DW_FORM_string
DW_AT_byte_size DW_FORM_data1
DW_AT_encoding DW_FORM_data1
 
/gnu/binutils/gas/testsuite/gas/elf/struct.d
0,0 → 1,10
#nm: --extern-only
#name: ELF struct
 
# Test the .struct pseudo-op.
 
0+0 D l1
0+4 D l2
0+2 A w1
0+4 A w2
0+6 A w3
/gnu/binutils/gas/testsuite/gas/elf/dwarf2-4.d
0,0 → 1,12
#as: --compress-debug-sections
#readelf: -w
#name: DWARF2 4
#not-target: ia64-*-*
 
Contents of the .[z]?debug_abbrev section:
 
 
 
Section '.debug_info' has no debugging data.
 
Section '.debug_line' has no debugging data.
/gnu/binutils/gas/testsuite/gas/elf/section2.e-miwmmxt
0,0 → 1,10
 
Symbol table '.symtab' contains 6 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+0 +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+0 +0 +SECTION +LOCAL +DEFAULT +1
+2: 0+0 +0 +SECTION +LOCAL +DEFAULT +2
+3: 0+0 +0 +SECTION +LOCAL +DEFAULT +3
+4: 0+0 +0 +SECTION +LOCAL +DEFAULT +5
+5: 0+0 +0 +SECTION +LOCAL +DEFAULT +4
 
/gnu/binutils/gas/testsuite/gas/elf/group1.s
0,0 → 1,2
.section .text,"axG",%progbits,.foo_group,comdat
.byte 1

powered by: WebSVN 2.1.0

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