mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
Add test to ensure that ternary linker script operators copy symbol flags.
* ld-elf/attributes.d: New test for symbol attribute copying. * ld-elf/attributes.ld: Part of above. * ld-elf/attributes.s: Likewise.
This commit is contained in:
parent
e12fe5554c
commit
15a70cda97
@ -1,3 +1,9 @@
|
||||
2015-10-19 Simon Dardis <Simon.Dardis@imgtec.com>
|
||||
|
||||
* ld-elf/attributes.d: New test for symbol attribute copying.
|
||||
* ld-elf/attributes.ld: Part of above.
|
||||
* ld-elf/attributes.s: Likewise.
|
||||
|
||||
2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* ld-i386/lea1.s: Add a test for loading address of local common
|
||||
|
10
ld/testsuite/ld-elf/attributes.d
Normal file
10
ld/testsuite/ld-elf/attributes.d
Normal file
@ -0,0 +1,10 @@
|
||||
#name: Symbol flags copy
|
||||
#ld: -T attributes.ld
|
||||
#objdump: -t
|
||||
#notarget: pj-*-* dlx-*-* d30v-*-*
|
||||
|
||||
#...
|
||||
0+0000000 g F .text 0+0000000 __start
|
||||
#...
|
||||
0+0000000 g F .text 0+0000000 start
|
||||
#pass
|
9
ld/testsuite/ld-elf/attributes.ld
Normal file
9
ld/testsuite/ld-elf/attributes.ld
Normal file
@ -0,0 +1,9 @@
|
||||
PROVIDE ( __start = DEFINED(start) ? start : 0xbfc00000);
|
||||
ENTRY (__start)
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
*(.text)
|
||||
}
|
||||
}
|
5
ld/testsuite/ld-elf/attributes.s
Normal file
5
ld/testsuite/ld-elf/attributes.s
Normal file
@ -0,0 +1,5 @@
|
||||
.text
|
||||
.globl start
|
||||
.type start, %function
|
||||
start:
|
||||
.byte 0
|
Loading…
Reference in New Issue
Block a user