mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Add a testcase for PR ld/18223
PR ld/18223 * ld-gc/gc.exp: Run pr18223. * ld-gc/pr18223.d: New file. * ld-gc/pr18223.s: Likewise.
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2015-04-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/18223
|
||||
* ld-gc/gc.exp: Run pr18223.
|
||||
* ld-gc/pr18223.d: New file.
|
||||
* ld-gc/pr18223.s: Likewise.
|
||||
|
||||
2015-04-10 Alan Modra <amodra@gmail.com>
|
||||
|
||||
Revert 2015-03-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
@ -116,6 +116,7 @@ if { [is_elf_format] && [check_shared_lib_support] } then {
|
||||
} else {
|
||||
run_dump_test "personality"
|
||||
}
|
||||
run_dump_test "pr18223"
|
||||
}
|
||||
|
||||
if { [is_remote host] || [which $CC] != 0 } {
|
||||
|
7
ld/testsuite/ld-gc/pr18223.d
Normal file
7
ld/testsuite/ld-gc/pr18223.d
Normal file
@ -0,0 +1,7 @@
|
||||
#name: --gc-sections with .text._init
|
||||
#ld: --gc-sections -shared
|
||||
#nm: -n
|
||||
|
||||
#...
|
||||
[0-9a-f]+ t +_init
|
||||
#...
|
6
ld/testsuite/ld-gc/pr18223.s
Normal file
6
ld/testsuite/ld-gc/pr18223.s
Normal file
@ -0,0 +1,6 @@
|
||||
.section .text._init,"ax",%progbits
|
||||
.globl _init
|
||||
.hidden _init
|
||||
.type _init, %function
|
||||
_init:
|
||||
.byte 0
|
Reference in New Issue
Block a user