Skip to content

Commit 2818dfc

Browse files
Nelson Chuluismgsilva
authored andcommitted
RISC-V: Also, fixed more ld testcases for --with-arch and --with-abi
Well these testcases cannot be fixed by .option norvc simply, that is because current linker needs to check mapping symbols before doing any rvc relaxations, riscv-non-isa/riscv-elf-psabi-doc#393 Once we support the above features, we can revert this patch.
1 parent 3161a72 commit 2818dfc

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

ld/testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#source: pcgp-relax-01.s
2-
#ld: --no-relax-gp --relax
2+
#as: -march=rv64i
3+
#ld: --no-relax-gp --relax -m[riscv_choose_lp64_emul]
34
#objdump: -d -Mno-aliases
45

56
.*:[ ]+file format .*

ld/testsuite/ld-riscv-elf/pcgp-relax-01.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#source: pcgp-relax-01.s
2-
#ld: --relax
2+
#as: -march=rv64i
3+
#ld: --relax -m[riscv_choose_lp64_emul]
34
#objdump: -d -Mno-aliases
45

56
.*:[ ]+file format .*

ld/testsuite/ld-riscv-elf/relax-max-align-gp.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#source: relax-max-align-gp.s
2-
#ld:
2+
#as: -march=rv64i
3+
#ld: -m[riscv_choose_lp64_emul]
34
#objdump: -d
45

56
.*:[ ]+file format .*

ld/testsuite/ld-riscv-elf/relro-relax-lui.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#source: relro-relax-lui.s
2-
#ld: -zrelro --relax
2+
#as: -march=rv64i
3+
#ld: -zrelro --relax -m[riscv_choose_lp64_emul]
34
#objdump: -d -Mno-aliases
45

56
.*:[ ]+file format .*

ld/testsuite/ld-riscv-elf/variant_cc-now.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#source: variant_cc-1.s
22
#source: variant_cc-2.s
3-
#ld: -shared --hash-style=sysv -Ttext 0x8000 -z now
3+
#as: -march=rv64i -mabi=lp64
4+
#ld: -shared --hash-style=sysv -Ttext 0x8000 -z now -m[riscv_choose_lp64_emul]
45
#readelf: -rsW
56

67
Relocation section '.rela.plt' at .*

ld/testsuite/ld-riscv-elf/variant_cc-shared.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#source: variant_cc-1.s
22
#source: variant_cc-2.s
3-
#ld: -shared --hash-style=sysv -Ttext 0x8000
3+
#as: -march=rv64i -mabi=lp64
4+
#ld: -shared --hash-style=sysv -Ttext 0x8000 -m[riscv_choose_lp64_emul]
45
#readelf: -rsW
56

67
Relocation section '.rela.plt' at .*

0 commit comments

Comments
 (0)