X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2FChangeLog;h=6ac3c0fb67efc423a25dd12cad0daceccdc9b7ad;hb=39ff0b812324f4b050bb0b367b269db6d4d0cb8b;hp=d9b66b55d347e37b940c5b869e77cec1f4a73dc8;hpb=cbd7581f343d85b4216db2eefdf601f6d988062d;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d9b66b55d3..6ac3c0fb67 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,25 @@ +2020-06-22 Nelson Chu + + * elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from + opcodes/riscv-opc.c to bfd/elfxx-riscv.c, since we need it in linker. + (riscv_get_priv_spec_class): Likewise. + (riscv_get_priv_spec_name): Likewise. + (riscv_get_priv_spec_class_from_numbers): New function, convert + the version numbers into string, then call riscv_get_priv_spec_class + to get the priv spec class. + * elfxx-riscv.h (riscv_get_priv_spec_class): Move forward declaration + from include/opcode/riscv.h to bfd/elfxx-riscv.h. + (riscv_get_priv_spec_name): Likewise. + (riscv_get_priv_spec_class_from_numbers): New forward declaration. + (opcode/riscv.h): Include it in the header rather than elfxx-riscv.c. + * elfnn-riscv.c (riscv_merge_attributes): Get the priv spec classes + of input and output objects form their priv spec attributes by + riscv_get_priv_spec_class_from_numbers. Report warning rather than + errors when linking objects with differnet priv spec versions. We do + know v1.9.1 may have conflicts to other versions, so report the + warning, too. After that, update the output priv spec version to the + newest one so far. + 2020-06-22 Nelson Chu * elfnn-riscv.c (riscv_merge_attributes): Once we meet one of the