binutils-gdb/ld/testsuite/ld-riscv-elf
Nelson Chu 412857647f RISC-V: The object without priv spec attributes can be linked with any object.
bfd/
	* elfnn-riscv.c (riscv_merge_attributes): Add new boolean
	priv_may_conflict, in_priv_zero and out_priv_zero to decide whether
	the object can be linked according to it's priv attributes.  The object
	without any priv spec attributes can be linked with others.  If the first
	input object doesn't contain any priv attributes, then we need to copy
	the setting from the next input one.  Also report more detailed error
	messages to user.

	ld/
	* testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
	attr-merge-priv-spec-01.d.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set priv spec
	to 1.11.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec
	setting.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
2020-06-05 12:20:53 +08:00
..
attr-merge-arch-01.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-arch-01a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-01b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-02.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-arch-02a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-02b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-03.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-arch-03a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-03b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-failed-01.d Fix spelling mistakes in BFD library. 2019-01-21 12:39:24 +00:00
attr-merge-arch-failed-01a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-arch-failed-01b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-priv-spec-01.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-02.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-03.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-a.s [PATCH v2 0/9] RISC-V: Support version controling for ISA standard extensions and CSR 2020-05-20 17:22:48 +01:00
attr-merge-priv-spec-b.s [PATCH v2 0/9] RISC-V: Support version controling for ISA standard extensions and CSR 2020-05-20 17:22:48 +01:00
attr-merge-priv-spec-c.s RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-d.s RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-failed-01.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-failed-02.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-failed-03.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-failed-04.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-failed-05.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-priv-spec-failed-06.d RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
attr-merge-stack-align-a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-stack-align-b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-stack-align-failed-a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-stack-align-failed-b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-stack-align-failed.d RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-stack-align.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-strict-align-01.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-strict-align-01a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-01b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-02.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-strict-align-02a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-02b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-03.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-strict-align-03a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-03b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-04.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-strict-align-04a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-04b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-05.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
attr-merge-strict-align-05a.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
attr-merge-strict-align-05b.s RISC-V: Merge ELF attribute for ld. 2019-01-16 13:28:35 -08:00
c-lui-2.d RISC-V: Fix lui relaxation issue with code at address 0. 2019-08-15 12:01:13 -07:00
c-lui-2.ld RISC-V: Fix lui relaxation issue with code at address 0. 2019-08-15 12:01:13 -07:00
c-lui-2.s RISC-V: Fix lui relaxation issue with code at address 0. 2019-08-15 12:01:13 -07:00
c-lui.d RISC-V: Fix accidental embedded -shared regressions. 2018-01-08 17:55:29 -08:00
c-lui.s RISC-V: Fix accidental embedded -shared regressions. 2018-01-08 17:55:29 -08:00
call-relax-0.s RISC-V: Fix ld relax failure with calls and align directives. 2019-11-12 15:53:22 -08:00
call-relax-1.s RISC-V: Fix ld relax failure with calls and align directives. 2019-11-12 15:53:22 -08:00
call-relax-2.s RISC-V: Fix ld relax failure with calls and align directives. 2019-11-12 15:53:22 -08:00
call-relax-3.s RISC-V: Fix ld relax failure with calls and align directives. 2019-11-12 15:53:22 -08:00
call-relax.d RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
disas-jalr.d RISC-V: Print symbol address for jalr w/ zero offset. 2018-01-05 17:51:23 -08:00
disas-jalr.s RISC-V: Print symbol address for jalr w/ zero offset. 2018-01-05 17:51:23 -08:00
gp-test-lib.sd Really fix riscv shared library __global_pointer$ problem. 2017-12-05 14:42:12 -08:00
gp-test.s Really fix riscv shared library __global_pointer$ problem. 2017-12-05 14:42:12 -08:00
gp-test.sd Really fix riscv shared library __global_pointer$ problem. 2017-12-05 14:42:12 -08:00
ld-riscv-elf.exp RISC-V: The object without priv spec attributes can be linked with any object. 2020-06-05 12:20:53 +08:00
lib-nopic-01a.s RISC-V: Report unresolved relocation error via linker's callback function. 2019-10-17 15:38:27 -07:00
lib-nopic-01b.d RISC-V: Report unresolved relocation error via linker's callback function. 2019-10-17 15:38:27 -07:00
lib-nopic-01b.s RISC-V: Report unresolved relocation error via linker's callback function. 2019-10-17 15:38:27 -07:00
pcrel-lo-addend-2.d RISC-V: Adjust __global_pointer$ value to reduce code size. 2018-10-15 16:00:28 -07:00
pcrel-lo-addend-2.s RISC-V: Allow pcrel_lo addends, error on addend overflow. 2018-09-24 14:05:32 -07:00
pcrel-lo-addend.d RISC-V: Allow pcrel_lo addends, error on addend overflow. 2018-09-24 14:05:32 -07:00
pcrel-lo-addend.s RISC-V: Give error for ignored pcrel_lo addend. 2018-02-15 10:53:46 -08:00
weakref32.d RISC-V: Optimize lui and auipc relaxations for undefweak symbol. 2019-09-20 15:01:20 -07:00
weakref32.s RISC-V: Optimize lui and auipc relaxations for undefweak symbol. 2019-09-20 15:01:20 -07:00
weakref64.d RISC-V: Optimize lui and auipc relaxations for undefweak symbol. 2019-09-20 15:01:20 -07:00
weakref64.s RISC-V: Optimize lui and auipc relaxations for undefweak symbol. 2019-09-20 15:01:20 -07:00
weakref.ld RISC-V: Handle out-of-range calls to undefined weak. 2018-06-03 15:42:29 -07:00