mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Add a test for PR ld/19167
PR ld/19167 * ld-gc/gc.exp: Run pr19167 test. * ld-gc/pr19167.d: New file. * ld-gc/pr19167a.s: Likewise. * ld-gc/pr19167b.s: Likewise.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2015-10-23 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/19167
|
||||||
|
* ld-gc/gc.exp: Run pr19167 test.
|
||||||
|
* ld-gc/pr19167.d: New file.
|
||||||
|
* ld-gc/pr19167a.s: Likewise.
|
||||||
|
* ld-gc/pr19167b.s: Likewise.
|
||||||
|
|
||||||
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
|
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/19161
|
PR ld/19161
|
||||||
|
@ -101,6 +101,7 @@ test_gc "Check --gc-section/-r/-u" "gcrel" $ld "-r --gc-sections -u used_func"
|
|||||||
run_dump_test "noent"
|
run_dump_test "noent"
|
||||||
run_dump_test "abi-note"
|
run_dump_test "abi-note"
|
||||||
run_dump_test "start"
|
run_dump_test "start"
|
||||||
|
run_dump_test "pr19167"
|
||||||
if { [is_elf_format] } then {
|
if { [is_elf_format] } then {
|
||||||
run_dump_test "all-debug-sections"
|
run_dump_test "all-debug-sections"
|
||||||
}
|
}
|
||||||
|
11
ld/testsuite/ld-gc/pr19167.d
Normal file
11
ld/testsuite/ld-gc/pr19167.d
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#source: pr19167a.s
|
||||||
|
#source: pr19167b.s
|
||||||
|
#ld: --gc-sections -e _start
|
||||||
|
#objdump: -s -j _foo
|
||||||
|
#target: *-*-linux* *-*-gnu*
|
||||||
|
#notarget: *-*-*aout *-*-*oldld frv-*-linux* metag-*-linux*
|
||||||
|
|
||||||
|
#...
|
||||||
|
Contents of section _foo:
|
||||||
|
[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+[ \t]+This is a test.*
|
||||||
|
#pass
|
6
ld/testsuite/ld-gc/pr19167a.s
Normal file
6
ld/testsuite/ld-gc/pr19167a.s
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.globl _start
|
||||||
|
_start:
|
||||||
|
.dc.a __start__foo
|
||||||
|
.section _foo,"aw",%progbits
|
||||||
|
foo:
|
||||||
|
.ascii "This is "
|
2
ld/testsuite/ld-gc/pr19167b.s
Normal file
2
ld/testsuite/ld-gc/pr19167b.s
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.section _foo,"aw",%progbits
|
||||||
|
.ascii "a test.\0"
|
Reference in New Issue
Block a user