mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
bfd/ PR ld/23244 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check for and handle an undefined weak with no PLT. ld/ * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new weak ref tests. * testsuite/ld-riscv-elf/weakref.ld: New. * testsuite/ld-riscv-elf/weakref32.d: New. * testsuite/ld-riscv-elf/weakref32.s: New. * testsuite/ld-riscv-elf/weakref64.d: New. * testsuite/ld-riscv-elf/weakref64.s: New.
19 lines
221 B
ArmAsm
19 lines
221 B
ArmAsm
.option nopic
|
|
.text
|
|
.align 1
|
|
.globl _start
|
|
.type _start, @function
|
|
_start:
|
|
lla a5,f
|
|
beqz a5,.L1
|
|
addi sp,sp,-16
|
|
sw ra,12(sp)
|
|
call f
|
|
lw ra,12(sp)
|
|
addi sp,sp,16
|
|
tail f
|
|
.L1:
|
|
ret
|
|
.size _start, .-_start
|
|
.weak f
|