Browse Source
* ldlang.c (lang_do_assignments_1): Correct "dot" inside ignored sections. * testsuite/ld-scripts/empty-address-4.d, * testsuite/ld-scripts/empty-address-4.s, * testsuite/ld-scripts/empty-address-4.t: New test. * testsuite/ld-scripts/empty-address.exp: Run it.binutils-2_38-branch
5 changed files with 32 additions and 8 deletions
@ -0,0 +1,6 @@ |
|||
#ld: -T empty-address-4.t |
|||
#nm: -n |
|||
|
|||
#... |
|||
0+0 [AT] _start |
|||
#pass |
|||
@ -0,0 +1,4 @@ |
|||
.text |
|||
.global _start |
|||
_start: |
|||
.dc.a 0, 0 |
|||
@ -0,0 +1,11 @@ |
|||
SECTIONS |
|||
{ |
|||
.text 0: { *(.text .pr) } |
|||
.data 0x200: |
|||
{ |
|||
*(.data) |
|||
ASSERT (. < 0x400, oops); |
|||
} |
|||
.bss : { *(.bss) } |
|||
/DISCARD/ : { *(.*) } |
|||
} |
|||
Loading…
Reference in new issue