Browse Source
ld/ChangeLog:
2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* scripttempl/elf32msp430.sc: Add input section rules for
.upper.{text,data,rodata,bss}.
* testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
* testsuite/ld-msp430-elf/upper-input-sections.s: New test.
binutils-2_34-branch
4 changed files with 50 additions and 0 deletions
@ -0,0 +1,33 @@ |
|||
.text |
|||
.balign 2 |
|||
.section .upper.text,"ax",@progbits |
|||
.global foo |
|||
.type foo, @function |
|||
foo: |
|||
MOV.W #42, R8 |
|||
RETA |
|||
.size foo, .-foo |
|||
|
|||
.balign 2 |
|||
.global main |
|||
.type main, @function |
|||
main: |
|||
CALLA #foo |
|||
.L4: |
|||
BRA #.L4 |
|||
.size main, .-main |
|||
.section .upper.bss,"aw",@nobits |
|||
.balign 2 |
|||
.global P |
|||
P: |
|||
.zero 4 |
|||
.section .upper.data,"aw",@progbits |
|||
.balign 2 |
|||
.global Q |
|||
Q: |
|||
.long 4 |
|||
.section .upper.rodata,"aw",@progbits |
|||
.balign 2 |
|||
.global R |
|||
R: |
|||
.word 8 |
|||
Loading…
Reference in new issue