mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
ca9584fb9b
bfd/ * elfxx-mips.c (mips_elf_check_mips16_stubs): Set a stub's output section to bfd_abs_section_ptr if the stub is discarded. ld/testsuite/ * ld-mips-elf/mips16-fp-stub-1.s: New. * ld-mips-elf/mips16-fp-stub-2.s: New. * ld-mips-elf/mips16-fp-stub.d: New. * ld-mips-elf/mips-elf.exp: Run new tests. * ld-mips-elf/mips16-intermix.d: Update expected output. https://sourceware.org/ml/binutils/2015-10/msg00137.html
44 lines
800 B
ArmAsm
44 lines
800 B
ArmAsm
.file 1 "mips-fp-stub-2.c"
|
|
.section .mdebug.abi32
|
|
.previous
|
|
.nan legacy
|
|
.module fp=32
|
|
.module oddspreg
|
|
.text
|
|
.align 2
|
|
.globl foo
|
|
# Stub function for foo (float, float)
|
|
.section .mips16.fn.foo,"ax",@progbits
|
|
.align 2
|
|
.set nomips16
|
|
.set nomicromips
|
|
.ent __fn_stub_foo
|
|
.type __fn_stub_foo, @function
|
|
__fn_stub_foo:
|
|
la $25,foo
|
|
mfc1 $4,$f12
|
|
mfc1 $5,$f14
|
|
jr $25
|
|
.end __fn_stub_foo
|
|
__fn_local_foo = foo
|
|
.text
|
|
.set mips16
|
|
.set nomicromips
|
|
.ent foo
|
|
.type foo, @function
|
|
foo:
|
|
.frame $17,8,$31 # vars= 0, regs= 2/0, args= 0, gp= 0
|
|
.mask 0x80020000,-4
|
|
.fmask 0x00000000,0
|
|
save 8,$17,$31
|
|
move $17,$sp
|
|
sw $4,8($17)
|
|
sw $5,12($17)
|
|
lw $2,8($17)
|
|
move $sp,$17
|
|
restore 8,$17,$31
|
|
j $31
|
|
.end foo
|
|
.size foo, .-foo
|
|
.ident "GCC: (Sourcery CodeBench Lite 2015.11-12 - Preview) 5.2.0"
|