mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
a9522a2168
The constant EF_ARC_CPU_GENERIC is defined in the include/elf/arc.h file, and is used in a few places in binutils, however, this constant should never make it into the elf header flags; we always set a valid cpu type in the assembler, which should then be copied over during linking. There are some non-gnu arc compilers that don't write an architecture type into the e_flags field, instead leaving the field as 0, which is the EF_ARC_CPU_GENERIC value. This non-gnu compiler uses the machine type to distinguish between the old and newer arc architectures, setting the machine type to EM_ARC_COMPACT for old arc600, arc601, and arc700 architectures, while using EM_ARC_COMPACT2 for newer arcem and archs architectures. Previously when displaying the machine flags for an older EM_ARC_COMPACT machine, if the e_flags had not been filled in, then we relied on the default case statement to display the message "Generic ARCompact", while in the EM_ARC_COMPACT2 case we specifically handled EF_ARC_CPU_GENERIC to print "ARC Generic", leaving the default case to print a message about unrecognised cpu flag. After this commit EF_ARC_CPU_GENERIC has been removed, for both machine types EM_ARC_COMPACT and EM_ARC_COMPACT2 we now rely on the default case statement to handle the situation where the e_flags has not been filled in. The message displayed is now "Unknown ARCompact" (for older arc architectures) and "Unknown ARC" (for the newer architectures). The switch from "Generic" to "Unknown" in the message string is for clarity, calling the file "Generic" can give the impression that the file is compiled for a common sub-set of the architectures, and would therefore run on any type of machine (or at least any type of new or old machine depending on if the machine type is ARC or ARCv2). However, this was not what "Generic" meant, it really meant "Unknown", so that's what we now say. As part of the merging of the readelf flag reading code, I have unified the strings used in displaying the ELF ABI. This means that for older arc machines (arc600, arc601, and arc700) the string used for the original ABI, and ABIv2 have changed, the current ABIv3 remains the same. For the newer architectures (arcem and archs) the abi strings remain unchanged in all cases. bfd/ChangeLog: * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of EF_ARC_CPU_GENERIC. (arc_elf_final_write_processing): Don't bother setting cpu field in e_flags, this will have been set elsewhere. binutils/ChangeLog: * readelf.c (get_machine_flags): Move arc processing into... (decode_ARC_machine_flags): ... new function. Remove use of EF_ARC_CPU_GENERIC, change default case from "generic arc" to "unknown arc". Merged ABI printing between two machine types. gas/ChangeLog: * config/tc-arc.c (arc_select_cpu): Remove use of EF_ARC_CPU_GENERIC. include/ChangeLog: * elf/arc.h (EF_ARC_CPU_GENERIC): Delete. Update related comment.
177 lines
5.3 KiB
Plaintext
177 lines
5.3 KiB
Plaintext
2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* elf/arc.h (EF_ARC_CPU_GENERIC): Delete. Update related comment.
|
||
|
||
2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* elf/arc.h (EF_ARC_MACH): Delete.
|
||
(EF_ARC_MACH_MSK): Remove out of date comment.
|
||
|
||
2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* opcode/arc.h (ARC_OPCODE_BASE): Delete.
|
||
|
||
2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/19807
|
||
* bfdlink.h (bfd_link_info): Add no_reloc_overflow_check.
|
||
|
||
2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
|
||
Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* elf/arc-reloc.def: Add a call to ME within the formula for each
|
||
relocation that requires middle-endian correction.
|
||
|
||
2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
||
|
||
* opcode/dlx.h (struct dlx_opcode): Add const qualifiers.
|
||
* opcode/h8300.h (struct h8_opcode): Likewise.
|
||
* opcode/hppa.h (struct pa_opcode): Likewise.
|
||
* opcode/msp430.h: Likewise.
|
||
* opcode/spu.h (struct spu_opcode): Likewise.
|
||
* opcode/tic30.h (struct _register): Likewise.
|
||
* opcode/tic4x.h (struct tic4x_register): Likewise.
|
||
(struct tic4x_cond): Likewise.
|
||
(struct tic4x_indirect): Likewise.
|
||
(struct tic4x_inst): Likewise.
|
||
* opcode/visium.h (struct reg_entry): Likewise.
|
||
|
||
2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
|
||
|
||
* arm.h (ARM_ARCH_V8_1A): Add FPU_NEON_EXT_RDMA.
|
||
(ARM_CPU_HAS_FEATURE): Add comment.
|
||
|
||
2016-03-03 Than McIntosh <thanm@google.com>
|
||
|
||
* plugin-api.h: Add new hooks to the plugin transfer vector to
|
||
to support querying section alignment and section size.
|
||
(ld_plugin_get_input_section_alignment): New hook.
|
||
(ld_plugin_get_input_section_size): New hook.
|
||
(ld_plugin_tag): Add LDPT_GET_INPUT_SECTION_ALIGNMENT
|
||
and LDPT_GET_INPUT_SECTION_SIZE.
|
||
(ld_plugin_tv): Add tv_get_input_section_alignment and
|
||
tv_get_input_section_size.
|
||
|
||
2016-03-03 Evgenii Stepanov <eugenis@google.com>
|
||
|
||
* plugin-api.h (enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V3.
|
||
|
||
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/19645
|
||
* bfdlink.h (bfd_link_elf_stt_common): New enum.
|
||
(bfd_link_info): Add elf_stt_common.
|
||
|
||
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/19636
|
||
PR ld/19704
|
||
PR ld/19719
|
||
* bfdlink.h (bfd_link_info): Add dynamic_undefined_weak.
|
||
|
||
2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
|
||
Jiong Wang <jiong.wang@arm.com>
|
||
|
||
* opcode/arm.h (ARM_EXT2_FP16_INSN): New.
|
||
|
||
2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
|
||
Janek van Oirschot <jvanoirs@synopsys.com>
|
||
|
||
* opcode/arc.h (arc_opcode arc_relax_opcodes, arc_num_relax_opcodes):
|
||
Declare.
|
||
|
||
2016-02-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
* opcode/metag.h (metag_scondtab): Mark as possibly unused.
|
||
* opcode/nds32.h (nds32_r45map): Likewise.
|
||
(nds32_r54map): Likewise.
|
||
* opcode/visium.h (gen_reg_table): Likewise.
|
||
(fp_reg_table, cc_table, opcode_table): Likewise.
|
||
|
||
2016-02-09 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 16583
|
||
* elf/common.h (AT_SUN_HWCAP): Undef before defining.
|
||
|
||
2016-02-04 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR target/19561
|
||
* opcode/msp430.h (IGNORE_CARRY_BIT): New define.
|
||
(RRUX): Synthesise using case 2 rather than 7.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* elf/common.h (NT_FREEBSD_THRMISC): Define.
|
||
(NT_FREEBSD_PROCSTAT_PROC): Define.
|
||
(NT_FREEBSD_PROCSTAT_FILES): Define.
|
||
(NT_FREEBSD_PROCSTAT_VMMAP): Define.
|
||
(NT_FREEBSD_PROCSTAT_GROUPS): Define.
|
||
(NT_FREEBSD_PROCSTAT_UMASK): Define.
|
||
(NT_FREEBSD_PROCSTAT_RLIMIT): Define.
|
||
(NT_FREEBSD_PROCSTAT_OSREL): Define.
|
||
(NT_FREEBSD_PROCSTAT_PSSTRINGS): Define.
|
||
(NT_FREEBSD_PROCSTAT_AUXV): Define.
|
||
|
||
2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
|
||
Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
|
||
|
||
* elf/arc-reloc.def (ARC_32, ARC_GOTPC, ARC_TLS_GD_GOT)
|
||
(ARC_TLS_IE_GOT, ARC_TLS_DTPOFF, ARC_TLS_DTPOFF_S9, ARC_TLS_LE_S9)
|
||
(ARC_TLS_LE_32): Fixed formula.
|
||
(ARC_TLS_GD_LD): Use new special function.
|
||
* opcode/arc-func.h: Changed all the replacement
|
||
functions to clear the patching bits before doing an or it with the value
|
||
argument.
|
||
|
||
2016-01-18 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR ld/19440
|
||
* coff/internal.h (internal_syment): Use int to hold section
|
||
number.
|
||
(N_UNDEF): Cast to int not short.
|
||
(N_ABS): Likewise.
|
||
(N_DEBUG): Likewise.
|
||
(N_TV): Likewise.
|
||
(P_TV): Likewise.
|
||
|
||
2016-01-11 Nick Clifton <nickc@redhat.com>
|
||
|
||
Import this change from GCC mainline:
|
||
|
||
2016-01-07 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* longlong.h: Change !__SHMEDIA__ to
|
||
(!defined (__SHMEDIA__) || !__SHMEDIA__).
|
||
Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
|
||
|
||
2016-01-06 Maciej W. Rozycki <macro@imgtec.com>
|
||
|
||
* opcode/mips.h: Add a summary of MIPS16 operand codes.
|
||
|
||
2016-01-05 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* libiberty.h (dupargv): Change arg to char * const *.
|
||
(writeargv, countargv): Likewise.
|
||
|
||
2016-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-0415, aout/ChangeLog-9115,
|
||
cgen/ChangeLog-0915, coff/ChangeLog-0415, elf/ChangeLog-0415,
|
||
mach-o/ChangeLog-1115, nlm/ChangeLog-9315, opcode/ChangeLog-0415,
|
||
som/ChangeLog-1015, and vms/ChangeLog-1015
|
||
|
||
Copyright (C) 2016 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:
|