diff options
author | Nelson Chu <nelson@rivosinc.com> | 2024-10-08 12:35:43 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2024-11-19 13:44:49 +0800 |
commit | cb45bd59481353217ebf18d67c6b013ab2d2f263 (patch) | |
tree | 73df2bf7f812115eb8fa0890c0137e91a051dc54 /ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d | |
parent | d7d71afa6aa2db0e7d598af480ed7f14157104d1 (diff) | |
download | binutils-cb45bd59481353217ebf18d67c6b013ab2d2f263.zip binutils-cb45bd59481353217ebf18d67c6b013ab2d2f263.tar.gz binutils-cb45bd59481353217ebf18d67c6b013ab2d2f263.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d')
-rw-r--r-- | ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d deleted file mode 100644 index cfbb233..0000000 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d +++ /dev/null @@ -1,13 +0,0 @@ -#source: attr-merge-priv-spec-a.s -#source: attr-merge-priv-spec-d.s -#source: attr-merge-priv-spec-c.s -#as: -#ld: -r -#warning: .*use privileged spec version 1.11.0 but the output use version 1.10.0 -#readelf: -A - -Attribute Section: riscv -File Attributes - Tag_RISCV_arch: [a-zA-Z0-9_\"].* - Tag_RISCV_priv_spec: 1 - Tag_RISCV_priv_spec_minor: 11 |