diff options
author | Jim Wilson <jimw@sifive.com> | 2018-01-08 17:55:29 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-01-08 17:55:29 -0800 |
commit | 7615ca1dc941bb9f225a1c50df7fdd8d31afc9e8 (patch) | |
tree | bf511a824e970fc250df7de7c2ecf2593e6b362f /ld/testsuite/ld-riscv-elf/c-lui.d | |
parent | 933ea656af9d40604e4823b07b83e74714f2516e (diff) | |
download | binutils-7615ca1dc941bb9f225a1c50df7fdd8d31afc9e8.zip binutils-7615ca1dc941bb9f225a1c50df7fdd8d31afc9e8.tar.gz binutils-7615ca1dc941bb9f225a1c50df7fdd8d31afc9e8.tar.bz2 |
RISC-V: Fix accidental embedded -shared regressions.
ld/
* testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
instead of .text.
* testsuite/ld-riscv-elf/c-lui.s: Add _start label.
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
tests, add call to check_shared_lib_support.
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/c-lui.d')
-rw-r--r-- | ld/testsuite/ld-riscv-elf/c-lui.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-riscv-elf/c-lui.d b/ld/testsuite/ld-riscv-elf/c-lui.d index 7a96711..382eca8 100644 --- a/ld/testsuite/ld-riscv-elf/c-lui.d +++ b/ld/testsuite/ld-riscv-elf/c-lui.d @@ -1,7 +1,7 @@ #name: lui to c.lui relaxation #source: c-lui.s #as: -march=rv32ic -#ld: -shared -melf32lriscv +#ld: -melf32lriscv #objdump: -d -M no-aliases,numeric .*: file format .* @@ -9,7 +9,7 @@ Disassembly of section \.text: -.* <.text>: +.* <_start>: .*: 6085 c.lui x1,0x1 .*: 000000b7 lui x1,0x0 .*: 00001037 lui x0,0x1 |