RISC-V: Don't report warnings when linking different privileged spec objects.
commitcb45bd59481353217ebf18d67c6b013ab2d2f263
authorNelson Chu <nelson@rivosinc.com>
Tue, 8 Oct 2024 04:35:43 +0000 (8 12:35 +0800)
committerNelson Chu <nelson@rivosinc.com>
Tue, 19 Nov 2024 05:44:49 +0000 (19 13:44 +0800)
tree73df2bf7f812115eb8fa0890c0137e91a051dc54
parentd7d71afa6aa2db0e7d598af480ed7f14157104d1
RISC-V: Don't report warnings when linking different privileged spec objects.

Since only the abandoned privileged spec v1.9.1 will have conflict csrs, to
keep the compatible we still report warnings when linking privileged spec
v1.9.1 objects with others.  But don't report warnings for other compatible
cases because it is actually a bit noisy and useless...

bfd/
* elfnn-riscv.c (riscv_merge_attributes): Only report warnings when
linking the abandoned privileged spec v1.9.1 object with others.
ld/
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Removed.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Removed.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Removed.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Removed.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Removed.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Removed.
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
bfd/elfnn-riscv.c
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d [deleted file]
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d [deleted file]
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d [deleted file]
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d [deleted file]
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d [deleted file]
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d [deleted file]
ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp