mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-30 15:30:41 +00:00
Add a testcase for PR ld/14962
PR ld/14962 * ld-elf/var1.d: New file. * ld-elf/var1.s: Likewise. * ld-elf/var1.t: Likewise.
This commit is contained in:
parent
8b93d60f22
commit
06fc0e2238
@ -1,3 +1,10 @@
|
||||
2012-12-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/14962
|
||||
* ld-elf/var1.d: New file.
|
||||
* ld-elf/var1.s: Likewise.
|
||||
* ld-elf/var1.t: Likewise.
|
||||
|
||||
2012-12-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/14968
|
||||
|
10
ld/testsuite/ld-elf/var1.d
Normal file
10
ld/testsuite/ld-elf/var1.d
Normal file
@ -0,0 +1,10 @@
|
||||
#ld: $srcdir/$subdir/var1.t --sort-section name
|
||||
#nm: -n
|
||||
|
||||
#...
|
||||
0[0-9a-f]* D var1
|
||||
#...
|
||||
0[0-9a-f]* A var2
|
||||
#...
|
||||
0[0-9a-f]* D var3
|
||||
#pass
|
31
ld/testsuite/ld-elf/var1.s
Normal file
31
ld/testsuite/ld-elf/var1.s
Normal file
@ -0,0 +1,31 @@
|
||||
.globl main
|
||||
.globl start
|
||||
.globl _start
|
||||
.globl __start
|
||||
.text
|
||||
main:
|
||||
start:
|
||||
_start:
|
||||
__start:
|
||||
.byte 0
|
||||
.globl var3
|
||||
.section .data.var3,"aw",%progbits
|
||||
.align 4
|
||||
.type var3, %object
|
||||
.size var3, 4
|
||||
var3:
|
||||
.zero 4
|
||||
.globl var2
|
||||
.section .data.var2,"aw",%progbits
|
||||
.align 16
|
||||
.type var2, %object
|
||||
.size var2, 16
|
||||
var2:
|
||||
.zero 16
|
||||
.globl var1
|
||||
.section .data.var1,"aw",%progbits
|
||||
.align 4
|
||||
.type var1, %object
|
||||
.size var1, 4
|
||||
var1:
|
||||
.zero 4
|
1
ld/testsuite/ld-elf/var1.t
Normal file
1
ld/testsuite/ld-elf/var1.t
Normal file
@ -0,0 +1 @@
|
||||
var2 = var2 + 3;
|
Loading…
Reference in New Issue
Block a user