mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
The libctf machinery currently only provides one way to iterate over its data structures: ctf_*_iter functions that take a callback and an arg and repeatedly call it. This *works*, but if you are doing a lot of iteration it is really quite inconvenient: you have to package up your local variables into structures over and over again and spawn lots of little functions even if it would be clearer in a single run of code. Look at ctf-string.c for an extreme example of how unreadable this can get, with three-line-long functions proliferating wildly. The deduplicator takes this to the Nth level. It iterates over a whole bunch of things: if we'd had to use _iter-class iterators for all of them there would be twenty additional functions in the deduplicator alone, for no other reason than that the iterator API requires it. Let's do something better. strtok_r gives us half the design: generators in a number of other languages give us the other half. The *_next API allows you to iterate over CTF-like entities in a single function using a normal while loop. e.g. here we are iterating over all the types in a dict: ctf_next_t *i = NULL; int *hidden; ctf_id_t id; while ((id = ctf_type_next (fp, &i, &hidden, 1)) != CTF_ERR) { /* do something with 'hidden' and 'id' */ } if (ctf_errno (fp) != ECTF_NEXT_END) /* iteration error */ Here we are walking through the members of a struct with CTF ID 'struct_type': ctf_next_t *i = NULL; ssize_t offset; const char *name; ctf_id_t membtype; while ((offset = ctf_member_next (fp, struct_type, &i, &name, &membtype)) >= 0 { /* do something with offset, name, and membtype */ } if (ctf_errno (fp) != ECTF_NEXT_END) /* iteration error */ Like every other while loop, this means you have access to all the local variables outside the loop while inside it, with no need to tiresomely package things up in structures, move the body of the loop into a separate function, etc, as you would with an iterator taking a callback. ctf_*_next allocates 'i' for you on first entry (when it must be NULL), and frees and NULLs it and returns a _next-dependent flag value when the iteration is over: the fp errno is set to ECTF_NEXT_END when the iteartion ends normally. If you want to exit early, call ctf_next_destroy on the iterator. You can copy iterators using ctf_next_copy, which copies their current iteration position so you can remember loop positions and go back to them later (or ctf_next_destroy them if you don't need them after all). Each _next function returns an always-likely-to-be-useful property of the thing being iterated over, and takes pointers to parameters for the others: with very few exceptions all those parameters can be NULLs if you're not interested in them, so e.g. you can iterate over only the offsets of members of a structure this way: while ((offset = ctf_member_next (fp, struct_id, &i, NULL, NULL)) >= 0) If you pass an iterator in use by one iteration function to another one, you get the new error ECTF_NEXT_WRONGFUN back; if you try to change ctf_file_t in mid-iteration, you get ECTF_NEXT_WRONGFP back. Internally the ctf_next_t remembers the iteration function in use, various sizes and increments useful for almost all iterations, then uses unions to overlap the actual entities being iterated over to keep ctf_next_t size down. Iterators available in the public API so far (all tested in actual use in the deduplicator): /* Iterate over the members of a STRUCT or UNION, returning each member's offset and optionally name and member type in turn. On end-of-iteration, returns -1. */ ssize_t ctf_member_next (ctf_file_t *fp, ctf_id_t type, ctf_next_t **it, const char **name, ctf_id_t *membtype); /* Iterate over the members of an enum TYPE, returning each enumerand's NAME or NULL at end of iteration or error, and optionally passing back the enumerand's integer VALue. */ const char * ctf_enum_next (ctf_file_t *fp, ctf_id_t type, ctf_next_t **it, int *val); /* Iterate over every type in the given CTF container (not including parents), optionally including non-user-visible types, returning each type ID and optionally the hidden flag in turn. Returns CTF_ERR on end of iteration or error. */ ctf_id_t ctf_type_next (ctf_file_t *fp, ctf_next_t **it, int *flag, int want_hidden); /* Iterate over every variable in the given CTF container, in arbitrary order, returning the name and type of each variable in turn. The NAME argument is not optional. Returns CTF_ERR on end of iteration or error. */ ctf_id_t ctf_variable_next (ctf_file_t *fp, ctf_next_t **it, const char **name); /* Iterate over all CTF files in an archive, returning each dict in turn as a ctf_file_t, and NULL on error or end of iteration. It is the caller's responsibility to close it. Parent dicts may be skipped. Regardless of whether they are skipped or not, the caller must ctf_import the parent if need be. */ ctf_file_t * ctf_archive_next (const ctf_archive_t *wrapper, ctf_next_t **it, const char **name, int skip_parent, int *errp); ctf_label_next is prototyped but not implemented yet. include/ * ctf-api.h (ECTF_NEXT_END): New error. (ECTF_NEXT_WRONGFUN): Likewise. (ECTF_NEXT_WRONGFP): Likewise. (ECTF_NERR): Adjust. (ctf_next_t): New. (ctf_next_create): New prototype. (ctf_next_destroy): Likewise. (ctf_next_copy): Likewise. (ctf_member_next): Likewise. (ctf_enum_next): Likewise. (ctf_type_next): Likewise. (ctf_label_next): Likewise. (ctf_variable_next): Likewise. libctf/ * ctf-impl.h (ctf_next): New. (ctf_get_dict): New prototype. * ctf-lookup.c (ctf_get_dict): New, split out of... (ctf_lookup_by_id): ... here. * ctf-util.c (ctf_next_create): New. (ctf_next_destroy): New. (ctf_next_copy): New. * ctf-types.c (includes): Add <assert.h>. (ctf_member_next): New. (ctf_enum_next): New. (ctf_type_iter): Document the lack of iteration over parent types. (ctf_type_next): New. (ctf_variable_next): New. * ctf-archive.c (ctf_archive_next): New. * libctf.ver: Add new public functions.
540 lines
16 KiB
Plaintext
540 lines
16 KiB
Plaintext
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ECTF_NEXT_END): New error.
|
||
(ECTF_NEXT_WRONGFUN): Likewise.
|
||
(ECTF_NEXT_WRONGFP): Likewise.
|
||
(ECTF_NERR): Adjust.
|
||
(ctf_next_t): New.
|
||
(ctf_next_create): New prototype.
|
||
(ctf_next_destroy): Likewise.
|
||
(ctf_next_copy): Likewise.
|
||
(ctf_member_next): Likewise.
|
||
(ctf_enum_next): Likewise.
|
||
(ctf_type_next): Likewise.
|
||
(ctf_label_next): Likewise.
|
||
(ctf_variable_next): Likewise.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ctf_ref): New.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ctf_archive_count): New.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ctf_member_count): New.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ctf_type_kind_forwarded): New.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.c (ctf_type_name_raw): New.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ECTF_*): Improve comments.
|
||
(ECTF_NERR): New.
|
||
|
||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h: Fix typos in comments.
|
||
|
||
2020-07-22 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/26262
|
||
PR ld/26267
|
||
* bfdlink.h (bfd_link_info): Add lto_all_symbols_read.
|
||
|
||
2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf/common.h (GNU_PROPERTY_X86_FEATURE_2_TMM): New.
|
||
|
||
2020-07-09 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC)
|
||
(AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS): Define.
|
||
|
||
2020-07-09 Alan Modra <amodra@gmail.com>
|
||
|
||
* coff/powerpc.h: Delete.
|
||
|
||
2020-07-04 Nick Clifton <nickc@redhat.com>
|
||
|
||
Binutils 2.35 branch created.
|
||
|
||
2020-06-30 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Support the unprivileged CSR. The versions
|
||
of the unprivileged CSR should be PRIV_SPEC_CLASS_NONE for now.
|
||
* opcode/riscv.h (enum riscv_csr_class): Add CSR_CLASS_DEBUG.
|
||
|
||
2020-06-30 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Cleanup and remove the unused macros.
|
||
|
||
2020-06-29 Alan Modra <amodra@gmail.com>
|
||
|
||
* coff/internal.h: Use C style comments.
|
||
* coff/pe.h: Likewise.
|
||
* elf/ppc64.h: Likewise.
|
||
|
||
2020-06-26 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ctf_arc_bufopen): New.
|
||
|
||
2020-06-26 Pat Bernardi <bernardi@adacore.com>
|
||
|
||
* elf/m68k.h: Add enum for GNU object attribute with floating point
|
||
tag name and values.
|
||
|
||
2020-06-25 Nick Clifton <nickc@redhat.com>
|
||
|
||
* libiberty.h (bsearch_r): Remove use of the register keyword from
|
||
the prototype.
|
||
|
||
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
Sync with GCC
|
||
2020-06-23 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* libiberty.h (bsearch_r): New.
|
||
|
||
2020-04-17 Martin Liska <mliska@suse.cz>
|
||
Jonathan Yong <10walls@gmail.com>
|
||
|
||
PR gcov-profile/94570
|
||
* filenames.h (defined): Do not define HAVE_DOS_BASED_FILE_SYSTEM
|
||
for CYGWIN.
|
||
|
||
2020-06-22 Alex Coplan <alex.coplan@arm.com>
|
||
|
||
* opcode/aarch64.h (AARCH64_FEATURE_SHA2): Normalize.
|
||
(AARCH64_FEATURE_AES): Likewise.
|
||
(AARCH64_FEATURE_V8_4): Likewise.
|
||
(AARCH64_FEATURE_SM4): Likewise.
|
||
(AARCH64_FEATURE_SHA3): Likewise.
|
||
(AARCH64_FEATURE_V8): Likewise.
|
||
(AARCH64_FEATURE_V8_2): Likewise.
|
||
(AARCH64_FEATURE_V8_3): Likewise.
|
||
(AARCH64_FEATURE_FP): Likewise.
|
||
(AARCH64_FEATURE_SIMD): Likewise.
|
||
(AARCH64_FEATURE_CRC): Likewise.
|
||
(AARCH64_FEATURE_LSE): Likewise.
|
||
(AARCH64_FEATURE_PAN): Likewise.
|
||
(AARCH64_FEATURE_LOR): Likewise.
|
||
(AARCH64_FEATURE_RDMA): Likewise.
|
||
(AARCH64_FEATURE_V8_1): Likewise.
|
||
(AARCH64_FEATURE_F16): Likewise.
|
||
(AARCH64_FEATURE_RAS): Likewise.
|
||
(AARCH64_FEATURE_PROFILE): Likewise.
|
||
(AARCH64_FEATURE_SVE): Likewise.
|
||
(AARCH64_FEATURE_RCPC): Likewise.
|
||
(AARCH64_FEATURE_COMPNUM): Likewise.
|
||
(AARCH64_FEATURE_DOTPROD): Likewise.
|
||
(AARCH64_FEATURE_F16_FML): Likewise.
|
||
(AARCH64_FEATURE_V8_5): Likewise.
|
||
(AARCH64_FEATURE_V8_6): Likewise.
|
||
(AARCH64_FEATURE_BFLOAT16): Likewise.
|
||
(AARCH64_FEATURE_FLAGMANIP): Likewise.
|
||
(AARCH64_FEATURE_FRINTTS): Likewise.
|
||
(AARCH64_FEATURE_SB): Likewise.
|
||
(AARCH64_FEATURE_PREDRES): Likewise.
|
||
(AARCH64_FEATURE_CVADP): Likewise.
|
||
(AARCH64_FEATURE_RNG): Likewise.
|
||
(AARCH64_FEATURE_BTI): Likewise.
|
||
(AARCH64_FEATURE_SCXTNUM): Likewise.
|
||
(AARCH64_FEATURE_ID_PFR2): Likewise.
|
||
(AARCH64_FEATURE_SSBS): Likewise.
|
||
(AARCH64_FEATURE_MEMTAG): Likewise.
|
||
(AARCH64_FEATURE_TME): Likewise.
|
||
(AARCH64_FEATURE_I8MM): Likewise.
|
||
(AARCH64_FEATURE_F32MM): Likewise.
|
||
(AARCH64_FEATURE_F64MM): Likewise.
|
||
(AARCH64_FEATURE_SVE2): Likewise.
|
||
(AARCH64_FEATURE_SVE2_AES): Likewise.
|
||
(AARCH64_FEATURE_SVE2_BITPERM): Likewise.
|
||
(AARCH64_FEATURE_SVE2_SM4): Likewise.
|
||
(AARCH64_FEATURE_SVE2_SHA3): Likewise.
|
||
|
||
2020-06-22 Saagar Jha <saagar@saagarjha.com>
|
||
|
||
* mach-o/loader.h: Add declarations of two new Mach-O load
|
||
commands.
|
||
|
||
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv.h (riscv_get_priv_spec_class): Move the function
|
||
forward declarations to bfd/elfxx-riscv.h.
|
||
(riscv_get_priv_spec_name): Likewise.
|
||
|
||
2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
|
||
|
||
* elf/xtensa.h (xtensa_abi_choice): New declaration.
|
||
|
||
2020-06-12 Roland McGrath <mcgrathr@google.com>
|
||
|
||
* bfdlink.h (struct bfd_link_info): New field start_stop_visibility.
|
||
|
||
2020-06-12 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Update the defined versions of CSR from
|
||
PRIV_SPEC_CLASS_1P9 to PRIV_SPEC_CLASS_1P9P1. Also, drop the
|
||
MISA DECLARE_CSR_ALIAS since it's aborted version is v1.9.
|
||
* opcode/riscv.h (enum riscv_priv_spec_class): Remove
|
||
PRIV_SPEC_CLASS_1P9.
|
||
|
||
2020-06-11 Alex Coplan <alex.coplan@arm.com>
|
||
|
||
* opcode/aarch64.h (aarch64_sys_reg): Add required features to struct
|
||
describing system registers.
|
||
|
||
2020-06-11 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf/mips.h (Elf32_RegInfo): Use fixed width integer types.
|
||
(Elf64_Internal_RegInfo, Elf_Internal_Options): Likewise.
|
||
|
||
2020-06-06 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf/ppc64.h (elf_ppc64_reloc_type): Rename
|
||
R_PPC64_GOT_TLSGD34 to R_PPC64_GOT_TLSGD_PCREL34,
|
||
R_PPC64_GOT_TLSLD34 to R_PPC64_GOT_TLSLD_PCREL34,
|
||
R_PPC64_GOT_TPREL34 to R_PPC64_GOT_TPREL_PCREL34, and
|
||
R_PPC64_GOT_DTPREL34 to R_PPC64_GOT_DTPREL_PCREL34.
|
||
|
||
2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
|
||
|
||
* opcode/cgen.h: Get an `endian' argument in both
|
||
cgen_get_insn_value and cgen_put_insn_value.
|
||
|
||
2020-06-04 Jose E. Marchesi <jemarch@gnu.org>
|
||
|
||
* opcode/cgen.h (enum cgen_cpu_open_arg): New value
|
||
CGEN_CPU_OPEN_INSN_ENDIAN.
|
||
|
||
2020-06-03 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv.h: Remove #include "bfd.h". And change the return
|
||
types of riscv_get_isa_spec_class and riscv_get_priv_spec_class
|
||
from bfd_boolean to int.
|
||
|
||
2020-05-28 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 26044
|
||
* opcode/tilepro.h (TILEPRO_NUM_PIPELINE_ENCODINGS): Move to
|
||
tilepro_pipeline enum.
|
||
|
||
2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/22909
|
||
* bfdlink.h (textrel_check_method): New enum.
|
||
(bfd_link_textrel_check): New.
|
||
(bfd_link_info): Replace warn_shared_textrel and error_textrel
|
||
with textrel_check.
|
||
|
||
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf/common.h: Update comments for ET_EXEC and ET_DYN.
|
||
|
||
2020-05-20 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv.h: Include "bfd.h" to support bfd_boolean.
|
||
(enum riscv_isa_spec_class): New enum class. All supported ISA spec
|
||
belong to one of the class
|
||
(struct riscv_ext_version): New structure holds version information
|
||
for the specific ISA.
|
||
* opcode/riscv-opc.h (DECLARE_CSR): There are two version information,
|
||
define_version and abort_version. The define_version means which
|
||
privilege spec is started to define the CSR, and the abort_version
|
||
means which privilege spec is started to abort the CSR. If the CSR is
|
||
valid for the newest spec, then the abort_version should be
|
||
PRIV_SPEC_CLASS_DRAFT.
|
||
(DECLARE_CSR_ALIAS): Same as DECLARE_CSR, but only for the obselete CSR.
|
||
* opcode/riscv.h (enum riscv_priv_spec_class): New enum class. Define
|
||
the current supported privilege spec versions.
|
||
(struct riscv_csr_extra): Add new fields to store more information
|
||
about the CSR. We use these information to find the suitable CSR
|
||
address when user choosing a specific privilege spec.
|
||
|
||
2020-05-19 Alexander Fedotov <alfedotov@gmail.com>
|
||
|
||
PR 25992
|
||
* opcode/arm.h (ARM_EXT2_V8R): Define. Modified ARM_AEXT2_V8R.
|
||
|
||
2020-05-11 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/ppc.h (PPC_OPERAND_ACC): Define. Renumber following
|
||
PPC_OPERAND defines.
|
||
|
||
2020-05-11 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf/ppc64.h: Update comment.
|
||
* opcode/ppc.h (PPC_OPCODE_POWER10): Rename from PPC_OPCODE_POWERXX.
|
||
|
||
2020-04-30 Alex Coplan <alex.coplan@arm.com>
|
||
|
||
* opcode/aarch64.h (enum aarch64_opnd): Add
|
||
AARCH64_OPND_UNDEFINED.
|
||
|
||
2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
|
||
|
||
* elf/common.h (NT_ARC_V2): New macro definitions.
|
||
|
||
2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
|
||
|
||
PR ld/25861
|
||
* elf/xtensa.h (elf_xtensa_reloc_type): New entries for
|
||
R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
|
||
|
||
2020-04-21 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf/sh.h (STO_SH5_ISA32, SHF_SH5_ISA32, SHF_SH5_ISA32_MIXED),
|
||
(SHT_SH5_CR_SORTED, STT_DATALABEL): Delete.
|
||
|
||
2020-04-10 Fangrui Song <maskray@google.com>
|
||
|
||
PR binutils/24613
|
||
* bfdlink.h (enum report_method): Delete RM_GENERATE_WARNING and
|
||
RM_GENERATE_ERROR. Add RM_DIAGNOSE.
|
||
(struct bfd_link_info): Add warn_unresolved_syms.
|
||
|
||
2020-04-14 Stephen Casner <casner@acm.org>
|
||
|
||
PR ld/25677
|
||
* aout/aout64.h (N_DATADDR): Add IMAGIC case.
|
||
|
||
2020-04-02 Jan W. Jagersma <jwjagersma@gmail.com>
|
||
|
||
* coff/go32exe.h: Remove file.
|
||
* coff/internal.h (struct internal_filehdr): Remove field
|
||
go32stub. Remove flag F_GO32STUB.
|
||
|
||
2020-04-01 Martin Liska <mliska@suse.cz>
|
||
Maciej W. Rozycki <macro@linux-mips.org>
|
||
|
||
PR lto/94249
|
||
* plugin-api.h: Fix a typo.
|
||
|
||
2020-03-30 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Update CSR to 1.11.
|
||
|
||
2020-03-26 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* elf/common.h (AT_FREEBSD_BSDFLAGS): Define.
|
||
|
||
2020-03-24 Martin Liska <mliska@suse.cz>
|
||
|
||
PR lto/94249
|
||
* plugin-api.h: Add more robust endianess detection.
|
||
|
||
2020-03-21 Martin Liska <mliska@suse.cz>
|
||
|
||
* plugin-api.h (enum ld_plugin_symbol_type): Remove
|
||
comma after last value of an enum.
|
||
* lto-symtab.h (enum gcc_plugin_symbol_type): Likewise.
|
||
|
||
2020-03-19 Martin Liska <mliska@suse.cz>
|
||
|
||
* lto-symtab.h (enum gcc_plugin_symbol_type): New.
|
||
(enum gcc_plugin_symbol_section_kind): Likewise.
|
||
|
||
2020-03-19 Martin Liska <mliska@suse.cz>
|
||
|
||
* plugin-api.h (struct ld_plugin_symbol): Split
|
||
int def into 4 char fields.
|
||
(enum ld_plugin_symbol_type): New.
|
||
(enum ld_plugin_symbol_section_kind): New.
|
||
(enum ld_plugin_tag): Add LDPT_ADD_SYMBOLS_V2.
|
||
|
||
2020-03-13 Kamil Rytarowski <n54@gmx.com>
|
||
|
||
* elf/common.h (NT_NETBSDCORE_LWPSTATUS): New define.
|
||
|
||
2020-03-13 Kamil Rytarowski <n54@gmx.com>
|
||
|
||
* elf/common.h (NT_NETBSDCORE_AUXV): New define.
|
||
|
||
2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
|
||
|
||
* bfdlink.h (bfd_link_info): Add non_contiguous_regions and
|
||
non_contiguous_regions_warnings fields.
|
||
|
||
2020-03-13 Christian Eggers <ceggers@gmx.de>
|
||
|
||
* bfdlink.h (struct bfd_link_order): Add unit (bytes/octets) to
|
||
offset and size members.
|
||
* elf/internal.h (struct elf_internal_phdr): Likewise for
|
||
p_align member.
|
||
(struct elf_segment_map): Likewise for p_paddr and p_size
|
||
members
|
||
|
||
2020-03-13 Christian Eggers <ceggers@gmx.de>
|
||
|
||
* elf/internal.h (struct elf_internal_phdr): Add unit (octets)
|
||
to several member field comments.
|
||
(Elf_Internal_Shdr): likewise.
|
||
|
||
2020-03-10 Alan Modra <amodra@gmail.com>
|
||
|
||
* som/aout.h (SOM_AUX_ID_MANDATORY, SOM_SPACE_IS_LOADABLE),
|
||
(SOM_SYMBOL_HIDDEN, SOM_SYMBOL_HAS_LONG_RETURN): Use 1u << 31.
|
||
* som/lst.h (LST_SYMBOL_HIDDEN): Likewise.
|
||
|
||
2020-03-03 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* elf/common.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY)
|
||
(AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE)
|
||
(AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY)
|
||
(AT_MINSIGSTKSZ): New defines, imported from glibc.
|
||
|
||
2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
Import from gcc mainline:
|
||
2020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* hashtab.h (htab_remove_elt): Make a parameter const.
|
||
(htab_remove_elt_with_hash): Likewise.
|
||
|
||
2020-02-20 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Extend DECLARE_CSR and DECLARE_CSR_ALIAS to
|
||
record riscv_csr_class.
|
||
|
||
2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
|
||
Matthew Malcomson <matthew.malcomson@arm.com>
|
||
|
||
* opcode/arm.h (ARM_EXT2_CDE): New extension macro.
|
||
(ARM_EXT2_CDE0): New extension macro.
|
||
(ARM_EXT2_CDE1): New extension macro.
|
||
(ARM_EXT2_CDE2): New extension macro.
|
||
(ARM_EXT2_CDE3): New extension macro.
|
||
(ARM_EXT2_CDE4): New extension macro.
|
||
(ARM_EXT2_CDE5): New extension macro.
|
||
(ARM_EXT2_CDE6): New extension macro.
|
||
(ARM_EXT2_CDE7): New extension macro.
|
||
|
||
2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
|
||
|
||
PR 25469
|
||
* coff/internal.h (R_IMM16BE): Define.
|
||
* elf/z80.h (EF_Z80_MACH_Z80N): Define.
|
||
(R_Z80_16_BE): New reloc.
|
||
|
||
2020-02-04 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/d30v.h (struct pd_reg): Make value field unsigned.
|
||
|
||
2020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
|
||
|
||
* coff/internal.h (PE_IMAGE_DEBUG_TYPE_VC_FEATURE)
|
||
(PE_IMAGE_DEBUG_TYPE_POGO, PE_IMAGE_DEBUG_TYPE_ILTCG)
|
||
(PE_IMAGE_DEBUG_TYPE_MPX, PE_IMAGE_DEBUG_TYPE_REPRO): Add.
|
||
|
||
2020-01-18 Nick Clifton <nickc@redhat.com>
|
||
|
||
Binutils 2.34 branch created.
|
||
|
||
2020-01-17 Nick Clifton <nickc@redhat.com>
|
||
|
||
* Import from gcc mainline:
|
||
2019-06-10 Martin Liska <mliska@suse.cz>
|
||
|
||
* ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): New macro.
|
||
* libiberty.h (xmalloc): Use it.
|
||
(xrealloc): Likewise.
|
||
(xcalloc): Likewise.
|
||
(xstrdup): Likewise.
|
||
(xstrndup): Likewise.
|
||
(xmemdup): Likewise.
|
||
|
||
2019-06-10 Martin Liska <mliska@suse.cz>
|
||
|
||
* ansidecl.h:
|
||
(ATTRIBUTE_RESULT_SIZE_1): Define new macro.
|
||
(ATTRIBUTE_RESULT_SIZE_2): Likewise.
|
||
(ATTRIBUTE_RESULT_SIZE_1_2): Likewise.
|
||
* libiberty.h (xmalloc): Add RESULT_SIZE attribute.
|
||
(xrealloc): Likewise.
|
||
(xcalloc): Likewise.
|
||
|
||
2019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||
|
||
* demangle.h (struct demangle_component): Add member
|
||
d_counting.
|
||
|
||
2019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
|
||
|
||
* demangle.h (rust_demangle_callback): Add.
|
||
|
||
2019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
|
||
|
||
* demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h.
|
||
(rust_demangle_sym): Move to libiberty/rust-demangle.h.
|
||
|
||
2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
|
||
|
||
PR 25376
|
||
* opcodes/arm.h (FPU_MVE, FPU_MVE_FPU): Move these features to...
|
||
(ARM_EXT2_MVE, ARM_EXT2_MVE_FP): ... the CORE_HIGH space.
|
||
(ARM_ANY): Redefine to not include any MVE bits.
|
||
(ARM_FEATURE_ALL): Removed.
|
||
|
||
2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||
|
||
* opcode/msp430.h (enum msp430_expp_e): New.
|
||
(struct msp430_operand_s): Add expp member to struct.
|
||
|
||
2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
|
||
|
||
* elf/arc-cpu.def: Update ARC cpu list.
|
||
|
||
2020-01-13 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/tic4x.h (EXTR): Delete.
|
||
(EXTRU, EXTRS, INSERTU, INSERTS): Rewrite without zero/sign
|
||
extension using shifts. Do trim INSERTU value to specified bitfield.
|
||
|
||
2020-01-10 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/spu.h: Formatting.
|
||
(UNSIGNED_EXTRACT): Use 1u.
|
||
(SIGNED_EXTRACT): Don't sign extend with shifts.
|
||
(DECODE_INSN_I9a, DECODE_INSN_I9b): Avoid left shift of signed value.
|
||
Keep result signed.
|
||
(DECODE_INSN_U9a, DECODE_INSN_U9b): Delete.
|
||
|
||
2020-01-07 Shahab Vahedi <shahab@synopsys.com>
|
||
|
||
* opcode/arc.h (insn_class_t): Add 'LLOCK' and 'SCOND'.
|
||
|
||
2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
|
||
|
||
* coff/internal.h: Add defintions of Z80 reloc names.
|
||
|
||
2020-01-02 Christian Biesinger <cbiesinger@google.com>
|
||
|
||
* opcode/s12z.h: Undef REG_Y.
|
||
|
||
2020-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2019
|
||
|
||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|