2016-12-30 18:39:47 +08:00
|
|
|
|
2016-12-31 Dimitar Dimitrov <dimitar@dinux.eu>
|
|
|
|
|
|
|
|
|
|
* readelf.c (guess_is_rela): Add EM_TI_PRU.
|
|
|
|
|
(dump_relocations): Invoke elf_pru_reloc_type.
|
|
|
|
|
(get_machine_name): Handle EM_TI_PRU.
|
|
|
|
|
(is_32bit_abs_reloc): Handle R_PRU_BFD_RELOC_32.
|
|
|
|
|
(is_16bit_abs_reloc): Handle R_PRU_BFD_RELOC_16.
|
|
|
|
|
(is_none_reloc): Handle PRU_NONE and PRU_DIFF variants.
|
|
|
|
|
|
MIPS16: Add ASMACRO instruction support
Add ASMACRO instruction support as per the MIPS16e ASE architecture
specifications [1][2], completing MIPS16e instruction set support.
[1] "MIPS32 Architecture for Programmers, Volume IV-a: The MIPS16e
Application-Specific Extension to the MIPS32 Architecture", MIPS
Technologies, Inc., Document Number: MD00076, Revision 2.63, July
16, 2013, Section 4.1 "MIPS16e Instruction Descriptions", p. 65
[2] "MIPS64 Architecture for Programmers, Volume IV-a: The MIPS16e
Application-Specific Extension to the MIPS64 Architecture", MIPS
Technologies, Inc., Document Number: MD00077, Revision 2.60, June
25, 2008, Section 1.1 "MIPS16e Instruction Descriptions", p. 66
include/
* opcode/mips.h: Document `0', `1', `2', `3', `4' and `s'
operand codes.
opcodes/
* mips16-opc.c (decode_mips16_operand): Add `0', `1', `2', `3',
`4' and `s' operand codes.
(mips16_opcodes): Add "asmacro" entry.
binutils/
* testsuite/binutils-all/mips/mips16-extend-insn.d: Update for
ASMACRO support.
gas/
* testsuite/gas/mips/mips16-asmacro.d: New test.
* testsuite/gas/mips/mips16-32@mips16-asmacro.d: New test.
* testsuite/gas/mips/mips16-64@mips16-asmacro.d: New test.
* testsuite/gas/mips/mips16-asmacro.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
2016-12-24 03:40:51 +08:00
|
|
|
|
2016-12-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-extend-insn.d: Update for
|
|
|
|
|
ASMACRO support.
|
|
|
|
|
|
MIPS16: Handle non-extensible instructions correctly
Identify non-extensible instructions in the MIPS16 opcode table and
disallow their use with the `.e' instruction size suffix in assembly and
do not interpret any EXTEND prefix present as a part of the instruction
in disassembly.
According to all versions of the MIPS16 ASE specifications the following
instructions encodings are not extensible [1][2][3][4][5][6]: I8/MOV32R,
I8/MOVR32, all RRR minor opcodes, all RR minor opcodes except from DSRA
and DSRL, and EXTEND itself, and as from revision 2.50 of the MIPS16e
ASE specifications it has been further clarified what was previously
implied, that non-extesiable instructions when preceded with an EXTEND
prefix must cause a Reserved Instruction exception [3][5].
Therefore in the presence of an EXTEND prefix none of these instructions
are supposed to be handled as extended instructions and supporting these
forms in disassembly causes confusion, and in the case of the RRR major
opcode it also clashes with the ASMACRO encoding.
References:
[1] "Product Description, MIPS16 Application-Specific Extension",
Version 1.3, MIPS Technologies, Inc., 970130, Table 3. "MIPS16
Instruction Set Summary", p. 5
[2] same, Table 5 "RR Minor Opcodes (RR-type instructions)", p.10
[3] "MIPS32 Architecture for Programmers, Volume IV-a: The MIPS16e
Application-Specific Extension to the MIPS32 Architecture", MIPS
Technologies, Inc., Document Number: MD00076, Revision 2.63, July
16, 2013, Section 3.9 "MIPS16e Instruction Summaries", pp. 37-39
[4] same, Section 3.15 "Instruction Bit Encoding", pp. 46-49
[5] "MIPS64 Architecture for Programmers, Volume IV-a: The MIPS16e
Application-Specific Extension to the MIPS64 Architecture", MIPS
Technologies, Inc., Document Number: MD00077, Revision 2.60, June
25, 2008, Section 1.9 "MIPS16e Instruction Summaries", pp. 38-41
[6] same, Section 1.15 "Instruction Bit Encoding", pp. 48-51
include/
* opcode/mips.h (INSN2_SHORT_ONLY): New macro.
gas/
* config/tc-mips.c (is_size_valid_16): Disallow a `.e' suffix
instruction size override for INSN2_SHORT_ONLY opcode table
entries.
* testsuite/gas/mips/mips16-extend-swap.d: Adjust output.
* testsuite/gas/mips/mips16-macro-e.l: Adjust error messages.
* testsuite/gas/mips/mips16-32@mips16-macro-e.l: Adjust error
messages.
* testsuite/gas/mips/mips16e-32@mips16-macro-e.l: Adjust error
messages.
* testsuite/gas/mips/mips16-insn-e.d: New test.
* testsuite/gas/mips/mips16-insn-t.d: New test.
* testsuite/gas/mips/mips16-32@mips16-insn-e.d: New test.
* testsuite/gas/mips/mips16-64@mips16-insn-e.d: New test.
* testsuite/gas/mips/mips16e-32@mips16-insn-e.d: New test.
* testsuite/gas/mips/mips16-32@mips16-insn-t.d: New test.
* testsuite/gas/mips/mips16-64@mips16-insn-t.d: New test.
* testsuite/gas/mips/mips16e-32@mips16-insn-t.d: New test.
* testsuite/gas/mips/mips16-insn-e.l: New stderr output.
* testsuite/gas/mips/mips16-insn-t.l: New stderr output.
* testsuite/gas/mips/mips16-32@mips16-insn-e.l: New stderr
output.
* testsuite/gas/mips/mips16-64@mips16-insn-e.l: New stderr
output.
* testsuite/gas/mips/mips16e-32@mips16-insn-e.l: New stderr
output.
* testsuite/gas/mips/mips16-32@mips16-insn-t.l: New stderr
output.
* testsuite/gas/mips/mips16-64@mips16-insn-t.l: New stderr
output.
* testsuite/gas/mips/mips16e-32@mips16-insn-t.l: New stderr
output.
* testsuite/gas/mips/mips16-insn-e.s: New test source.
* testsuite/gas/mips/mips16-insn-t.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
opcodes/
* mips-dis.c (print_insn_mips16): Disallow EXTEND prefix
matching for INSN2_SHORT_ONLY opcode table entries.
* mips16-opc.c (SH): New macro.
(mips16_opcodes): Set SH in `pinfo2' for non-extensible
instruction entries: "nop", "addu", "and", "break", "cmp",
"daddu", "ddiv", "ddivu", "div", "divu", "dmult", "dmultu",
"drem", "dremu", "dsllv", "dsll", "dsrav", "dsra", "dsrlv",
"dsrl", "dsubu", "exit", "entry", "jalr", "jal", "jr", "j",
"jalrc", "jrc", "mfhi", "mflo", "move", "mult", "multu", "neg",
"not", "or", "rem", "remu", "sllv", "sll", "slt", "sltu",
"srav", "sra", "srlv", "srl", "subu", "xor", "sdbbp", "seb",
"seh", "sew", "zeb", "zeh", "zew" and "extend".
binutils/
* testsuite/binutils-all/mips/mips16-extend-insn.d: New test.
* testsuite/binutils-all/mips/mips16-extend-insn.s: New test
source.
* testsuite/binutils-all/mips/mips.exp: Run the new tests.
2016-12-24 00:49:42 +08:00
|
|
|
|
2016-12-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-extend-insn.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-extend-insn.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips.exp: Run the new tests.
|
|
|
|
|
|
2016-12-23 16:50:53 +08:00
|
|
|
|
2016-12-23 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-12-23 16:43:13 +08:00
|
|
|
|
2016-12-23 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Add marker for 2.28.
|
|
|
|
|
|
2016-12-23 16:32:28 +08:00
|
|
|
|
2016-12-23 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* po/binutils.pot: Regenerate.
|
|
|
|
|
|
2016-12-20 19:38:53 +08:00
|
|
|
|
2016-12-20 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-undecoded.s: Use `.module'
|
|
|
|
|
rather than `.set' to set the ISA level.
|
|
|
|
|
|
2016-12-20 10:03:40 +08:00
|
|
|
|
2016-12-20 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-extend-noinsn.d: Adjust
|
|
|
|
|
test for separate EXTEND prefix disassembly.
|
|
|
|
|
|
Re-work RISC-V gas flags: now we just support -mabi and -march
We've decided to standardize on two flags for RISC-V: "-march" sets the
target architecture (which determines which instructions can be
generated), and "-mabi" sets the target ABI. We needed to rework this
because the old flag set didn't support soft-float or single-float ABIs,
and didn't support an x32-style ABI on RISC-V.
Additionally, we've changed the behavior of the -march flag: it's now a
lot stricter and only parses things we can actually understand.
Additionally, it's now lowercase-only: the rationale is that while the
RISC-V ISA manual specifies that ISA strings are case-insensitive, in
Linux-land things are usually case-sensitive. Since this flag can be
used to determine library paths, we didn't want to bake some
case-insensitivity in there that would case trouble later.
This patch implements these two new flags and removes the old flags that
could conflict with these. There wasn't a RISC-V release before, so we
want to just support a clean flag set.
include/
* elf/riscv.h (EF_RISCV_SOFT_FLOAT): Don't define.
(EF_RISCV_FLOAT_ABI, EF_RISCV_FLOAT_ABI_SOFT): Define.
(EF_RISCV_FLOAT_ABI_SINGLE, EF_RISCV_FLOAT_ABI_DOUBLE): Define.
(EF_RISCV_FLOAT_ABI_QUAD): Define.
bfd/
* elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Use
EF_RISCV_FLOAT_ABI_SOFT instead of EF_RISCV_SOFT_FLOAT.
binutils/
* readelf.c (get_machine_flags): Use
EF_RISCV_FLOAT_ABI_{SOFT,SINGLE,DOBULE,QUAD) instead of
EF_RISCV_{SOFT,HARD}_FLOAT.
gas/
* config/tc-riscv.h (xlen): Delete.
* config/tc-riscv.c (xlen): Make static.
(abi_xlen): New variable.
(options): Replace OPTION_{M32,M64,MSOFT_FLOAT,MHARD_FLOAT,MRVC}
with OPTION_MABI.
(md_longopts): Likewise.
(md_parse_option): Likewise.
(riscv_elf_final_processing): Likewise.
* doc/as.texinfo (Target RISC-V options): Likewise.
* doc/c-riscv.texi (OPTIONS): Likewise.
* config/tc-riscv.c (float_mode): Removed.
(float_abi): New type, specifies the floating-point ABI.
(riscv_set_abi): New function.
(riscv_add_subset): Only allow lower-case ISA names and require
them to start with "rv".
(riscv_after_parse_args): Likewise.
opcodes/
* riscv-dis.c (riscv_disassemble_insn): Default to the ELF's
XLEN when none is provided.
2016-12-19 14:53:50 +08:00
|
|
|
|
2016-12-20 Andrew Waterman <andrew@sifive.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_machine_flags): Use
|
|
|
|
|
EF_RISCV_FLOAT_ABI_{SOFT,SINGLE,DOBULE,QUAD) instead of
|
|
|
|
|
EF_RISCV_{SOFT,HARD}_FLOAT.
|
|
|
|
|
|
2016-12-15 05:49:56 +08:00
|
|
|
|
2016-12-14 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips-ase-1.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips-ase-2.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips-ase-3.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips-ase-1.s: New test source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips-ase-2.s: New test source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips.exp: Run the new tests.
|
|
|
|
|
|
2016-12-13 20:52:59 +08:00
|
|
|
|
2016-12-13 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (is_32bit_abs_reloc): Recognize R_AARCH64_P32_ABS32.
|
|
|
|
|
|
2016-12-13 19:19:23 +08:00
|
|
|
|
2016-12-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS (Past Maintainers): New section. Move Mark
|
|
|
|
|
Mitchell's name here.
|
|
|
|
|
|
2016-12-10 06:27:00 +08:00
|
|
|
|
2016-12-09 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-extend-noinsn.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-extend-noinsn.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips.exp: Run the new test.
|
|
|
|
|
|
2016-12-09 07:29:01 +08:00
|
|
|
|
2016-12-08 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-pcrel.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-pcrel.s: New test source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips.exp: Run the new test.
|
|
|
|
|
|
2016-12-08 20:52:21 +08:00
|
|
|
|
2016-12-08 Étienne Buira <etienne.buira@gmail.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (process_program_headers): Always use hex prefix when
|
|
|
|
|
displaying the segment alignment.
|
|
|
|
|
|
2016-12-07 00:26:42 +08:00
|
|
|
|
2016-12-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/20930
|
|
|
|
|
* objcopy.c (mark_symbols_used_in_relocations): Check for a null
|
|
|
|
|
symbol pointer pointer before attempting to mark the symbol as
|
|
|
|
|
kept.
|
|
|
|
|
|
2016-12-05 23:57:53 +08:00
|
|
|
|
2016-12-05 Jose E. Marchesi <jose.marchesi@oracle.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS: Add myself as maintainer for the SPARC targets.
|
|
|
|
|
|
2016-12-05 21:11:01 +08:00
|
|
|
|
2016-12-05 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20923
|
|
|
|
|
* objcopy.c (mark_symbols_used_in_relocations): Check for a null
|
|
|
|
|
symbol pointer before attempting to mark the symbol as kept.
|
|
|
|
|
|
2016-12-01 22:42:11 +08:00
|
|
|
|
2016-12-01 Luis Machado <lgustavo@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* nm.c (sort_symbols_by_size): Don't read symbol size if symbol
|
|
|
|
|
is synthetic.
|
|
|
|
|
|
2016-11-30 19:06:42 +08:00
|
|
|
|
2016-11-30 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20815
|
|
|
|
|
* readelf.c (process_program_headers): Do not warn about out of
|
|
|
|
|
order PT_LOAD segments.
|
|
|
|
|
|
2016-10-06 18:05:27 +08:00
|
|
|
|
2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/arc/objdump.exp (Warning test): Update
|
|
|
|
|
test.
|
|
|
|
|
|
2016-11-26 04:01:40 +08:00
|
|
|
|
2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
|
|
|
|
|
|
|
|
|
|
* dwarf.c: Fix spelling in comments.
|
|
|
|
|
* dwarf.h: Fix spelling in comments.
|
|
|
|
|
* objcopy.c: Fix spelling in comments.
|
|
|
|
|
* od-macho.c: Fix spelling in comments.
|
|
|
|
|
* rclex.c: Fix spelling in comments.
|
|
|
|
|
* readelf.c: Fix spelling in comments.
|
|
|
|
|
* stabs.c: Fix spelling in comments.
|
|
|
|
|
|
2016-11-23 19:10:39 +08:00
|
|
|
|
2016-11-23 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20815
|
|
|
|
|
* readelf.c (process_program_headers): Check PT_LOAD and PT_PHDR
|
|
|
|
|
segments for validity.
|
|
|
|
|
|
2016-11-22 23:43:03 +08:00
|
|
|
|
2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
PR20744, Incorrect PowerPC VLE relocs
VLE 16A and 16D relocs were functionally swapped.
PR 20744
include/
* opcode/ppc.h: Define VLE insns using 16A and 16D relocs.
bfd/
* elf32-ppc.h (struct ppc_elf_params): Add vle_reloc_fixup field.
* elf32-ppc.c: Include opcode/ppc.h.
(ppc_elf_howto_raw): Correct dst_mask for R_PPC_VLE_LO16A,
R_PPC_VLE_LO16D, R_PPC_VLE_HI16A, R_PPC_VLE_HI16D, R_PPC_VLE_HA16A,
R_PPC_VLE_HA16D, R_PPC_VLE_SDAREL_LO16A, R_PPC_VLE_SDAREL_LO16D,
R_PPC_VLE_SDAREL_HI16A, R_PPC_VLE_SDAREL_HI16D,
R_PPC_VLE_SDAREL_HA16A, and R_PPC_VLE_SDAREL_HA16D relocs.
(ppc_elf_link_hash_table_create): Update default_params init.
(ppc_elf_vle_split16): Correct shift and mask. Add params.
Report or fix insn/reloc mismatches.
(ppc_elf_relocate_section): Pass input_section, offset and fixup
to ppc_elf_vle_split16.
binutils/
* NEWS: Mention PowerPC VLE relocation error.
gas/
* config/tc-ppc.c: Delete VLE insn defines.
(md_assemble): Swap use_a_reloc and use_d_reloc.
* testsuite/gas/ppc/vle-reloc.d: Update.
ld/
* emultempl/ppc32elf.em (params): Update initializer. Handle
--vle-reloc-fixup command line arg.
2016-11-22 16:15:29 +08:00
|
|
|
|
2016-11-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 20744
|
|
|
|
|
* NEWS: Mention PowerPC VLE relocation error.
|
|
|
|
|
|
2016-11-17 08:28:09 +08:00
|
|
|
|
2016-11-16 Mark Wielaard <mark@klomp.org>
|
|
|
|
|
|
|
|
|
|
* cxxfilt.c (main): Recognize rust_demangling.
|
|
|
|
|
|
2016-11-15 00:30:45 +08:00
|
|
|
|
2016-11-14 Rudy <jacky.chouchou@yandex.ru>
|
|
|
|
|
|
|
|
|
|
PR binutils/20814
|
|
|
|
|
* dlltool.c (struct export): Remove hint field.
|
|
|
|
|
(make_one_lib_file): Store the ordinal value for IDATA6 not the
|
|
|
|
|
hint.
|
|
|
|
|
(gen_lib_file): Delete reference to hint field.
|
|
|
|
|
(mangle_defs): Delete computation of hint field.
|
|
|
|
|
|
2016-11-11 19:49:45 +08:00
|
|
|
|
2016-11-11 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/20751
|
|
|
|
|
* nm.c (with_symbol_versions): New local variable.
|
|
|
|
|
(long_options): Add --with-symbol-versions.
|
|
|
|
|
(usage): Mention --with-symbol-versions.
|
|
|
|
|
(print_symbol): If with_symbol_versions is set then display the
|
|
|
|
|
version information associated with the symbol.
|
|
|
|
|
* NEWS: Mention the new feature.
|
|
|
|
|
* doc/binutils.texi (nm): Document the new option.
|
|
|
|
|
(objdump): Describe how symbol version information is displayed
|
|
|
|
|
for dynamic symbol dumps.
|
|
|
|
|
(readelf): Describe how symbol version information is displayed.
|
|
|
|
|
* testsuite/binutils-all/nm.exp: Add a test of the new feature.
|
|
|
|
|
|
2016-11-08 23:03:46 +08:00
|
|
|
|
2016-11-08 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/20794
|
|
|
|
|
* readelf.c (process_section_headers): Fix off-by-one error when
|
|
|
|
|
checking for invalid sh_link and sh_info fields.
|
|
|
|
|
|
2016-08-11 23:04:59 +08:00
|
|
|
|
2016-11-04 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* objcopy.c (copy_section): Add extra calls to free for error
|
|
|
|
|
paths.
|
|
|
|
|
|
2016-08-22 11:47:14 +08:00
|
|
|
|
2016-11-04 Tom Tromey <tom@tromey.com>
|
|
|
|
|
|
|
|
|
|
* dwarf-mode.el (dwarf-browse): Set default-directory. Bump
|
|
|
|
|
version number.
|
|
|
|
|
|
2016-11-05 00:08:31 +08:00
|
|
|
|
2016-11-04 Palmer Dabbelt <palmer@dabbelt.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS: Add myself and Andrew Waterman as maintainers for
|
|
|
|
|
the RISC-V target.
|
|
|
|
|
|
2016-11-02 00:45:57 +08:00
|
|
|
|
2016-11-01 Palmer Dabbelt <palmer@dabbelt.com>
|
|
|
|
|
Andrew Waterman <andrew@sifive.com>
|
|
|
|
|
|
|
|
|
|
Add support for RISC-V architecture.
|
|
|
|
|
* readelf.c (guess_is_rela): Add EM_RISCV.
|
|
|
|
|
(get_machine_name): Likewise.
|
|
|
|
|
(dump_relocations): Add support for riscv relocations.
|
|
|
|
|
(get_machine_flags): Add support for riscv flags.
|
|
|
|
|
(is_32bit_abs_reloc): Add R_RISCV_32.
|
|
|
|
|
(is_64bit_abs_reloc): Add R_RISCV_64.
|
|
|
|
|
(is_none_reloc): Add R_RISCV_NONE.
|
|
|
|
|
* testsuite/binutils-all/objdump.exp (cpus_expected): Add riscv.
|
|
|
|
|
Expect the debug_ranges test to fail.
|
|
|
|
|
|
2016-10-17 22:29:43 +08:00
|
|
|
|
2016-10-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (apply_relocations): Fail if the symbol table section
|
|
|
|
|
linked to by the reloc section does not have either the SHT_SYMTAB
|
|
|
|
|
or SHT_DYNSYM type.
|
|
|
|
|
(print_gnu_note): Decode the contents of NT_GNU_HWCAP notes.
|
|
|
|
|
Print the contents of unknown note types.
|
|
|
|
|
(process_note): Add the file and section to the parameter list.
|
|
|
|
|
Use print_symbol to display the note name.
|
|
|
|
|
Display the contents of unknown note types.
|
|
|
|
|
(process_corefile_note_segment): Rename to process_notes_at.
|
|
|
|
|
Add section parameter. Apply relocations to the notes when
|
|
|
|
|
loading from a section. Display section name when processing
|
|
|
|
|
notes in a section.
|
|
|
|
|
* testsuite/binutils-all/readelf.n: Update expected output.
|
|
|
|
|
|
Update list of ELF machine numbers.
include * elf/common.h (DT_SYMTAB_SHNDX): Define.
(EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_OPEN8): Define.
(EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2, EM_XCORE): Define.
(EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8): Define.
(EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC): Define.
(EM_CSR_KALIMBA, EM_Z80, EM_AMDGPU, EM_RISCV): Define.
(ELFOSABI_OPENVOS): Define.
(GRP_MASKOS, GRP_MASKPROC): Define.
binutils * readelf.c (get_dynamic_type): Add DT_SYMTAB_SHNDX.
(get_machine_type): Add EM_CLOUDSHIELD, EM_COREA_1ST,
EM_COREA_2ND, EM_OPEN8, EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2,
EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8,
EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA,
EM_Z80, EM_AMDGPU, EM_RISCV.
(get_osabi_name): Add ELFOSABI_CLOUDABI and ELFOSABI_OPENVS.
(get_group_flags): Update to handle flags in the
GRP_MASKOS and GRP_MASKPROC ranges.
2016-10-17 18:46:32 +08:00
|
|
|
|
2016-10-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_dynamic_type): Add DT_SYMTAB_SHNDX.
|
|
|
|
|
(get_machine_type): Add EM_CLOUDSHIELD, EM_COREA_1ST,
|
|
|
|
|
EM_COREA_2ND, EM_OPEN8, EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2,
|
|
|
|
|
EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8,
|
|
|
|
|
EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA,
|
|
|
|
|
EM_Z80, EM_AMDGPU, EM_RISCV.
|
|
|
|
|
(get_osabi_name): Add ELFOSABI_CLOUDABI and ELFOSABI_OPENVS.
|
|
|
|
|
(get_group_flags): Update to handle flags in the
|
|
|
|
|
GRP_MASKOS and GRP_MASKPROC ranges.
|
|
|
|
|
|
2016-10-14 22:04:46 +08:00
|
|
|
|
2016-10-14 Luis Machado <lgustavo@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/utils-lib.exp (run_dump_test): Call remote_download
|
|
|
|
|
to copy file to remote host.
|
|
|
|
|
|
Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT.
binutils * objdump.c (is_significant_symbol_name): New function.
(remove_useless_symbols): Do not remove significanr symbols.
(find_symbol_for_address): If an exact match for the specified
address has not been found, try scanning the dynamic relocs to see
if one of these matches the address. If so, use the symbol
associated with the reloc.
(objdump_print_addr_with_symbol): Do not print offsets to symbols
with no value.
(disassemble_section): Only use dynamic relocs if the user
requested this.
(disassemble_data): Always load dynamic relocs if they are
available.
ld * ld-aarch64/emit-relocs-515-be.d: Adjust output to match change
in objdump.
* ld-aarch64/emit-relocs-515.d: Likewise.
* ld-aarch64/emit-relocs-516-be.d: Likewise.
* ld-aarch64/emit-relocs-516.d: Likewise.
* ld-aarch64/farcall-b-plt.d: Likewise.
* ld-aarch64/farcall-bl-plt.d: Likewise.
* ld-aarch64/gc-plt-relocs.d: Likewise.
* ld-aarch64/tls-desc-ie.d: Likewise.
* ld-aarch64/tls-tiny-desc.d: Likewise.
* ld-aarch64/tls-tiny-gd.d: Likewise.
* ld-aarch64/tls-tiny-ie.d: Likewise.
* ld-arm/arm-app-abs32.d: Likewise.
* ld-arm/arm-app.d: Likewise.
* ld-arm/arm-lib-plt32.d: Likewise.
* ld-arm/arm-lib.d: Likewise.
* ld-arm/armthumb-lib.d: Likewise.
* ld-arm/cortex-a8-fix-b-plt.d: Likewise.
* ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
* ld-arm/cortex-a8-fix-bl-plt.d: Likewise.
* ld-arm/cortex-a8-fix-bl-rel-plt.d: Likewise.
* ld-arm/cortex-a8-fix-blx-plt.d: Likewise.
* ld-arm/farcall-mixed-app-v5.d: Likewise.
* ld-arm/farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-app2.d: Likewise.
* ld-arm/farcall-mixed-lib-v4t.d: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
* ld-arm/ifunc-10.dd: Likewise.
* ld-arm/ifunc-14.dd: Likewise.
* ld-arm/ifunc-15.dd: Likewise.
* ld-arm/ifunc-3.dd: Likewise.
* ld-arm/ifunc-4.dd: Likewise.
* ld-arm/ifunc-9.dd: Likewise.
* ld-arm/long-plt-format.d: Likewise.
* ld-arm/mixed-app-v5.d: Likewise.
* ld-arm/mixed-app.d: Likewise.
* ld-arm/mixed-lib.d: Likewise.
* ld-arm/tls-lib-loc.d: Likewise.
* ld-cris/dso-pltdis1.d: Likewise.
* ld-cris/dso-pltdis2.d: Likewise.
* ld-cris/dso12-pltdis.d: Likewise.
* ld-elf/symbolic-func.r: Likewise.
* ld-frv/fdpic-pie-1.d: Likewise.
* ld-frv/fdpic-pie-2.d: Likewise.
* ld-frv/fdpic-pie-6.d: Likewise.
* ld-frv/fdpic-pie-7.d: Likewise.
* ld-frv/fdpic-pie-8.d: Likewise.
* ld-frv/fdpic-shared-1.d: Likewise.
* ld-frv/fdpic-shared-2.d: Likewise.
* ld-frv/fdpic-shared-3.d: Likewise.
* ld-frv/fdpic-shared-4.d: Likewise.
* ld-frv/fdpic-shared-5.d: Likewise.
* ld-frv/fdpic-shared-6.d: Likewise.
* ld-frv/fdpic-shared-7.d: Likewise.
* ld-frv/fdpic-shared-8.d: Likewise.
* ld-frv/fdpic-shared-local-2.d: Likewise.
* ld-frv/fdpic-shared-local-8.d: Likewise.
* ld-frv/fdpic-static-1.d: Likewise.
* ld-frv/fdpic-static-2.d: Likewise.
* ld-frv/fdpic-static-6.d: Likewise.
* ld-frv/fdpic-static-7.d: Likewise.
* ld-frv/fdpic-static-8.d: Likewise.
* ld-frv/tls-dynamic-2.d: Likewise.
* ld-frv/tls-initial-shared-2.d: Likewise.
* ld-frv/tls-relax-shared-2.d: Likewise.
* ld-frv/tls-shared-2.d: Likewise.
* ld-i386/plt-nacl.pd: Likewise.
* ld-i386/plt-pic-nacl.pd: Likewise.
* ld-i386/plt-pic.pd: Likewise.
* ld-i386/plt.pd: Likewise.
* ld-i386/pr19636-1d-nacl.d: Likewise.
* ld-i386/pr19636-1d.d: Likewise.
* ld-i386/pr19636-2c-nacl.d: Likewise.
* ld-i386/pr19636-2c.d: Likewise.
* ld-ifunc/ifunc-21-x86-64.d: Likewise.
* ld-ifunc/ifunc-22-x86-64.d: Likewise.
* ld-ifunc/pr17154-i386.d: Likewise.
* ld-ifunc/pr17154-x86-64.d: Likewise.
* ld-m68k/plt1-68020.d: Likewise.
* ld-m68k/plt1-cpu32.d: Likewise.
* ld-m68k/plt1-isab.d: Likewise.
* ld-m68k/plt1-isac.d: Likewise.
* ld-metag/shared.d: Likewise.
* ld-metag/stub_pic_app.d: Likewise.
* ld-metag/stub_pic_shared.d: Likewise.
* ld-metag/stub_shared.d: Likewise.
* ld-s390/tlsbin_64.dd: Likewise.
* ld-s390/tlspic_64.dd: Likewise.
* ld-tic6x/shlib-1.dd: Likewise.
* ld-tic6x/shlib-1b.dd: Likewise.
* ld-tic6x/shlib-1rb.dd: Likewise.
* ld-tic6x/shlib-app-1.dd: Likewise.
* ld-tic6x/shlib-app-1b.dd: Likewise.
* ld-tic6x/shlib-app-1r.dd: Likewise.
* ld-tic6x/shlib-app-1rb.dd: Likewise.
* ld-tic6x/shlib-noindex.dd: Likewise.
* ld-vax-elf/export-class-data.dd: Likewise.
* ld-vax-elf/plt-local-lib.dd: Likewise.
* ld-vax-elf/plt-local.dd: Likewise.
* ld-x86-64/bnd-ifunc-2.d: Likewise.
* ld-x86-64/bnd-plt-1.d: Likewise.
* ld-x86-64/gotpcrel1.dd: Likewise.
* ld-x86-64/libno-plt-1b.dd: Likewise.
* ld-x86-64/load1c-nacl.d: Likewise.
* ld-x86-64/load1c.d: Likewise.
* ld-x86-64/load1d-nacl.d: Likewise.
* ld-x86-64/load1d.d: Likewise.
* ld-x86-64/mov1a.d: Likewise.
* ld-x86-64/mov1b.d: Likewise.
* ld-x86-64/mov1c.d: Likewise.
* ld-x86-64/mov1d.d: Likewise.
* ld-x86-64/mov2a.d: Likewise.
* ld-x86-64/mov2b.d: Likewise.
* ld-x86-64/mov2c.d: Likewise.
* ld-x86-64/mov2d.d: Likewise.
* ld-x86-64/mpx3.dd: Likewise.
* ld-x86-64/mpx4.dd: Likewise.
* ld-x86-64/no-plt-1a.dd: Likewise.
* ld-x86-64/no-plt-1b.dd: Likewise.
* ld-x86-64/no-plt-1c.dd: Likewise.
* ld-x86-64/no-plt-1e.dd: Likewise.
* ld-x86-64/no-plt-1f.dd: Likewise.
* ld-x86-64/no-plt-1g.dd: Likewise.
* ld-x86-64/plt-main-bnd.dd: Likewise.
* ld-x86-64/plt-nacl.pd: Likewise.
* ld-x86-64/plt.pd: Likewise.
* ld-x86-64/pr18591.d: Likewise.
* ld-x86-64/pr19609-1c.d: Likewise.
* ld-x86-64/pr19609-1e.d: Likewise.
* ld-x86-64/pr19609-1j.d: Likewise.
* ld-x86-64/pr19609-1l.d: Likewise.
* ld-x86-64/pr19609-1m.d: Likewise.
* ld-x86-64/pr19609-5b.d: Likewise.
* ld-x86-64/pr19609-5c.d: Likewise.
* ld-x86-64/pr19609-5e.d: Likewise.
* ld-x86-64/pr19609-6b.d: Likewise.
* ld-x86-64/pr19609-7b.d: Likewise.
* ld-x86-64/pr19609-7d.d: Likewise.
* ld-x86-64/pr19636-2d.d: Likewise.
* ld-x86-64/pr20093-1.d: Likewise.
* ld-x86-64/pr20093-2.d: Likewise.
* ld-x86-64/pr20253-1b.d: Likewise.
* ld-x86-64/pr20253-1d.d: Likewise.
* ld-x86-64/pr20253-1f.d: Likewise.
* ld-x86-64/pr20253-1h.d: Likewise.
* ld-x86-64/pr20253-1j.d: Likewise.
* ld-x86-64/pr20253-1l.d: Likewise.
* ld-x86-64/protected3.d: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsbin2.dd: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlsdesc-nacl.pd: Likewise.
* ld-x86-64/tlsdesc.dd: Likewise.
* ld-x86-64/tlsdesc.pd: Likewise.
* ld-x86-64/tlsgd10.dd: Likewise.
* ld-x86-64/tlsgd5.dd: Likewise.
* ld-x86-64/tlsgd6.dd: Likewise.
* ld-x86-64/tlsgd8.dd: Likewise.
* ld-x86-64/tlsgdesc.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
* ld-x86-64/tlspic2.dd: Likewise.
2016-10-11 Nick Clifton <nickc@redhat.com>
PR ld/20535
* emultempl/elf32.em (_search_needed): Add support for pseudo
environment variables supported by ld.so. Namely $ORIGIN, $LIB
and $PLATFORM.
* configure.ac: Add getauxval to list AC_CHECK_FUNCS list.
* config.in: Regenerate.
* configure: Regenerate.
2016-10-11 Alan Modra <amodra@gmail.com>
* ldlang.c (lang_do_assignments_1): Descend into output section
statements that do not yet have bfd sections. Set symbol section
temporarily for symbols defined in such statements to the undefined
section. Don't error on data or reloc statements until final phase.
* ldexp.c (exp_fold_tree_1 <etree_assign>): Handle bfd_und_section
in expld.section.
* testsuite/ld-mmix/bpo-10.d: Adjust.
* testsuite/ld-mmix/bpo-11.d: Adjust.
2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* emulparams/elf64_s390.sh: Move binary start to 16M.
* testsuite/ld-s390/tlsbin_64.dd: Adjust testcases accordingly.
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
2016-10-07 Alan Modra <amodra@gmail.com>
* ldexp.c (MAX): Define.
(exp_unop, exp_binop, exp_trinop): Alloc at least enough for
etree_type.value.
2016-10-07 Alan Modra <amodra@gmail.com>
* testsuite/lib/ld-lib.exp (is_generic_elf): New, extracted from..
* testsuite/ld-elf/elf.exp: ..here.
2016-10-06 Ludovic Court?s <ludo@gnu.org>
* emulparams/elf32bmipn32-defs.sh: Shift quote of
"x$EMULATION_NAME" to the left to work around
<http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-007>.
2016-10-06 Alan Modra <amodra@gmail.com>
* lexsup.c: Spell fall through comments consistently and add
missing fall through comments.
2016-10-06 Alan Modra <amodra@gmail.com>
* plugin.c (asymbol_from_plugin_symbol): Avoid compiler warning
by adding return.
2016-10-04 Alan Modra <amodra@gmail.com>
* ld.texinfo (Expression Section): Update result of arithmetic
expressions.
* ldexp.c (arith_result_section): New function.
(fold_binary): Use it.
2016-10-04 Alan Modra <amodra@gmail.com>
* ldexp.c (exp_value_fold): New function.
(exp_unop, exp_binop, exp_trinop): Use it.
2016-09-30 Alan Modra <amodra@gmail.com>
* scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when
not relocating.
* scripttempl/v850_rh850.sc: Likewise.
2016-09-30 Alan Modra <amodra@gmail.com>
PR ld/20528
* testsuite/ld-elf/pr20528a.d: xfail generic elf targets. Allow
multiple .text sections for hppa-linux.
* testsuite/ld-elf/pr20528b.d: Likewise.
2016-09-30 Alan Modra <amodra@gmail.com>
* ldmain.c (default_bfd_error_handler): New function pointer.
(ld_bfd_error_handler): New function.
(main): Arrange to call it on bfd errors/warnings.
(ld_bfd_assert_handler): Enable tail call.
2016-09-30 Alan Modra <amodra@gmail.com>
* ldlang.c (ignore_bfd_errors): Update params.
2016-09-29 H.J. Lu <hongjiu.lu@intel.com>
PR ld/20528
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
merge 2 sections with different SHF_EXCLUDE.
* testsuite/ld-elf/pr20528a.d: New file.
* testsuite/ld-elf/pr20528a.s: Likewise.
* testsuite/ld-elf/pr20528b.d: Likewise.
* testsuite/ld-elf/pr20528b.s: Likewise.
2016-09-28 Christophe Lyon <christophe.lyon@linaro.org>
PR ld/20608
* testsuite/ld-arm/arm-elf.exp: Handle new testcase.
* testsuite/ld-arm/farcall-mixed-app2.d: New file.
* testsuite/ld-arm/farcall-mixed-app2.r: Likewise.
* testsuite/ld-arm/farcall-mixed-app2.s: Likewise.
* testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
* Makefile.in: Regenerate.
* configure: Likewise.
2016-09-26 Alan Modra <amodra@gmail.com>
* testsuite/ld-powerpc/attr-gnu-4-4.s: Delete.
* testsuite/ld-powerpc/attr-gnu-4-14.d: Delete.
* testsuite/ld-powerpc/attr-gnu-4-24.d: Delete.
* testsuite/ld-powerpc/attr-gnu-4-34.d: Delete.
* testsuite/ld-powerpc/attr-gnu-4-41.d: Delete.
* testsuite/ld-powerpc/attr-gnu-4-32.d: Adjust expected warning.
* testsuite/ld-powerpc/attr-gnu-8-23.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-01.d: Adjust expected output.
* testsuite/ld-powerpc/attr-gnu-4-02.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-03.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-10.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-11.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-20.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-22.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-33.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-8-11.d: Likewise.
* testsuite/ld-powerpc/powerpc.exp: Don't run deleted tests.
2016-09-23 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
PR ld/20595
* testsuite/ld-arm/unwind-4.d: Add -q option to linker command
line and -r option to objdump command line. Match emitted relocs
to make sure that superflous relocs are not generated.
2016-09-23 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* emulparams/elf64_s390.sh: Change TEXT_START_ADDR to 256MB.
* testsuite/ld-s390/tlsbin_64.dd: Adjust testcase accordingly.
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
2016-09-22 Nick Clifton <nickc@redhat.com>
* emultempl/elf32.em (_try_needed): In verbose mode, report failed
attempts to find a needed library.
2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
* testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after ","
in addresses.
* testsuite/ld-aarch64/emit-relocs-301-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-301.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-302-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-302.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-310-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-310.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-313.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-531.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-532.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-533.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-534.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-535.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-536.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-537.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-538.d: Likewise.
* testsuite/ld-aarch64/erratum835769.d: Likewise.
* testsuite/ld-aarch64/erratum843419.d: Likewise.
* testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
* testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
* testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
* testsuite/ld-aarch64/ifunc-21.d: Likewise.
* testsuite/ld-aarch64/ifunc-7c.d: Likewise.
* testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
* testsuite/ld-aarch64/tls-large-desc.d: Likewise.
* testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
* testsuite/ld-aarch64/tls-large-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-all.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gd-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-large-desc-ie-be.d: Likewise.
* testsuite/ld-aarch64/tls-relax-large-desc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
gas * gas/arm/tls.d: Adjust output to match change in objdump.
2016-10-11 20:50:10 +08:00
|
|
|
|
2016-10-11 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* objdump.c (is_significant_symbol_name): New function.
|
|
|
|
|
(remove_useless_symbols): Do not remove significanr symbols.
|
|
|
|
|
(find_symbol_for_address): If an exact match for the specified
|
|
|
|
|
address has not been found, try scanning the dynamic relocs to see
|
|
|
|
|
if one of these matches the address. If so, use the symbol
|
|
|
|
|
associated with the reloc.
|
|
|
|
|
(objdump_print_addr_with_symbol): Do not print offsets to symbols
|
|
|
|
|
with no value.
|
|
|
|
|
(disassemble_section): Only use dynamic relocs if the user
|
|
|
|
|
requested this.
|
|
|
|
|
(disassemble_data): Always load dynamic relocs if they are
|
|
|
|
|
available.
|
|
|
|
|
|
2016-10-05 15:47:02 +08:00
|
|
|
|
2016-10-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* dlltool.c: Spell fall through comments consistently.
|
|
|
|
|
* objcopy.c: Likewise.
|
|
|
|
|
* readelf.c: Likewise.
|
|
|
|
|
* dwarf.c: Add missing fall through comments.
|
|
|
|
|
* elfcomm.c: Likewise.
|
|
|
|
|
* sysinfo.y: Likewise.
|
|
|
|
|
* readelf.c: Likewise. Also remove extraneous comments.
|
|
|
|
|
|
2016-10-05 14:14:07 +08:00
|
|
|
|
2016-10-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* cxxfilt.c (usage): Add ATTRIBUTE_NORETURN.
|
|
|
|
|
* elfedit.c (usage): Likewise.
|
|
|
|
|
* nm.c (usage): Likewise.
|
|
|
|
|
* objcopy.c (copy_usage, strip_usage): Likewise.
|
|
|
|
|
* srconv.c (show_usage): Likewise.
|
|
|
|
|
* strings.c (usage): Likewise.
|
|
|
|
|
* sysdump.c (show_usage): Likewise.
|
|
|
|
|
* srconv.c: Remove unneeded forward function declarations.
|
|
|
|
|
* strings.c: Likewise.
|
|
|
|
|
* sysdump.c: Likewise.
|
|
|
|
|
|
2016-10-05 14:22:24 +08:00
|
|
|
|
2016-10-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* coffdump.c (dump_coff_where): Add missing break.
|
|
|
|
|
* stabs.c (stab_xcoff_builtin_type): Likewise.
|
|
|
|
|
|
2016-09-29 13:40:39 +08:00
|
|
|
|
2016-09-29 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (process_arch_specific): Call process_power_specific
|
|
|
|
|
for EM_PPC64.
|
|
|
|
|
|
2016-09-26 23:36:08 +08:00
|
|
|
|
2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Replace AM_CLFAGS with AM_CFLAGS_FOR_BUILD
|
|
|
|
|
when building with CC_FOR_BUILD compiler.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
* doc/Makefile.in: Likewise.
|
|
|
|
|
|
2016-09-26 16:34:57 +08:00
|
|
|
|
2016-09-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (display_power_gnu_attribute): Catch truncated section
|
|
|
|
|
for all powerpc attributes. Display long double ABI. Don't
|
|
|
|
|
capitalize words, except for names. Show known bits of tag values
|
|
|
|
|
when some unknown bits are present. Whitespace fixes.
|
|
|
|
|
|
2016-09-26 16:25:08 +08:00
|
|
|
|
2016-09-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* nm.c (get_elf_symbol_type): Don't use sprintf with translated
|
|
|
|
|
strings, use asprintf instead.
|
|
|
|
|
(get_coff_symbol_type): Likewise.
|
|
|
|
|
|
2016-09-16 22:58:05 +08:00
|
|
|
|
2016-09-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* nm.c (print_symbol): Remove is_synthetic param. Test sym->flags
|
|
|
|
|
instead.
|
|
|
|
|
(print_size_symbols, print_symbols): Adjust to suit, deleting
|
|
|
|
|
now unused synth_count param and fromsynth var.
|
|
|
|
|
(display_rel_file): Adjust, localizing synth_count.
|
|
|
|
|
|
2016-09-15 17:42:08 +08:00
|
|
|
|
2016-09-14 Ed Maste <emaste@freebsd.org>
|
|
|
|
|
|
|
|
|
|
* readelf.c (process_mips_specific): Fix typo in error message.
|
|
|
|
|
|
2016-09-06 22:42:12 +08:00
|
|
|
|
2016-09-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (request_dump_bynumber): Only call memcpy if
|
|
|
|
|
dump_sects is not NULL.
|
|
|
|
|
|
2016-08-29 23:49:20 +08:00
|
|
|
|
2016-08-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (load_specific_debug_section): Check the external
|
|
|
|
|
compression header size.
|
|
|
|
|
|
2016-08-19 16:16:30 +08:00
|
|
|
|
2016-08-19 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/readelf.s: Adjust expected ordering of
|
|
|
|
|
sections.
|
|
|
|
|
* testsuite/binutils-all/readelf.s-64: Likewise.
|
|
|
|
|
|
2016-08-13 03:36:20 +08:00
|
|
|
|
2016-08-12 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (process_symbol_table): Generate a warning if a local
|
|
|
|
|
symbol is found at and offste greater than or equal to the sh_info
|
|
|
|
|
field of it's section header.
|
|
|
|
|
|
2016-08-08 16:34:32 +08:00
|
|
|
|
2016-08-08 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-08-08 20:20:04 +08:00
|
|
|
|
PR binutils/20440
|
|
|
|
|
* dwarf.c (display_debug_lines_decoded): Add checks for running
|
|
|
|
|
off the end of the section when populating the directory table and
|
|
|
|
|
file table.
|
|
|
|
|
(frame_display_row): Set max_regs equal to ncols.
|
2016-08-29 23:49:20 +08:00
|
|
|
|
* readelf.c (load_specific_debug_section): If the section is
|
|
|
|
|
compressed, but it is not big enough to hold a compression
|
|
|
|
|
header then warn and return 0.
|
2016-08-08 20:20:04 +08:00
|
|
|
|
|
2016-08-08 16:34:32 +08:00
|
|
|
|
PR binutils/20439
|
|
|
|
|
* dwarf.c (display_debug_lines_decoded): Check directory and file
|
|
|
|
|
indicies before using them to access directory and file tables.
|
|
|
|
|
|
2016-08-02 18:06:28 +08:00
|
|
|
|
2016-08-02 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/17512
|
|
|
|
|
* resbin.c (bin_to_res_version): Cast variables to correct type
|
|
|
|
|
for printing in error message.
|
|
|
|
|
|
2016-07-28 22:37:16 +08:00
|
|
|
|
2016-07-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/17512
|
|
|
|
|
* rescoff.c (read_coff_res_dir): Fix detection of buffer overrun.
|
|
|
|
|
* resbin.c (bin_to_res_version): Allow for the padded length of a
|
|
|
|
|
version block to be longer than the recorded length. Skip padding
|
|
|
|
|
bytes.
|
|
|
|
|
|
2016-07-22 06:22:13 +08:00
|
|
|
|
2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
|
2016-07-21 00:08:07 +08:00
|
|
|
|
2016-07-20 Claudiu Zissulescu <claziss@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* doc/binutils.texi (objdump): Add ARC disassembler options.
|
|
|
|
|
* testsuite/binutils-all/arc/dsp.s: New file.
|
|
|
|
|
* testsuite/binutils-all/arc/objdump.exp: Likewise.
|
|
|
|
|
* NEWS: Mention the new feature.
|
|
|
|
|
|
2016-07-20 16:41:10 +08:00
|
|
|
|
2016-07-20 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* doc/binutils.texi (objcopy): Note that the localize symbol
|
|
|
|
|
options do not affect unique symbols.
|
|
|
|
|
|
2016-07-16 12:02:16 +08:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ar.c: Include plugin-api.h.
|
|
|
|
|
* nm.c: Likewise.
|
|
|
|
|
|
2016-07-16 12:00:41 +08:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* bucomm.c: Don't include libbfd.h.
|
|
|
|
|
(endian_string, display_target_list): Delete forward declaration.
|
|
|
|
|
(display_info_table, display_target_tables): Likewise.
|
|
|
|
|
(LONGEST_ARCH): Delete.
|
|
|
|
|
(struct display_target): New.
|
|
|
|
|
(do_display_target): New function.
|
|
|
|
|
(display_target_list, display_info): Rewrite functions.
|
|
|
|
|
(display_info_table): Delete.
|
|
|
|
|
(do_info_size, do_info_header, do_info_row): New functions.
|
|
|
|
|
|
2016-07-16 11:58:30 +08:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elfcomm.h (HOST_WIDEST_INT): Move to..
|
|
|
|
|
* sysdep.h: ..here.
|
|
|
|
|
* od-macho.c: Don't include libbfd.h. Do include dwarf.h
|
|
|
|
|
(dump_dyld_info_rebase): Use read_leb128 rather than
|
|
|
|
|
read_unsigned_leb128.
|
|
|
|
|
(dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
|
|
|
|
|
(dump_segment_split_info): Likewise.
|
|
|
|
|
(dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
|
|
|
|
|
(dump_load_command): Likewise.
|
|
|
|
|
|
2016-07-16 11:55:11 +08:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ar.c: Don't include libbfd.h.
|
|
|
|
|
* objcopy.c: Likewise.
|
|
|
|
|
* bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
|
|
|
|
|
bfd_malloc.
|
|
|
|
|
|
2016-07-15 15:03:53 +08:00
|
|
|
|
2016-07-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
|
|
|
|
|
|
objcopy/strip: Add option --remove-relocations=SECTIONPATTERN
The objcopy and strip tools make use of the bfd library to manipulate
the state of the input file (to produce an output file). Within the
input file (for ELF at least), relocations are held within a section,
and so, if the user wanted to remove the relocations, but keep the
section to which the relocations would have been applied, it is tempting
to think that specifying the name of a relocation section to objcopy's
--remove-section option might do what you want, for example:
objcopy --remove-section=.rela.text input.elf output.elf
However, this does not work. The reason is that when the input file is
loaded, relocations are not managed as sections, but are, instead,
loaded as data associated with the section to which the relocations
would be applied. In our example above the relocations in '.rela.text'
are held as data on the section '.text' once 'input.elf' is loaded.
One task that objcopy and strip do is copy the relocations from the
input file to the output file if the section is also being copied from
the input file to the output file.
This commit adds a new command line option for objcopy and strip,
--remove-relocations, which can be used to remove the relocations, while
keeping the section that the relocations would have been applied to, for
example:
objcopy --remove-relocations=.text input.elf output.elf
in this case the section '.text' will appear in both 'input.elf' and
'output.elf', but any relocations in 'input.elf' that apply to '.text'
will not be present in 'output.elf'.
I have also added a special case to the handling of --remove-section
that spots if a user tries to remove a relocation section (currently
this is done by spotting the '.rela.' or '.rel.' prefix) and forwards
the request to --remove-relocations.
As with --remove-section and --only-section the --remove-relocations
option supports the '!' prefix on the section-patterns it takes to allow
for sections to be specifically not matched.
There are tests for all the new functionality.
binutils/ChangeLog:
* doc/binutils.texi (objcopy): Document 'remove-relocations'.
(strip): Likewise.
* objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
(enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
(struct option strip_options): Add 'remove-relocations'.
(struct option copy_options): Likewise.
(copy_usage): Likewise.
(strip_usage): Likewise.
(handle_remove_relocations_option): New function.
(discard_relocations): New function.
(handle_remove_section_option): New function.
(copy_relocations_in_section): Use discard_relocations.
(strip_main): Use handle_remove_section_option for
'remove-section', and handle 'remove-relocations' option.
(copy_main): Likewise.
* testsuite/binutils-all/objcopy.exp: Run new tests.
* testsuite/binutils-all/remove-relocs-01.d: New file.
* testsuite/binutils-all/remove-relocs-01.s: New file.
* testsuite/binutils-all/remove-relocs-02.d: New file.
* testsuite/binutils-all/remove-relocs-03.d: New file.
* testsuite/binutils-all/remove-relocs-04.d: New file.
* testsuite/binutils-all/remove-relocs-05.d: New file.
* testsuite/binutils-all/remove-relocs-06.d: New file.
2015-08-22 03:08:26 +08:00
|
|
|
|
2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* doc/binutils.texi (objcopy): Document 'remove-relocations'.
|
|
|
|
|
(strip): Likewise.
|
|
|
|
|
* objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
|
|
|
|
|
(enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
|
|
|
|
|
(struct option strip_options): Add 'remove-relocations'.
|
|
|
|
|
(struct option copy_options): Likewise.
|
|
|
|
|
(copy_usage): Likewise.
|
|
|
|
|
(strip_usage): Likewise.
|
|
|
|
|
(handle_remove_relocations_option): New function.
|
|
|
|
|
(discard_relocations): New function.
|
|
|
|
|
(handle_remove_section_option): New function.
|
|
|
|
|
(copy_relocations_in_section): Use discard_relocations.
|
|
|
|
|
(strip_main): Use handle_remove_section_option for
|
|
|
|
|
'remove-section', and handle 'remove-relocations' option.
|
|
|
|
|
(copy_main): Likewise.
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp: Run new tests.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-01.d: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-01.s: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-02.d: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-03.d: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-04.d: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-05.d: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-relocs-06.d: New file.
|
|
|
|
|
* NEWS: Mention new option.
|
|
|
|
|
|
2015-08-24 20:02:39 +08:00
|
|
|
|
2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* objcopy.c (find_section_list): Handle section patterns starting
|
|
|
|
|
with '!' being a non-matching pattern.
|
|
|
|
|
* doc/binutils.texi (objcopy): Give example of using '!' with
|
|
|
|
|
--remove-section and --only-section.
|
|
|
|
|
(strip): Give example of using '!' with --remove-section.
|
|
|
|
|
* testsuite/binutils-all/data-sections.s: New file.
|
|
|
|
|
* testsuite/binutils-all/only-section-01.d: New file.
|
|
|
|
|
* testsuite/binutils-all/remove-section-01.d: New file.
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp: Run new tests.
|
|
|
|
|
* NEWS: Mention new feature.
|
|
|
|
|
|
2016-07-09 12:55:31 +08:00
|
|
|
|
2016-07-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/20337
|
|
|
|
|
* objdump.c (compare_symbols): For ELF, sort same value/type
|
|
|
|
|
symbols according to size.
|
|
|
|
|
|
2016-07-05 18:28:46 +08:00
|
|
|
|
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
|
|
|
|
|
|
|
|
|
|
* objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
|
|
|
|
|
to SEC_ELF_NOREAD.
|
|
|
|
|
* readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
|
|
|
|
|
ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
|
|
|
|
|
(process_section_headers): Rename noread to purecode.
|
|
|
|
|
|
|
|
|
|
* section.c (SEC_ELF_NOREAD): Rename to ...
|
|
|
|
|
(SEC_ELF_PURECODE): ... this.
|
|
|
|
|
|
2016-07-01 19:35:01 +08:00
|
|
|
|
2016-07-01 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* prdbg.c (pr_enum_type): Use a buffer big enough to hold an
|
|
|
|
|
extremely large decimal value.
|
|
|
|
|
(pr_range_type): Likewise.
|
|
|
|
|
(pr_array_type): Likewise.
|
|
|
|
|
(pr_struct_field): Likewise.
|
|
|
|
|
(pr_class_baseclass): Likewise.
|
|
|
|
|
(pr_class_method_variant): Likewise.
|
|
|
|
|
(pr_tag_type): Likewise.
|
|
|
|
|
(pr_int_constant): Likewise.
|
|
|
|
|
(pr_typed_constant): Likewise.
|
|
|
|
|
(pr_variable): Likewise.
|
|
|
|
|
(pr_function_parameter): Likewise.
|
|
|
|
|
(pr_start_block): Likewise.
|
|
|
|
|
(pr_lineno): Likewise.
|
|
|
|
|
(pr_end_block): Likewise.
|
|
|
|
|
(tg_enum_type): Likewise.
|
|
|
|
|
(tg_int_constant): Likewise.
|
|
|
|
|
(tg_typed_constant): Likewise.
|
|
|
|
|
(tg_start_block): Likewise.
|
|
|
|
|
|
2016-07-01 17:32:45 +08:00
|
|
|
|
2016-07-01 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp
|
|
|
|
|
(objcopy_test_without_global_symbol): Expect this test to fail on
|
|
|
|
|
the AArch64 and ARM targets, since they preserve their mapping
|
|
|
|
|
symbols.
|
|
|
|
|
|
2016-07-01 16:57:46 +08:00
|
|
|
|
2016-07-01 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Add marker for 2.27.
|
|
|
|
|
|
2016-06-29 18:09:06 +08:00
|
|
|
|
2016-07-30 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* doc/binutils.texi (objdump): Fix mis-placement.
|
|
|
|
|
|
2016-06-28 21:05:34 +08:00
|
|
|
|
2016-06-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/ar.exp: Relax previous restriction on
|
|
|
|
|
Alpha targets. Allow ELF based Alpha targets.
|
|
|
|
|
|
2016-06-28 20:21:36 +08:00
|
|
|
|
2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
|
|
|
|
|
the `unique_symbol' test.
|
|
|
|
|
|
2016-06-28 17:29:33 +08:00
|
|
|
|
2016-06-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 20304
|
|
|
|
|
* objdump.c (objdump_print_symname): Don't attempt to retrieve
|
|
|
|
|
version info from synthetic symbols.
|
|
|
|
|
|
2016-06-23 20:41:57 +08:00
|
|
|
|
2016-06-24 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* objcopy.c (find_section_rename): Forward declare. Remove
|
|
|
|
|
ibfd and sec_ptr param. Add old_name param. Allow for NULL
|
|
|
|
|
returned_flags. Move read of section name and flags to..
|
|
|
|
|
(setup_section): ..here. Update find_section_rename call.
|
|
|
|
|
(filter_symbols): Rename section symbols for renamed sections.
|
|
|
|
|
(copy_object): Call filter_symbols when renamed sections.
|
|
|
|
|
* testsuite/lib/binutils-common.exp (is_bad_symtab): New.
|
|
|
|
|
* testsuite/binutils-all/update-section.exp: Revert 96037eb0
|
|
|
|
|
mips xfail.
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp (copy_executable): Use
|
|
|
|
|
is_bad_symtab.
|
|
|
|
|
(localize-hidden-1): xfail if is_bad_symtab.
|
|
|
|
|
* testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
|
|
|
|
|
between mips/tmips.
|
|
|
|
|
|
2016-06-24 09:20:25 +08:00
|
|
|
|
2016-06-24 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* objdump.c (struct print_file_list): Add "max_printed".
|
|
|
|
|
(try_print_file_open): Init new field.
|
|
|
|
|
(show_line): Don't show 5 context lines when redisplaying source.
|
|
|
|
|
|
2016-06-22 21:42:26 +08:00
|
|
|
|
2016-06-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
|
|
|
|
|
Skip bfdtest1 tests for tic30 target.
|
|
|
|
|
* testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
|
|
|
|
|
target.
|
|
|
|
|
* testsuite/binutils-all/compress.exp: Expect some tests to fail
|
|
|
|
|
on the nds32.
|
|
|
|
|
* testsuite/binutils-all/copy-3.d: Skip for go32 targets.
|
|
|
|
|
* testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
|
|
|
|
|
targets.
|
|
|
|
|
* testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
|
|
|
|
|
targets.
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
|
|
|
|
|
if the bintest.o file was created. Use the
|
|
|
|
|
get_standard_section_names proc to get the name of the data
|
|
|
|
|
section.
|
|
|
|
|
* testsuite/binutils-all/objdump.exp: Update regexps to allow for
|
|
|
|
|
RX section names.
|
|
|
|
|
* testsuite/binutils-all/readelf.exp: Use
|
|
|
|
|
get_standard_section_names proc to get the name of the data
|
|
|
|
|
section.
|
|
|
|
|
* testsuite/binutils-all/readelf.r: Allow for non standard text
|
|
|
|
|
section names.
|
|
|
|
|
* testsuite/binutils-all/readelf.s: Update regexps for tilepro.
|
|
|
|
|
* testsuite/binutils-all/size.exp: Allow for non standard section
|
|
|
|
|
names.
|
|
|
|
|
* testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
|
|
|
|
|
to fail on mips targets.
|
|
|
|
|
* testsuite/lib/utils-lib.exp (default_binutils_run): Use
|
|
|
|
|
get_standard_section_names proc.
|
|
|
|
|
(run_dump_test): Likewise.
|
|
|
|
|
(proc get_standard_section_names): New proc.
|
|
|
|
|
|
2016-06-22 16:55:50 +08:00
|
|
|
|
2016-06-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (dynamic_section_mips_val): Increase size of timebuf.
|
|
|
|
|
(process_mips_specific): Likewise.
|
|
|
|
|
(process_gnu_liblist): Likewise.
|
|
|
|
|
|
2016-06-21 21:03:08 +08:00
|
|
|
|
2016-06-21 Graham Markall <graham.markall@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
|
|
|
|
|
case.
|
|
|
|
|
|
2016-06-15 23:25:34 +08:00
|
|
|
|
2016-06-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
|
|
|
|
|
reloc.
|
|
|
|
|
|
2016-06-11 21:09:06 +08:00
|
|
|
|
2016-06-14 John Baldwin <jhb@FreeBSD.org>
|
|
|
|
|
|
|
|
|
|
* objcopy.c (do_elf_stt_common): Use correct type.
|
|
|
|
|
|
2016-06-14 11:54:37 +08:00
|
|
|
|
2016-06-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ar.c: Expand uses of bfd_my_archive.
|
|
|
|
|
* size.c: Likewise.
|
|
|
|
|
|
2016-06-14 11:42:00 +08:00
|
|
|
|
2016-06-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20241
|
|
|
|
|
* bucomm.c (bfd_get_archive_filename): Return file name within thin
|
|
|
|
|
archive.
|
|
|
|
|
|
2016-06-02 18:34:49 +08:00
|
|
|
|
2016-06-02 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-06-02 23:20:27 +08:00
|
|
|
|
PR 20089
|
|
|
|
|
* objcopy.c (group_signature): Fail if the input symbol table has
|
2016-06-02 23:32:45 +08:00
|
|
|
|
not been loaded, or if the sh_info field of the group header is 0.
|
2016-06-02 23:20:27 +08:00
|
|
|
|
|
2016-06-02 18:34:49 +08:00
|
|
|
|
* dwarf.c (display_debug_frames): Do not display any
|
|
|
|
|
interpretation if the block consists solely of DW__CFA_NOPs.
|
|
|
|
|
|
2016-05-31 18:51:09 +08:00
|
|
|
|
2016-05-31 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* objcopy.c: Formatting, whitespace throughout.
|
|
|
|
|
(copy_main): Init newsym->othersym.
|
|
|
|
|
(parse_symflags): Make len a size_t. Adjust uses.
|
|
|
|
|
|
2016-05-26 00:46:47 +08:00
|
|
|
|
2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/14625
|
|
|
|
|
* NEWS: Mention --enable-64-bit-archive.
|
|
|
|
|
|
2016-05-18 22:21:16 +08:00
|
|
|
|
2016-05-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 20096
|
|
|
|
|
* objcopy.c (copy_relocations_in_section): Also check for the
|
|
|
|
|
symbol pointed to by sym_ptr_ptr being NULL.
|
|
|
|
|
|
2016-05-18 18:22:30 +08:00
|
|
|
|
2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips.exp: Run the new test.
|
|
|
|
|
|
2016-05-18 19:44:43 +08:00
|
|
|
|
2016-05-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sv.po: Updated Swedish translation.
|
|
|
|
|
|
2016-05-18 11:30:50 +08:00
|
|
|
|
2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
|
|
|
|
|
<DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
|
|
|
|
|
<DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
|
|
|
|
|
<DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
|
|
|
|
|
<DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
|
|
|
|
|
<DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
|
|
|
|
|
`d_val' rather than `d_ptr' member of the dynamic entry.
|
|
|
|
|
|
2016-05-16 15:51:26 +08:00
|
|
|
|
2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/binutils-common.exp (supports_gnu_unique): New
|
|
|
|
|
procedure.
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
|
|
|
|
|
with the `strip-10' test.
|
|
|
|
|
|
2016-05-16 15:22:59 +08:00
|
|
|
|
2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
|
|
|
|
|
test for the V850.
|
|
|
|
|
|
2014-11-26 19:15:01 +08:00
|
|
|
|
2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (print_mips_ases): Add DSPR3.
|
|
|
|
|
|
2016-05-10 22:15:15 +08:00
|
|
|
|
2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
|
|
|
|
|
(arm_attr_public_tags): Define DSP_extension attribute.
|
|
|
|
|
|
2016-04-29 20:22:51 +08:00
|
|
|
|
2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* doc/binutils.texi (nm): Update description of --size-sort.
|
|
|
|
|
|
2016-05-10 00:31:07 +08:00
|
|
|
|
2016-05-09 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/20063
|
|
|
|
|
* readelf.c (get_32bit_section_headers): Warn if an out of range
|
|
|
|
|
sh_link or sh_info field is encountered.
|
|
|
|
|
(get_64bit_section_headers): Likewise.
|
|
|
|
|
|
2016-05-04 20:03:52 +08:00
|
|
|
|
2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
|
|
|
|
|
|
2016-05-03 20:36:22 +08:00
|
|
|
|
2016-05-03 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sv.po: Updated Swedish translation.
|
|
|
|
|
|
2016-04-29 21:05:12 +08:00
|
|
|
|
2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
|
|
|
|
|
PC relocation for AVR target.
|
|
|
|
|
(is_none_reloc): Return true if reloc is any of AVR diff
|
|
|
|
|
relocations.
|
|
|
|
|
|
2016-04-29 16:24:42 +08:00
|
|
|
|
2016-04-29 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 19938
|
|
|
|
|
* readelf.c (get_solaris_segment_type): New function.
|
|
|
|
|
(get_segment_type): Call it.
|
|
|
|
|
|
2016-04-28 21:09:49 +08:00
|
|
|
|
2016-04-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/zh_CN.po: Updated Chinese (simplified) translation.
|
|
|
|
|
|
2016-04-28 16:11:03 +08:00
|
|
|
|
2016-04-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR target/19722
|
|
|
|
|
* testsuite/binutils-all/aarch64/illegal.s: New test.
|
|
|
|
|
* testsuite/binutils-all/aarch64/illegal.d: New test driver.
|
|
|
|
|
|
2016-04-14 06:30:46 +08:00
|
|
|
|
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
|
|
|
|
|
|
|
|
|
* resres.c: Likewise.
|
|
|
|
|
|
2016-04-16 07:20:02 +08:00
|
|
|
|
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in: Regenerated with automake 1.11.6.
|
|
|
|
|
* aclocal.m4: Likewise.
|
|
|
|
|
* doc/Makefile.in: Likewise.
|
|
|
|
|
|
2016-04-14 19:04:09 +08:00
|
|
|
|
2016-04-14 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR target/19938
|
|
|
|
|
* testsuite/binutils-all/i386/compressed-1b.d: Allow for the
|
|
|
|
|
string sections possibly having the SHF_STRINGS flag bit set.
|
|
|
|
|
* testsuite/binutils-all/i386/compressed-1c.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/readelf.s: Likewise.
|
|
|
|
|
* testsuite/binutils-all/readelf.s-64: Likewise.
|
|
|
|
|
* testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
|
|
|
|
|
|
2016-04-13 22:37:55 +08:00
|
|
|
|
2016-04-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-04-14 19:04:09 +08:00
|
|
|
|
PR target/19938
|
2016-04-13 22:37:55 +08:00
|
|
|
|
* readelf.c (get_solaris_section_type): New function: Returns the
|
|
|
|
|
name of Solaris specific section types.
|
|
|
|
|
(get_solaris_dynamic_type): New function: Return the name of
|
|
|
|
|
Solaris specific dynamic types.
|
|
|
|
|
(get_dynamic_type): Use get_solaris_dynamic_type.
|
|
|
|
|
(get_section_type_name): Use get_solaris_section_type.
|
|
|
|
|
(get_solaris_symbol_visibility): New function: Returns Solaris
|
|
|
|
|
specific symbol visibilities.
|
|
|
|
|
(print_dynamic_symbol): Use get_solaris_symbol_visibility.
|
|
|
|
|
(process_symbol_table): Likewise.
|
|
|
|
|
|
2016-04-13 16:56:30 +08:00
|
|
|
|
2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* dwarf.h (init_dwarf_regnames_s390): Declare.
|
|
|
|
|
* dwarf.c (dwarf_regnames_s390): New.
|
|
|
|
|
(init_dwarf_regnames_s390): New.
|
|
|
|
|
(init_dwarf_regnames): Call it.
|
|
|
|
|
* objdump.c (dump_dwarf): Likewise.
|
|
|
|
|
|
2016-04-12 00:56:01 +08:00
|
|
|
|
2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-undecoded.d: New test.
|
|
|
|
|
* testsuite/binutils-all/mips/mips16-undecoded.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/binutils-all/mips/mips.exp: Run the new test.
|
|
|
|
|
|
2016-04-04 19:53:33 +08:00
|
|
|
|
2016-04-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 19872
|
|
|
|
|
* dwarf.c (display_debug_aranges): Skip warning about unrecognised
|
|
|
|
|
version number if the version is zero.
|
|
|
|
|
|
2016-03-29 14:41:46 +08:00
|
|
|
|
2016-03-29 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
|
|
|
|
|
(get_dynamic_data): Likewise.
|
|
|
|
|
|
2016-03-22 17:41:16 +08:00
|
|
|
|
2016-03-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-03-22 21:25:22 +08:00
|
|
|
|
PR 19851
|
|
|
|
|
* dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
|
|
|
|
|
with run time size check.
|
|
|
|
|
|
2016-03-22 17:41:16 +08:00
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-03-16 05:51:50 +08:00
|
|
|
|
2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (decode_ARC_machine_flags): Handle nps400.
|
|
|
|
|
|
arc: Remove EF_ARC_CPU_GENERIC constant.
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.
2016-03-16 05:38:30 +08:00
|
|
|
|
2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
2016-03-01 19:41:12 +08:00
|
|
|
|
2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
|
|
|
|
|
to the architecture list.
|
|
|
|
|
|
2016-03-22 00:31:46 +08:00
|
|
|
|
2016-03-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dlltool.c: Replace use of alloca with call to xmalloc.
|
|
|
|
|
* dllwrap.c: Likewise.
|
|
|
|
|
* nlmconv.c: Likewise.
|
|
|
|
|
* objdump.c: Likewise.
|
|
|
|
|
* resrc.c: Likewise.
|
|
|
|
|
* winduni.c: Likewise.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-03-08 01:29:25 +08:00
|
|
|
|
2016-03-07 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/19775
|
|
|
|
|
* testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
|
|
|
|
|
Run the new proc.
|
|
|
|
|
* testsuite/binutils-all/empty: New, empty, file.
|
|
|
|
|
|
2016-03-04 22:16:48 +08:00
|
|
|
|
2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
|
|
|
|
|
|
2016-02-26 22:44:03 +08:00
|
|
|
|
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19645
|
|
|
|
|
* NEWS: Mention --elf-stt-common= for objcopy.
|
|
|
|
|
* doc/binutils.texi: Document --elf-stt-common= for objcopy.
|
|
|
|
|
* objcopy.c (do_elf_stt_common): New.
|
|
|
|
|
(command_line_switch): Add OPTION_ELF_STT_COMMON.
|
|
|
|
|
(copy_options): Add --elf-stt-common=.
|
|
|
|
|
(copy_usage): Add --elf-stt-common=.
|
|
|
|
|
(copy_object): Also check do_elf_stt_common for ELF targets.
|
|
|
|
|
(copy_file): Handle do_elf_stt_common.
|
|
|
|
|
(copy_main): Handle OPTION_ELF_STT_COMMON.
|
|
|
|
|
* readelf.c (apply_relocations): Support STT_COMMON.
|
|
|
|
|
* testsuite/binutils-all/common-1.s: New file.
|
|
|
|
|
* testsuite/binutils-all/common-1a.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-1b.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-1c.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-1d.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-1e.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-1f.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2.s: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2a.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2b.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2c.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2d.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2e.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/common-2f.d: Likewise.
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp
|
|
|
|
|
(objcopy_test_elf_common_symbols): New proc.
|
|
|
|
|
Run objcopy_test_elf_common_symbols for ELF targets
|
|
|
|
|
|
2016-02-17 07:03:39 +08:00
|
|
|
|
2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/19647
|
|
|
|
|
* readelf.c (get_section_type_name): Add a missing break.
|
|
|
|
|
|
2016-02-16 22:56:04 +08:00
|
|
|
|
2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
|
|
|
|
|
|
2016-02-15 19:11:46 +08:00
|
|
|
|
2016-02-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_section_type_name): Add hex prefix to offsets
|
|
|
|
|
printed for LOPROC and LOOS values. Ensure that a result is
|
|
|
|
|
always returned for the V850 target, even when an unrecognised
|
|
|
|
|
processor specific value is encountered.
|
|
|
|
|
(process_section_headers): Display key values in the order in
|
|
|
|
|
which they appear to the user. Add the "C (compressed)" value to
|
|
|
|
|
the list.
|
|
|
|
|
|
2016-02-13 05:38:57 +08:00
|
|
|
|
2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* doc/binutils.texi: Fix a typo.
|
|
|
|
|
|
2016-02-05 17:58:01 +08:00
|
|
|
|
2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/binutils-all/objdump.exp: Update expected default
|
|
|
|
|
architecture value for ARC binaries.
|
|
|
|
|
|
2016-02-02 19:30:21 +08:00
|
|
|
|
2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/19547
|
|
|
|
|
* testsuite/binutils-all/objcopy.exp
|
|
|
|
|
(objcopy_test_without_global_symbol): New proc.
|
|
|
|
|
Run objcopy_test_without_global_symbol.
|
|
|
|
|
* testsuite/binutils-all/pr19547.c: New file.
|
|
|
|
|
|
2016-01-29 05:29:53 +08:00
|
|
|
|
2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/19523
|
|
|
|
|
* Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
|
|
|
|
|
runtest.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
|
|
|
|
|
proc.
|
|
|
|
|
Run test_gnu_debuglink for native ELF build.
|
|
|
|
|
|
2016-01-20 22:52:33 +08:00
|
|
|
|
2016-01-20 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 19495
|
|
|
|
|
* testsuite/binutils-all/dlltool.exp: Fix tests for targets which
|
2016-02-05 17:58:01 +08:00
|
|
|
|
do not support inserting leading underscores.
|
2016-01-20 22:52:33 +08:00
|
|
|
|
|
2016-01-20 20:53:50 +08:00
|
|
|
|
2016-01-20 Mickael Guene <mickael.guene@st.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_elf_section_flags): Display y letter for section
|
|
|
|
|
with SHF_ARM_NOREAD section flag in readelf section output.
|
|
|
|
|
(process_section_headers): Add y letter in readelf section output
|
|
|
|
|
key mapping for ARM architecture.
|
|
|
|
|
* objdump.c (dump_section_header): Display NOREAD attributes as
|
|
|
|
|
well.
|
|
|
|
|
* doc/binutils.texi (objdump): Note that it is correct for
|
|
|
|
|
sections to have both the READONLY and NOREAD attributes.
|
|
|
|
|
|
2016-01-20 01:06:33 +08:00
|
|
|
|
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
|
|
|
|
|
|
2015-12-14 14:26:19 +08:00
|
|
|
|
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_freebsd_elfcore_note_type): New
|
|
|
|
|
(process_note): Add support for FreeBSD core notes.
|
|
|
|
|
|
Add PIC and TLS support to the ARC target.
bfd/ChangeLog:
* arc-plt.def: New file.
* arc-plt.h: Likewise.
* elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
(name_for_global_symbol): Added.
(ADD_RELA): Helper to create dynamic relocs.
(new_got_entry_to_list): Create a new got entry in linked list.
(symbol_has_entry_of_type): Search for specific type of entry in
list.
(is_reloc_for_GOT): return FALSE for any TLS related relocs.
(is_reloc_for_TLS, arc_elf_set_private_flags)
(arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
(arc_elf_merge_private_bfd_data): New functions.
(debug_arc_reloc): Cleaned debug info printing.
(PDATA reloc): Changed not to perform address alignment.
(reverse_me): Added. Fix for ARC_32 relocs.
(arc_do_relocation): Return bfd_reloc_of when no relocation should
occur.
(arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
Changed function to access an array of list of GOT entries instead
of just an array of offsets.
(elf_arc_relocate_section): Added support for PIC and TLS related relocations.
(elf_arc_check_relocs): Likewise.
(elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
(elf_arc_finish_dynamic_sections): Likewise
(arc_create_dynamic_sections): Modified conditions to create
dynamic sections.
(ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
(plt_do_relocs_for_symbol, relocate_plt_for_symbol)
(relocate_plt_for_entry): Changed to support new way to define PLT
related code.
(add_symbol_to_plt): Likewise.
(arc_elf_link_hash_table_create): New function.
include/ChangeLog:
* 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-19 23:25:58 +08:00
|
|
|
|
2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
|
|
|
|
|
Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (get_machine_flags): Add support for newer ARC ELF
|
|
|
|
|
header flags.
|
|
|
|
|
|
2016-01-18 13:36:49 +08:00
|
|
|
|
2016-01-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-01-17 09:50:55 +08:00
|
|
|
|
2016-01-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-01-17 09:43:43 +08:00
|
|
|
|
2016-01-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/binutils-common.exp (is_elf_format): Return true
|
|
|
|
|
for m68hc11/12 and xgate triples.
|
|
|
|
|
|
2016-01-17 09:43:30 +08:00
|
|
|
|
2016-01-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
|
|
|
|
|
|
2016-01-01 19:25:12 +08:00
|
|
|
|
2016-01-01 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2016-01-01 18:44:31 +08:00
|
|
|
|
For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
|
|
|
|
|
|
|
|
|
|
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:
|