From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93710 invoked by alias); 21 May 2017 17:30:53 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 93686 invoked by uid 9674); 21 May 2017 17:30:52 -0000 Date: Sun, 21 May 2017 17:30:00 -0000 Message-ID: <20170521173051.93599.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] users/jkratoch/indexcxx: Merge remote-tracking branch 'gdb/master' into indexcxx X-Git-Refname: refs/heads/users/jkratoch/indexcxx X-Git-Reftype: branch X-Git-Oldrev: dfba29cc316c649da098a49b084fbdd8ba3d84f2 X-Git-Newrev: 3c31c689159535ec278253668e1f59155f18da2b X-SW-Source: 2017-q2/txt/msg00024.txt.bz2 List-Id: The branch, users/jkratoch/indexcxx has been updated via 3c31c689159535ec278253668e1f59155f18da2b (commit) via 56298620acb02ab589ce3ddf398788227ab20211 (commit) via b4f5b984e5e771e75cee43942e56455531a02e68 (commit) via 43cc5389bc4662b31cad02a9f13358bd367d0ab3 (commit) via a9dba87af1aeabffb01769004ab893173f3ef472 (commit) via e5713223cbc1025f484fa2548d58f74173646b8a (commit) via f0681695daa9d4fd493f3ca88f194675c9affbff (commit) via 147c65bdf374e9f9250d20c2428cde8c3c18a9e7 (commit) via 64517994807b0d6bb3c6fd106f117c03242fac72 (commit) via 92f7d783c1038841beacaba28a5f5d740a5ccad6 (commit) via ae0264a6474d777650d65da261732748126f0190 (commit) via f4203b2b8830e66e5229b7f9d30cd29b088566b5 (commit) via 6e7e1744e96abbf1a4229d5f269caf2cc921ec58 (commit) via 7a6e7fcc77997bf7679cce4f1cfebcd57ba8af70 (commit) via 1933fd8ee01ad2e74a9c6341bc40f54962a8f889 (commit) via eb026f09eb6fcb96a5de1e655cdde041ba44affb (commit) via 50e1d299ef1d21b0833c2fe1484d3cc374e6486f (commit) via dd47d677f0164800ceba1ab67f6cd2add0021101 (commit) via 8038128b23576f93a56caf7779a4406a84716727 (commit) via ec8df23454873916c6b6b918967af631b268acd8 (commit) via 3e3e7faebe89bfab0d245040b19fd7347d186065 (commit) via 3aa2d05a728216bbb99dbb5718be9bb36429cf41 (commit) via 59cc050d893d1e8c75547de950a35e809588f12f (commit) via c8f6abd10d62f82874e31959bf986606bd919d39 (commit) via d2a03b77450dce58f6b4f9f7fdd3c346a555bcf7 (commit) via 9d43118ee54de3fbffea27a5a10ae11ba5ee00d0 (commit) via 535b785fb0c97220dea23a18f07baad6b5d77ae5 (commit) via 087ea22225435ab5800e6c29671acab40dc6ca82 (commit) via a406db9163e45ab55c3addff2ce1e61796f1bddc (commit) via c2a79cd51ba9d0823e7efc564938611958138c03 (commit) via b7c871edcd83ccdc5fcd8148a7f433efd6b52255 (commit) via 0d5c69990c1992289f7b286600a43de4d5d44062 (commit) via 21873064e835ffb16e92048482e34f19e6a415da (commit) via 2b351b19efc8dd36ac8a8bda005c7411536b93ec (commit) via a0a110b0dd5077373c4102d1502130eb159c366b (commit) via 4ebcabb38ef8acfb6e26d2b40e00abfe10aea895 (commit) via 854062337d056ffc8b805e0d5a8c1a66b99a4076 (commit) via 0a7d38897b9fb1ec7a064ca3347cbac3ba49e5ac (commit) via 91cb9803fcf6d1c7001395d80f79120ae8e6338a (commit) via bc4e12ded1d4c8d589d82b2a10ade6b47f219db3 (commit) via 4070765b1a1640ff8f43483cd9ee06727f658dfe (commit) via 8cc2a9796024f2dd472985cc8ed1c65a85ec9a35 (commit) via 0c38a3d1942067100580e9673bcf0cbe27f3d6e8 (commit) via d8cbc93b65ace8a36002839d5ee944efff59d643 (commit) from dfba29cc316c649da098a49b084fbdd8ba3d84f2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 3c31c689159535ec278253668e1f59155f18da2b Merge: 147c65b 5629862 Author: Jan Kratochvil Date: Sun May 21 08:31:42 2017 +0200 Merge remote-tracking branch 'gdb/master' into indexcxx commit 56298620acb02ab589ce3ddf398788227ab20211 Author: GDB Administrator Date: Sun May 21 00:00:39 2017 +0000 Automatic date update in version.in commit b4f5b984e5e771e75cee43942e56455531a02e68 Author: Jose E. Marchesi Date: Fri May 19 23:45:29 2017 -0700 binutils: remove sparc64/mips64 workaround in objcopy build notes merge code This patch removes a workaround recently installed in objcopy that avoided removing duplicated notes in targets for which the number of internal relocations may be bigger than the number of external relocations. With the recent fixes in sparc64 and mips64, this workaround is no longer necessary. 2017-05-19 Jose E. Marchesi * objcopy.c (merge_gnu_build_notes): Remove workaround that prevented deleting relocations in duplicated notes in mips64 and sparc. commit 43cc5389bc4662b31cad02a9f13358bd367d0ab3 Author: Tom Tromey Date: Sun May 14 11:12:14 2017 -0600 Use watchpoint's language when re-parsing expression PR rust/21484 notes that watch -location does not work with Rust: (gdb) watch -location a syntax error in expression, near `) 0x00007fffffffe0f4'. update_watchpoint tries to tell gdb that the new expression it creates has C syntax: /* The above expression is in C. */ b->language = language_c; However, update_watchpoint doesn't actually use this language when re-parsing the expression. Originally I was going to fix this by saving and restoring the language in update_watchpoint, but this regressed gdb.dlang/watch-loc.exp, because the constructed expression actually has D syntax (specifically the name is not parseable by C). Next I looked at directly constructing an expression, and not relying on the parser at all; but it seemed to me that upon a re-set, we'd want to reparse the type, and there is no existing API to do this correctly. So, in the end I made a hook to let each language choose what expression to use. I made all the languages other than Rust use the C expression, because that is the status quo ante. However, this is probably not truly correct. After this patch, at least, it is easy to correct by someone who knows the language(s) in question. Regtested by the buildbot. ChangeLog 2017-05-19 Tom Tromey PR rust/21484: * rust-lang.c (exp_descriptor_rust): New function. (rust_language_defn): Use it. * p-lang.c (pascal_language_defn): Update. * opencl-lang.c (opencl_language_defn): Update. * objc-lang.c (objc_language_defn): Update. * m2-lang.c (m2_language_defn): Update. * language.h (struct language_defn) : New member. * language.c (unknown_language_defn, auto_language_defn) (local_language_defn): Update. * go-lang.c (go_language_defn): Update. * f-lang.c (f_language_defn): Update. * d-lang.c (d_language_defn): Update. * c-lang.h (c_watch_location_expression): Declare. * c-lang.c (c_watch_location_expression): New function. (c_language_defn, cplus_language_defn, asm_language_defn) (minimal_language_defn): Use it. * breakpoint.c (watch_command_1): Call la_watch_location_expression. * ada-lang.c (ada_language_defn): Update. testsuite/ChangeLog 2017-05-19 Tom Tromey PR rust/21484: * gdb.rust/watch.exp: New file. * gdb.rust/watch.rs: New file. commit a9dba87af1aeabffb01769004ab893173f3ef472 Author: GDB Administrator Date: Sat May 20 00:00:43 2017 +0000 Automatic date update in version.in commit e5713223cbc1025f484fa2548d58f74173646b8a Author: Maciej W. Rozycki Date: Fri May 19 15:11:31 2017 +0100 MIPS/BFD: For n64 hold the number of internal relocs in `->reloc_count' Revert parts of commit fee24f1c5bfe ("objdump improvements for mips elf64"), , and make the `->reloc_count' member of `struct bfd_section' hold the actual number of internal relocations stored in its `->relocation' vector. To do so adjust `mips_elf64_slurp_one_reloc_table' to set `->reloc_count' to the actual number of internal relocations retrieved and discard `mips_elf64_canonicalize_reloc', `mips_elf64_canonicalize_dynamic_reloc' and their corresponding target macros. Contrary to the description of `mips_elf64_slurp_one_reloc_table', adjusted appropriately, this makes generic relocation processing code happy and satisfies the "merge notes section" binutils test case. Add extra binutils test cases to expand the coverage of the generic "merge notes section" test case, now passing with the n64 ABI, across the MIPS o32, n32 and n64 ABIs regardless of the default ABI selected in target configuration, and also to verify correctness of the relocations produced. Conversely, do not provide any additional test cases for the original issue addressed with the commit referred: - objdump would display only 1/3 of the total number of relocations, because it used the external relocation count, but each external relocation is brought in as 3 internal relocations. as n64 ABI relocation processing with `objdump -r' and `objdump -R' is already widely covered across the GAS and LD test suites. bfd/ * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype and function. (mips_elf64_canonicalize_dynamic_reloc): Likewise. (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the actual number of internal relocations retrieved. Adjust function description. (bfd_elf64_canonicalize_reloc): Remove macro. (bfd_elf64_canonicalize_dynamic_reloc): Likewise. binutils/ * testsuite/binutils-all/mips/mips-note-2.d: New test. * testsuite/binutils-all/mips/mips-note-2r.d: New test. * testsuite/binutils-all/mips/mips-note-2-n32.d: New test. * testsuite/binutils-all/mips/mips-note-2-n64.d: New test. * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test. * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test. * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'. Run the new tests. commit f0681695daa9d4fd493f3ca88f194675c9affbff Author: Maciej W. Rozycki Date: Fri May 19 15:08:16 2017 +0100 binutils/testsuite: Permit the reuse of dump patterns Complement commit 89210bdc8fd2 ("GAS: Permit the reuse of dump patterns"), , and commit ef2b5578f693 ("MIPS: Enable NewABI tests for SDE targets"), , and like the GAS and LD versions make the binutils version of `run_dump_test' also support the `dump' keyword, for reusing dump patterns between tests. binutils/ * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump' option. commit 147c65bdf374e9f9250d20c2428cde8c3c18a9e7 Merge: c2a79cd 6451799 Author: Jan Kratochvil Date: Fri May 19 22:25:35 2017 +0200 Merge remote-tracking branch 'gdb/master' into indexcxx commit 64517994807b0d6bb3c6fd106f117c03242fac72 Author: Jose E. Marchesi Date: Fri May 19 09:27:08 2017 -0700 binutils: support for the SPARC M8 processor This patch adds support for the new SPARC M8 processor (implementing OSA 2017) to binutils. New instructions: - Dictionary Unpack + dictunpack - Partitioned Compare with shifted result + Signed variants: fpcmp{le,gt,eq,ne}{8,16,32}shl + Unsigned variants: fpcmpu{le,gt}{8,16,32}shl - Partitioned Dual-Equal compared, with shifted result + fpcmpde{8,16,32}shl - Partitioned Unsigned Range Compare, with shifted result + fpcmpur{8,16,32}shl - 64-bit shifts on Floating-Point registers + fps{ll,ra,rl}64x - Misaligned loads and stores + ldm{sh,uh,sw,uw,x,ux} + ldm{sh,uh,sw,uw,x,ux}a + ldmf{s,d} + ldmf{s,d}a + stm{h,w,x} + stm{h,w,x}a + stmf{s,d} + stmf{s,d}a - Oracle Numbers + on{add,sub,mul,div} - Reverse Bytes/Bits + revbitsb + revbytes{h,w,x} - Run-Length instructions + rle_burst + rle_length - New crypto instructions + sha3 - Instruction to read the new register %entropy + rd %entropy New Alternate Address Identifiers: - 0x24, #ASI_CORE_COMMIT_COUNT - 0x24, #ASI_CORE_SELECT_COUNT - 0x48, #ASI_ARF_ECC_REG - 0x53, #ASI_ITLB_PROBE - 0x58, #ASI_DSFAR - 0x5a, #ASI_DTLB_PROBE_PRIMARY - 0x5b, #ASI_DTLB_PROBE_REAL - 0x64, #ASI_CORE_SELECT_COMMIT_NHT The new assembler command-line options for selecting the M8 architecture are: -Av9m8 or -Asparc6 for 64-bit binaries. -Av8plusm8 for 32-bit (v8+) binaries. The corresponding disassembler command-line options are: -msparc:v9m8 for 64-bit binaries. -msparc:v8plusm8 for 32-bit (v8+) binaries. Tested for regressions in the following targets: sparc-aout sparc-linux sparc-vxworks sparc64-linux bfd/ChangeLog: 2017-05-19 Jose E. Marchesi * archures.c (bfd_mach_sparc_v9m8): Define. (bfd_mach_sparc_v8plusm8): Likewise. (bfd_mach_sparc_v9_p): Adjust to M8. (bfd_mach_sparc_64bit_p): Likewise. * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and bfd_mach_sparc_v8plusm8. * bfd-in2.h: Regenerated. * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and sparc:v8plusm8. * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and SHA3. * elf32-sparc.c (elf32_sparc_final_write_processing): Handle bfd_mach_sparc_v8plusm8. binutils/ChangeLog: 2017-05-19 Jose E. Marchesi * NEWS: Mention the SPARC M8 support. gas/ChangeLog: 2017-05-19 Jose E. Marchesi * config/tc-sparc.c (sparc_arch_table): Entries for `sparc6', `v9m8' and `v8plusm8'. (sparc_md_end): Handle SPARC_OPCODE_ARCH_M8. (get_hwcap_name): Support the M8 hardware capabilities. (sparc_ip): Handle new operand types. * doc/c-sparc.texi (Sparc-Opts): Document -Av9m8, -Av8plusm8 and -Asparc6, and the corresponding -xarch aliases. * testsuite/gas/sparc/sparc6.s: New file. * testsuite/gas/sparc/sparc6.d: Likewise. * testsuite/gas/sparc/sparc6-diag.s: Likewise. * testsuite/gas/sparc/sparc6-diag.l: Likewise. * testsuite/gas/sparc/fpcmpshl.s: Likewise. * testsuite/gas/sparc/fpcmpshl.d: Likewise. * testsuite/gas/sparc/fpcmpshl-diag.s: Likewise. * testsuite/gas/sparc/fpcmpshl-diag.l: Likewise. * testsuite/gas/sparc/ldm-stm.s: Likewise. * testsuite/gas/sparc/ldm-stm.d: Likewise. * testsuite/gas/sparc/ldm-stm-diag.s: Likewise. * testsuite/gas/sparc/ldm-stm-diag.l: Likewise. * testsuite/gas/sparc/ldmf-stmf.s: Likewise. * testsuite/gas/sparc/ldmf-stmf.d: Likewise. * testsuite/gas/sparc/ldmf-stmf-diag.s: Likewise. * testsuite/gas/sparc/ldmf-stmf-diag.l: Likewise. * testsuite/gas/sparc/on.s: Likewise. * testsuite/gas/sparc/on.d: Likewise. * testsuite/gas/sparc/on-diag.s: Likewise. * testsuite/gas/sparc/on-diag.l: Likewise. * testsuite/gas/sparc/rle.s: Likewise. * testsuite/gas/sparc/rle.d: Likewise. * testsuite/gas/sparc/sparc.exp (gas_64_check): Run new tests. * testsuite/gas/sparc/rdasr.s: Add test for RDENTROPY. * testsuite/gas/sparc/rdasr.d: Likewise. include/ChangeLog: 2017-05-19 Jose E. Marchesi * elf/sparc.h (ELF_SPARC_HWCAP2_SPARC6): Define. (ELF_SPARC_HWCAP2_ONADDSUB): Likewise. (ELF_SPARC_HWCAP2_ONMUL): Likewise. (ELF_SPARC_HWCAP2_ONDIV): Likewise. (ELF_SPARC_HWCAP2_DICTUNP): Likewise. (ELF_SPARC_HWCAP2_FPCMPSHL): Likewise. (ELF_SPARC_HWCAP2_RLE): Likewise. (ELF_SPARC_HWCAP2_SHA3): Likewise. * opcode/sparc.h (sparc_opcode_arch_val): Add SPARC_OPCODE_ARCH_M8 and adjust SPARC_OPCODE_ARCH_MAX. (HWCAP2_SPARC6): Define. (HWCAP2_ONADDSUB): Likewise. (HWCAP2_ONMUL): Likewise. (HWCAP2_ONDIV): Likewise. (HWCAP2_DICTUNP): Likewise. (HWCAP2_FPCMPSHL): Likewise. (HWCAP2_RLE): Likewise. (HWCAP2_SHA3): Likewise. (OPM): Likewise. (OPMI): Likewise. (ONFCN): Likewise. (REVFCN): Likewise. (SIMM10): Likewise. opcodes/ChangeLog: 2017-05-19 Jose E. Marchesi * sparc-dis.c (MASK_V9): Include SPARC_OPCODE_ARCH_M8. (X_IMM2): Define. (compute_arch_mask): Handle bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8. (print_insn_sparc): Handle new operand types. * sparc-opc.c (MASK_M8): Define. (v6): Add MASK_M8. (v6notlet): Likewise. (v7): Likewise. (v8): Likewise. (v9): Likewise. (v9a): Likewise. (v9b): Likewise. (v9c): Likewise. (v9d): Likewise. (v9e): Likewise. (v9v): Likewise. (v9m): Likewise. (v9andleon): Likewise. (m8): Define. (HWS_VM8): Define. (HWS2_VM8): Likewise. (sparc_opcode_archs): Add entry for "m8". (sparc_opcodes): Add OSA2017 and M8 instructions dictunpack, fpcmp{ule,ugt,eq,ne,de,ur}{8,16,32}shl, fpx{ll,ra,rl}64x, ldm{sh,uh,sw,uw,x,ux}, ldm{sh,uh,sw,uw,x,ux}a, ldmf{s,d}, ldmf{s,d}a, on{add,sub,mul,div}, rdentropy, revbitsb, revbytes{h,w,x}, rle_burst, rle_length, sha3, stm{h,w,x}, stm{h,w,x}a, stmf{s,d}, stmf{s,d}a. (asi_table): New M8 ASIs ASI_CORE_COMMIT_COUNT, ASI_CORE_SELECT_COUNT, ASI_ARF_ECC_REG, ASI_ITLB_PROBE, ASI_DSFAR, ASI_DTLB_PROBE_PRIMARY, ASI_DTLB_PROBE_REAL, ASI_CORE_SELECT_COMMIT_NHT. commit 92f7d783c1038841beacaba28a5f5d740a5ccad6 Author: H.J. Lu Date: Fri May 19 08:36:06 2017 -0700 x86: Add GC testcases with property sections Verify that debug section is removed by garbage collection when there is a .note.gnu.property section. * testsuite/ld-i386/i386.exp: Run property-x86-4a and property-x86-4b. * testsuite/ld-x86-64/x86-64.exp: Likewise. * testsuite/ld-i386/property-x86-4a.d: New file. * testsuite/ld-i386/property-x86-4a.s: Likewise. * testsuite/ld-i386/property-x86-4b.d: Likewise. * testsuite/ld-i386/property-x86-4b.s: Likewise. * testsuite/ld-x86-64/property-x86-4a.d: Likewise. * testsuite/ld-x86-64/property-x86-4a.s: Likewise. * testsuite/ld-x86-64/property-x86-4b.d: Likewise. * testsuite/ld-x86-64/property-x86-4b.s: Likewise. commit ae0264a6474d777650d65da261732748126f0190 Author: Jose E. Marchesi Date: Fri May 19 06:59:41 2017 -0700 gas: fix tests call-relax and asi-bump-warn in 32-bit SPARC ELF targets Tested in targets: sparc-aout sparc-linux sparc-vxworks sparc64-linux 2017-05-19 Jose E. Marchesi * testsuite/gas/sparc/call-relax.d: Support 32-bit targets. * testsuite/gas/sparc/sparc.exp (gas_64_check): Use -64 to run asi-bump-warn. commit f4203b2b8830e66e5229b7f9d30cd29b088566b5 Author: eorg-Johann Lay Date: Fri May 19 15:06:33 2017 +0100 Update avrxmega3 linker emulation to support avrxmega2 devices with flash memory visible in the SRAM address range. PR ld/21472 ld * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000. * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]: Use RODATA_PM_OFFSET as default if not already defined. (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends. (.rodata) [RODATA_PM_OFFSET]: Put at an offset of __RODATA_PM_OFFSET__. gas * config/tc-avr.c (mcu_types): Add entries for: attiny416, attiny417, attiny816, attiny817. commit 6e7e1744e96abbf1a4229d5f269caf2cc921ec58 Author: Rainer Orth Date: Fri May 19 15:08:45 2017 +0200 Fix tui compilation with Solaris libcurses: clear define (PR tui/21482) On both mainline and the 8.0 branch, gdb compilation fails on Solaris 10 with the native libcurses like this: In file included from /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/gdb_curses.h:42: 0, from /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-data.h:2 6, from /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-disasm.c :31: /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-disasm.c: In function `CORE_A DDR tui_disassemble(gdbarch*, tui_asm_line*, CORE_ADDR, int)': /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-disasm.c:71:19: error: `class string_file' has no member named `wclear'; did you mean `clear'? gdb_dis_out.clear (); ^ /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-disasm.c:78:19: error: `class string_file' has no member named `wclear'; did you mean `clear'? gdb_dis_out.clear (); ^ make[2]: *** [Makefile:1927: tui-disasm.o] Error 1 It turned out this happens because has #define clear() wclear(stdscr) This can be avoided by defining NOMACROS, which the patch below does. ncurses potentially has a similar problem, which can be avoided by defining NCURSES_NOMACROS. PR tui/21482 * gdb_curses.h (NOMACROS): Define. (NCURSES_NOMACROS): Define. commit 7a6e7fcc77997bf7679cce4f1cfebcd57ba8af70 Author: Rainer Orth Date: Fri May 19 14:16:55 2017 +0200 Fix tui compilation with Solaris libcurses: non-const last arg to mvwaddstr (PR tui/21482) On both mainline and the 8.0 branch, gdb compilation fails on Solaris 10 with the native libcurses in gdb/tui for several instances of the same problem: /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-winsource.c: In function `void tui_erase_source_content(tui_win_info*, int)': /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-winsource.c:257:18: error: invalid conversion from `const char*' to `char*' [-fpermissive] no_src_str); ^ In file included from /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/gdb_curses.h:42:0, from /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-data.h:26, from /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/tui/tui-winsource.c:33: /vol/gcc-7/lib/gcc/sparc-sun-solaris2.10/7.1.0/include-fixed/curses.h:699:12: note: initializing argument 4 of `int mvwaddstr(WINDOW*, int, int, char*)' extern int mvwaddstr(WINDOW *, int, int, char *); ^~~~~~~~~ make[2]: *** [Makefile:1927: tui-winsource.o] Error 1 Unlike ncurses, declares extern int mvwaddstr(WINDOW *, int, int, char *); i.e. the last arg is char *, not const char *. The patch fixes this by casting the last arg to mvwaddstr to char *, as was recently done on mainline in a newterm() call (the only difference between 8.0 and mainline gdb/tui). * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr arg to char *. * tui/tui-wingeneral.c (box_win): Likewise. * tui/tui-winsource.c (tui_erase_source_content): Likewise. (tui_show_source_line): Likewise. (tui_show_exec_info_content): Likewise. commit 1933fd8ee01ad2e74a9c6341bc40f54962a8f889 Author: Vladimir Mezentsev Date: Fri May 19 03:06:19 2017 -0700 gdb: fix TYPE_CODE_ARRAY handling in sparc targets gdb has a special type (TYPE_CODE_ARRAY) to support the gcc extension (https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html). TYPE_CODE_ARRAY is handled incorrectly for both (32- and 64-bit) modes on Sparc machines. Tested on sparc64-linux-gnu and sparc-solaris (32- and 64-bit mode). 6 tests ( from gdb/testsuite/gdb.base/gnu_vector.exp) failed on sparc64-Linux and on sparc-Solaris in 32- and 64-bit mode. Now all these tests passed. gdb/testsuite/gdb.base/gnu_vector.exp has 117 different cases for small (and not small) arrays and structures. No regressions. gdb/ChangeLog: 2017-05-19 Vladimir Mezentsev * sparc-tdep.c (sparc_structure_return_p) (sparc_arg_on_registers_p): New functions. (sparc32_store_arguments): Use them. * sparc64-tdep.c (sparc64_16_byte_align_p) (sparc64_store_floating_fields, sparc64_extract_floating_fields): Handle TYPE_CODE_ARRAY. commit eb026f09eb6fcb96a5de1e655cdde041ba44affb Author: Alan Modra Date: Fri May 19 12:40:10 2017 +0930 garbage collect debug sections when no alloc sections are kept The pr20882 testcase fails on a number of targets that add attribute or note sections to object files, and the default linker script says those sections should be kept. This patch changes --gc-sections to drop debug and special sections like .comment when no SEC_ALLOC section in an object file is kept. The assumption is that debug sections are describing code and data that will become part of the final image in memory. * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep debug and special sections when no non-note alloc sections in an object are kept. commit 50e1d299ef1d21b0833c2fe1484d3cc374e6486f Author: Eli Zaretskii Date: Fri May 19 11:05:59 2017 +0300 Avoid MinGW compilation warning in readline/input.c This change was already accepted upstream in Readline. readline/ChangeLog.gdb: 2017-05-19 Eli Zaretskii * input.c [_WIN32]: Include to avoid compiler warning on MinGW. commit dd47d677f0164800ceba1ab67f6cd2add0021101 Author: Maciej W. Rozycki Date: Fri May 19 07:53:21 2017 +0100 MIPS/binutils/testsuite: Bail out right away if !ELF We have but ELF binutils tests in the MIPS subset, and non-ELF MIPS/GAS ports are gone, making a future addition of any non-ELF tests unlikely. Bail out right away then if non-ELF, consuming one level of indentation across the actual tests run. binutils/ * testsuite/binutils-all/mips/mips.exp: Bail out right away if non-ELF. commit 8038128b23576f93a56caf7779a4406a84716727 Author: GDB Administrator Date: Fri May 19 00:00:39 2017 +0000 Automatic date update in version.in commit ec8df23454873916c6b6b918967af631b268acd8 Author: Tom Tromey Date: Thu May 18 17:31:41 2017 -0600 Fix test failure with Rust 1.18 and 1.19 With Rust 1.18 and 1.19, I saw some test suite failures. They were all of the same form -- Box seems to be qualified in the output now, like: print box_some $64 = core::option::Option>::Some(0x7ffff6c21018 "\001\000") ... where the test was expecting Option>. This patch fixes the problem in a way that should work with earlier versions of Rust. gdb/testsuite/ChangeLog 2017-05-18 Tom Tromey * gdb.rust/simple.exp: Allow Box to be qualified. commit 3e3e7faebe89bfab0d245040b19fd7347d186065 Author: Thomas Preud'homme Date: Thu May 18 16:31:40 2017 +0100 Expect prompt after no FPU warning 2017-05-18 Thomas Preud'homme gdb/testsuite/ * gdb.base/float.exp: Expect GDB prompt for targets without FPU. commit 3aa2d05a728216bbb99dbb5718be9bb36429cf41 Author: Nick Clifton Date: Thu May 18 15:07:59 2017 +0100 Treat a prefix of "$SYSROOT" in the same way as "=" when parsing linker search paths. PR ld/21251 * ldfile.c (ldfile_add_library_path): If the path starts with $SYSROOT then use the sysroot as the real prefix. * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same way as =. * ldlex.l: Add $SYSROOT as allow prefix for a filename. * ld.texinfo (-L): Document that $SYSROOT acts like = when prefixing a library search path. (INPUT): Likewise. * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix tests. commit 59cc050d893d1e8c75547de950a35e809588f12f Author: Pedro Alves Date: Thu May 18 11:40:08 2017 +0100 gdb.base/fileio.c: Fix several -Wmaybe-uninitialized warnings src/gdb/testsuite/gdb.base/fileio.c: In function ‘test_write’: src/gdb/testsuite/gdb.base/fileio.c:158:5: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf ("write 1: ret = %d, errno = %d\n", ret, errno); ^ gdb/ChangeLog: 2017-05-18 Pedro Alves * gdb.base/fileio.c (test_write, test_read, test_close) (test_fstat): Don't print 'ret' in the fail path. commit c8f6abd10d62f82874e31959bf986606bd919d39 Author: Pedro Alves Date: Thu May 18 11:37:55 2017 +0100 gdb.base/fileio.c: Fix several -Wreturn-type warnings All the "test_" functions warn like: src/gdb/testsuite/gdb.base/fileio.c: In function ‘test_close’: src/gdb/testsuite/gdb.base/fileio.c:280:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Nothing looks at the return of these functions, so just make them return void. While at it, "()" is not the same as "(void)" in C - fix that too. gdb/ChangeLog: 2017-05-18 Pedro Alves * gdb.base/fileio.c (stop, test_open, test_write, test_read) (test_lseek, test_close, test_stat, test_fstat, test_isatty) (test_system, test_rename, test_unlink, test_time): Change prototypes. * gdb.base/fileio.exp (stop_msg): Adjust. commit d2a03b77450dce58f6b4f9f7fdd3c346a555bcf7 Author: Pedro Alves Date: Thu May 18 11:47:05 2017 +0100 gdb.base/fileio.exp: Remove nowarnings ... and quiet -Wnonnull in a different way. gdb/testsuite/ChangeLog: 2017-05-18 Pedro Alves * gdb.base/fileio.c (null_str): New global. (test_stat): Use it. * gdb.base/fileio.exp: Remove nowarnings. commit 9d43118ee54de3fbffea27a5a10ae11ba5ee00d0 Author: Alan Modra Date: Thu May 18 16:51:48 2017 +0930 fix changelog typo commit 535b785fb0c97220dea23a18f07baad6b5d77ae5 Author: Alan Modra Date: Thu May 18 14:47:40 2017 +0930 Don't compare boolean values against TRUE or FALSE bfd/ * arc-got.h: Don't compare boolean values against TRUE or FALSE. * elf-m10300.c: Likewise. * elf.c: Likewise. * elf32-arc.c: Likewise. * elf32-bfin.c: Likewise. * elf32-m68k.c: Likewise. * elf32-nds32.c: Likewise. * elf32-tilepro.c: Likewise. * elflink.c: Likewise. * elfnn-aarch64.c: Likewise. * elfnn-riscv.c: Likewise. * elfxx-tilegx.c: Likewise. * mach-o.c: Likewise. * peXXigen.c: Likewise. * vms-alpha.c: Likewise. * vms-lib.c: Likewise. opcodes/ * aarch64-asm.c: Don't compare boolean values against TRUE or FALSE. * aarch64-dis.c: Likewise. * aarch64-gen.c: Likewise. * aarch64-opc.c: Likewise. binutils/ * strings.c: Don't compare boolean values against TRUE or FALSE. gas/ * config/tc-aarch64.c: Don't compare booleans against TRUE or FALSE. * config/tc-hppa.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-score7.c: Likewise. ld/ * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/xtensaelf.em: Likewise. commit 087ea22225435ab5800e6c29671acab40dc6ca82 Author: Alan Modra Date: Thu May 18 14:28:17 2017 +0930 pr20882 testcase -gdwarf-sections doesn't work on targets that lack support to emit address size relative relocs. The testcase as it was avoided -gdwarf-sections doing anything by providing a non-empty .debug_line. It's better to not use -gdwarf-sections. Also, the testcase failed to match the output for 16-bit address targets like avr. PR ld/20882 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas. Allow for 16-bit address targets and match expected data fully. * testsuite/ld-gc/pr20882a.s: Delete .debug_line section. * testsuite/ld-gc/pr20882b.s: Likewise. * testsuite/ld-gc/pr20882c.s: Likewise. commit a406db9163e45ab55c3addff2ce1e61796f1bddc Author: GDB Administrator Date: Thu May 18 00:00:47 2017 +0000 Automatic date update in version.in commit c2a79cd51ba9d0823e7efc564938611958138c03 Merge: dfba29c b7c871e Author: Jan Kratochvil Date: Wed May 17 18:48:12 2017 +0200 Merge remote-tracking branch 'gdb/master' into indexcxx commit b7c871edcd83ccdc5fcd8148a7f433efd6b52255 Author: H.J. Lu Date: Wed May 17 07:57:15 2017 -0700 Mark debug sections referenced by kept debug sections If a debug section is referenced by a kept debug section, it should also be kept. Some targets, like mips, keep input files when there are some special sections, like .gnu.attributes, even if input file is unused otherwise. In this case, all debug sections are kept. The new test will fail on such targets. We can either fix those targets or XFAIL the test. bfd/ PR ld/20882 * elflink.c (elf_gc_mark_debug_section): New function. (_bfd_elf_gc_mark_extra_sections): Mark any debug sections referenced by kept debug sections. ld/ PR ld/20882 * testsuite/ld-gc/gc.exp: Run pr20882. * testsuite/ld-gc/pr20882.d: New file. * testsuite/ld-gc/pr20882a.s: Likewise. * testsuite/ld-gc/pr20882b.s: Likewise. * testsuite/ld-gc/pr20882c.s: Likewise. commit 0d5c69990c1992289f7b286600a43de4d5d44062 Author: Yao Qi Date: Wed May 17 14:46:17 2017 +0100 Add nowarnings in gdb.base/fileio.exp I see the following warning in gdb.base/fileio.c, testsuite/gdb.base/fileio.c:297:3: warning: null argument where non-null required (argument 1) [-Wnonnull] ret = stat (NULL, &st); ^ This patch adds "nowarnings" to the list passed to gdb_compile. gdb/testsuite: 2017-05-17 Yao Qi * gdb.base/fileio.exp: Pass nowarnings to gdb_compile. commit 21873064e835ffb16e92048482e34f19e6a415da Author: Yao Qi Date: Wed May 17 14:22:04 2017 +0100 Add alias command to cmd_list_element When we add alias command, we call add_alias_cmd and pass the alias name and command name. This implicitly requires the command and its prefix commands are already added to cmdlist. This may not be true, for example, add_com_alias ("tty", "set inferior-tty", class_alias, 0); "inferior-tty" command is added to setlist, but setlist may not be added to cmdlist (It depends on the order of related _initialize_XXX functions called) so that we can't find "set inferior-tty" from cmdlist. This patch fixes this problem by passing cmd_list_element of "inferior-tty" to add_alias_cmd, so that cmd_list_element of "inferior-tty" doesn't have to be reachable from cmdlist at that moment. gdb: 2017-05-17 Yao Qi * cli/cli-decode.c (add_alias_cmd): New function. * command.h (add_alias_cmd): Declare. * infcmd.c (_initialize_infcmd): Don't call add_com_alias, instead call add_alias_cmd. gdb/testsuite: 2017-05-17 Simon Marchi * gdb.base/set-inferior-tty.exp (test_set_inferior_tty): Add argument command. (top-level): Invoke test_set_inferior_tty. commit 2b351b19efc8dd36ac8a8bda005c7411536b93ec Author: Pedro Alves Date: Wed May 17 13:56:19 2017 +0100 nat_extra_makefile_frag -> nat_makefile_frag gdb/ChangeLog: 2017-05-17 Pedro Alves * Makefile.in (nat_extra_makefile_frag): Rename to ... (nat_makefile_frag): ... this. All references updated. * configure.ac: Likewise. * configure.nat: Likewise. Enhance comments. * configure: Regenerate. commit a0a110b0dd5077373c4102d1502130eb159c366b Author: Andreas Krebbel Date: Wed May 17 12:39:39 2017 +0200 S/390: Fix arch level of pckmo instruction. Fix wrong architecture level of PCKMO instruction. Committed to mainline. opcodes/ChangeLog: 2017-05-17 Andreas Krebbel * s390-opc.txt: PCKMO change arch level to z196. gas/ChangeLog: 2017-05-17 Andreas Krebbel * testsuite/gas/s390/zarch-z10.d: Remove pckmo. * testsuite/gas/s390/zarch-z10.s: Remove pckmo. * testsuite/gas/s390/zarch-z196.d: Add pckmo. * testsuite/gas/s390/zarch-z196.s: Add pckmo. commit 4ebcabb38ef8acfb6e26d2b40e00abfe10aea895 Author: GDB Administrator Date: Wed May 17 00:00:53 2017 +0000 Automatic date update in version.in commit 854062337d056ffc8b805e0d5a8c1a66b99a4076 Author: H.J. Lu Date: Tue May 16 09:09:20 2017 -0700 Fix commit 0a7d38897b9fb1ec7a064ca3347cbac3ba49e5ac commit 0a7d38897b9fb1ec7a064ca3347cbac3ba49e5ac Author: H.J. Lu Date: Tue May 16 08:52:01 2017 -0700 Run PR ld/21481 tests only if IFUNC is supported PR ld/21481 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only if IFUNC is supported by run-time. commit 91cb9803fcf6d1c7001395d80f79120ae8e6338a Author: Alan Modra Date: Tue May 16 08:43:24 2017 +0930 Allow target files access to default TC_FORCE_RELOCATION defines * write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define. (TC_FORCE_RELOCATION_LOCAL): Use it. (GENERIC_FORCE_RELOCATION_SUB_SAME): Define. (TC_FORCE_RELOCATION_SUB_SAME): Use it. * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines. * config/tc-aarch64.h: Similarly. * config/tc-avr.h: Similarly. * config/tc-cris.h: Similarly. * config/tc-i386.h: Similarly. * config/tc-i960.h: Similarly. * config/tc-ia64.h: Similarly. * config/tc-microblaze.h: Similarly. * config/tc-mips.h: Similarly. * config/tc-msp430.h: Similarly. * config/tc-nds32.h: Similarly. * config/tc-pru.h: Similarly. * config/tc-riscv.h: Similarly. * config/tc-rl78.h: Similarly. * config/tc-s390.h: Similarly. * config/tc-sh.h: Similarly. * config/tc-sh64.h: Similarly. * config/tc-sparc.h: Similarly. * config/tc-xtensa.h: Similarly. * config/tc-mn10300.h: Similarly. (GENERIC_FORCE_RELOCATION_LOCAL): Define. * config/tc-msp430.c (msp430_force_relocation_local): Modify to be addition to rather than replacement of standard TC_FORCE_RELOCATION_LOCAL. commit bc4e12ded1d4c8d589d82b2a10ade6b47f219db3 Author: Alan Modra Date: Tue May 16 07:58:14 2017 +0930 Rename non_ir_ref to non_ir_ref_regular Since the flag is now set only for regular object refs. include/ * bfdlink.h (struct bfd_link_hash_entry ): Rename to non_ir_ref_regular. bfd/ * elf-m10300.c: Rename occurrences of non_ir_ref. * elf32-arm.c: Likewise. * elf32-bfin.c: Likewise. * elf32-cr16.c: Likewise. * elf32-cris.c: Likewise. * elf32-d10v.c: Likewise. * elf32-dlx.c: Likewise. * elf32-fr30.c: Likewise. * elf32-frv.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf32-i386.c: Likewise. * elf32-iq2000.c: Likewise. * elf32-lm32.c: Likewise. * elf32-m32c.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-m68k.c: Likewise. * elf32-mcore.c: Likewise. * elf32-metag.c: Likewise. * elf32-microblaze.c: Likewise. * elf32-moxie.c: Likewise. * elf32-msp430.c: Likewise. * elf32-mt.c: Likewise. * elf32-nios2.c: Likewise. * elf32-or1k.c: Likewise. * elf32-ppc.c: Likewise. * elf32-rl78.c: Likewise. * elf32-s390.c: Likewise. * elf32-score.c: Likewise. * elf32-score7.c: Likewise. * elf32-sh.c: Likewise. * elf32-tic6x.c: Likewise. * elf32-tilepro.c: Likewise. * elf32-v850.c: Likewise. * elf32-vax.c: Likewise. * elf32-xstormy16.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-ia64-vms.c: Likewise. * elf64-mmix.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elf64-sh64.c: Likewise. * elf64-x86-64.c: Likewise. * elflink.c: Likewise. * elfnn-aarch64.c: Likewise. * elfnn-ia64.c: Likewise. * elfnn-riscv.c: Likewise. * elfxx-mips.c: Likewise. * elfxx-sparc.c: Likewise. * elfxx-tilegx.c: Likewise. * linker.c: Likewise. ld/ * plugin.c: Rename occurrences of non_ir_ref. commit 4070765b1a1640ff8f43483cd9ee06727f658dfe Author: Alan Modra Date: Tue May 16 07:56:41 2017 +0930 non_ir_ref_dynamic dynamic_ref_after_ir_def is a little odd compared to other symbol flags in that as the name suggests, it is set only for certain references after a definition. It turns out that setting a flag for any non-ir reference from a dynamic object can be used to solve the problem for which this flag was invented, which I think is a cleaner. This patch does that, and sets non_ir_ref only for regular object references. include/ * bfdlink.h (struct bfd_link_hash_entry): Update non_ir_ref comment. Rename dynamic_ref_after_ir_def to non_ir_ref_dynamic. ld/ * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic. (plugin_notice): Set non_ir_ref for references from regular objects, non_ir_ref_dynamic for references from dynamic objects. bfd/ * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. * elflink.c (elf_link_add_object_symbols): Update to use non_ir_ref_dynamic. (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to non_ir_ref. * linker.c (_bfd_generic_link_add_one_symbol): Likewise. commit 8cc2a9796024f2dd472985cc8ed1c65a85ec9a35 Author: GDB Administrator Date: Tue May 16 00:00:31 2017 +0000 Automatic date update in version.in commit 0c38a3d1942067100580e9673bcf0cbe27f3d6e8 Author: Eric Christopher Date: Mon May 15 15:59:52 2017 -0700 2017-05-15 Eric Christopher * layout.cc (Layout::segment_precedes): Add a case for testing pointer equality when determining which segment precedes another. commit d8cbc93b65ace8a36002839d5ee944efff59d643 Author: Jeff Law Date: Mon May 15 10:48:41 2017 -0600 2017-05-15 Jeff Law * readelf.c (display_arc_attribute): Avoid implicit fallthru. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 127 ++++++++++++ bfd/aoutx.h | 4 +- bfd/arc-got.h | 6 +- bfd/archures.c | 7 +- bfd/bfd-in2.h | 7 +- bfd/cpu-sparc.c | 30 +++ bfd/elf-m10300.c | 4 +- bfd/elf.c | 2 +- bfd/elf32-arc.c | 22 +- bfd/elf32-arm.c | 2 +- bfd/elf32-bfin.c | 6 +- bfd/elf32-cr16.c | 2 +- bfd/elf32-cris.c | 2 +- bfd/elf32-d10v.c | 2 +- bfd/elf32-dlx.c | 2 +- bfd/elf32-fr30.c | 2 +- bfd/elf32-frv.c | 2 +- bfd/elf32-hppa.c | 2 +- bfd/elf32-i370.c | 2 +- bfd/elf32-i386.c | 2 +- bfd/elf32-iq2000.c | 2 +- bfd/elf32-lm32.c | 2 +- bfd/elf32-m32c.c | 2 +- bfd/elf32-m32r.c | 2 +- bfd/elf32-m68hc1x.c | 2 +- bfd/elf32-m68k.c | 4 +- bfd/elf32-mcore.c | 2 +- bfd/elf32-metag.c | 2 +- bfd/elf32-microblaze.c | 2 +- bfd/elf32-moxie.c | 2 +- bfd/elf32-msp430.c | 2 +- bfd/elf32-mt.c | 2 +- bfd/elf32-nds32.c | 8 +- bfd/elf32-nios2.c | 2 +- bfd/elf32-or1k.c | 2 +- bfd/elf32-ppc.c | 2 +- bfd/elf32-rl78.c | 2 +- bfd/elf32-s390.c | 2 +- bfd/elf32-score.c | 2 +- bfd/elf32-score7.c | 2 +- bfd/elf32-sh.c | 2 +- bfd/elf32-sparc.c | 1 + bfd/elf32-tic6x.c | 2 +- bfd/elf32-tilepro.c | 4 +- bfd/elf32-v850.c | 2 +- bfd/elf32-vax.c | 2 +- bfd/elf32-xstormy16.c | 2 +- bfd/elf32-xtensa.c | 2 +- bfd/elf64-alpha.c | 2 +- bfd/elf64-hppa.c | 2 +- bfd/elf64-ia64-vms.c | 2 +- bfd/elf64-mips.c | 82 +------- bfd/elf64-mmix.c | 2 +- bfd/elf64-ppc.c | 7 +- bfd/elf64-s390.c | 2 +- bfd/elf64-sh64.c | 2 +- bfd/elf64-x86-64.c | 2 +- bfd/elflink.c | 111 +++++++---- bfd/elfnn-aarch64.c | 8 +- bfd/elfnn-ia64.c | 2 +- bfd/elfnn-riscv.c | 4 +- bfd/elfxx-mips.c | 2 +- bfd/elfxx-sparc.c | 19 ++- bfd/elfxx-tilegx.c | 4 +- bfd/linker.c | 3 +- bfd/mach-o.c | 2 +- bfd/peXXigen.c | 18 +- bfd/version.h | 2 +- bfd/vms-alpha.c | 32 ++-- bfd/vms-lib.c | 18 +- binutils/ChangeLog | 39 ++++ binutils/NEWS | 3 + binutils/objcopy.c | 7 - binutils/readelf.c | 7 +- binutils/strings.c | 4 +- .../testsuite/binutils-all/mips/mips-note-2-n32.d | 7 + .../testsuite/binutils-all/mips/mips-note-2-n64.d | 7 + binutils/testsuite/binutils-all/mips/mips-note-2.d | 7 + .../testsuite/binutils-all/mips/mips-note-2r-n32.d | 11 + .../testsuite/binutils-all/mips/mips-note-2r-n64.d | 15 ++ .../testsuite/binutils-all/mips/mips-note-2r.d | 11 + binutils/testsuite/binutils-all/mips/mips.exp | 45 +++-- binutils/testsuite/lib/utils-lib.exp | 14 ++- gas/ChangeLog | 86 ++++++++ gas/config/tc-aarch64.c | 10 +- gas/config/tc-aarch64.h | 5 +- gas/config/tc-arm.h | 10 +- gas/config/tc-avr.c | 4 + gas/config/tc-avr.h | 3 +- gas/config/tc-cris.h | 5 +- gas/config/tc-hppa.c | 2 +- gas/config/tc-i386.h | 5 +- gas/config/tc-i960.h | 7 +- gas/config/tc-ia64.h | 5 +- gas/config/tc-microblaze.h | 11 +- gas/config/tc-mips.c | 2 +- gas/config/tc-mips.h | 3 +- gas/config/tc-mn10300.h | 18 ++- gas/config/tc-msp430.c | 5 +- gas/config/tc-msp430.h | 9 +- gas/config/tc-nds32.h | 3 +- gas/config/tc-pru.h | 2 +- gas/config/tc-riscv.h | 4 +- gas/config/tc-rl78.h | 4 +- gas/config/tc-s390.h | 3 +- gas/config/tc-score7.c | 2 +- gas/config/tc-sh.h | 7 +- gas/config/tc-sh64.h | 7 +- gas/config/tc-sparc.c | 76 +++++++- gas/config/tc-sparc.h | 5 +- gas/config/tc-xtensa.h | 3 +- gas/doc/c-sparc.texi | 28 ++- gas/testsuite/gas/s390/zarch-z10.d | 1 - gas/testsuite/gas/s390/zarch-z10.s | 1 - gas/testsuite/gas/s390/zarch-z196.d | 1 + gas/testsuite/gas/s390/zarch-z196.s | 1 + gas/testsuite/gas/sparc/call-relax.d | 2 +- gas/testsuite/gas/sparc/fpcmpshl-diag.l | 6 + gas/testsuite/gas/sparc/fpcmpshl-diag.s | 7 + gas/testsuite/gas/sparc/fpcmpshl.d | 27 +++ gas/testsuite/gas/sparc/fpcmpshl.s | 19 ++ gas/testsuite/gas/sparc/ldm-stm-diag.l | 3 + gas/testsuite/gas/sparc/ldm-stm-diag.s | 4 + gas/testsuite/gas/sparc/ldm-stm.d | 70 +++++++ gas/testsuite/gas/sparc/ldm-stm.s | 63 ++++++ gas/testsuite/gas/sparc/ldmf-stmf-diag.l | 11 + gas/testsuite/gas/sparc/ldmf-stmf-diag.s | 12 + gas/testsuite/gas/sparc/ldmf-stmf.d | 37 ++++ gas/testsuite/gas/sparc/ldmf-stmf.s | 31 +++ gas/testsuite/gas/sparc/on-diag.l | 5 + gas/testsuite/gas/sparc/on-diag.s | 6 + gas/testsuite/gas/sparc/on.d | 13 ++ gas/testsuite/gas/sparc/on.s | 6 + gas/testsuite/gas/sparc/rdasr.d | 3 +- gas/testsuite/gas/sparc/rdasr.s | 1 + gas/testsuite/gas/sparc/rle.d | 12 + gas/testsuite/gas/sparc/rle.s | 4 + gas/testsuite/gas/sparc/sparc.exp | 13 +- gas/testsuite/gas/sparc/sparc6-diag.l | 7 + gas/testsuite/gas/sparc/sparc6-diag.s | 8 + gas/testsuite/gas/sparc/sparc6.d | 18 ++ gas/testsuite/gas/sparc/sparc6.s | 11 + gas/write.c | 10 +- gdb/ChangeLog | 64 ++++++ gdb/Makefile.in | 2 +- gdb/ada-lang.c | 1 + gdb/breakpoint.c | 11 +- gdb/c-lang.c | 14 ++ gdb/c-lang.h | 3 + gdb/cli/cli-decode.c | 29 ++- gdb/command.h | 6 + gdb/configure | 4 +- gdb/configure.ac | 4 +- gdb/configure.nat | 11 +- gdb/d-lang.c | 1 + gdb/f-lang.c | 1 + gdb/gdb_curses.h | 7 + gdb/go-lang.c | 1 + gdb/infcmd.c | 5 +- gdb/language.c | 4 + gdb/language.h | 6 + gdb/m2-lang.c | 1 + gdb/objc-lang.c | 1 + gdb/opencl-lang.c | 1 + gdb/p-lang.c | 2 + gdb/rust-lang.c | 15 ++ gdb/sparc-tdep.c | 72 +++++-- gdb/sparc64-tdep.c | 43 ++++- gdb/testsuite/ChangeLog | 43 ++++ gdb/testsuite/gdb.base/fileio.c | 66 +++--- gdb/testsuite/gdb.base/fileio.exp | 2 +- gdb/testsuite/gdb.base/float.exp | 10 +- gdb/testsuite/gdb.base/set-inferior-tty.exp | 10 +- gdb/testsuite/gdb.rust/simple.exp | 8 +- gdb/testsuite/gdb.rust/watch.exp | 35 +++ gdb/testsuite/gdb.rust/watch.rs | 24 +++ gdb/tui/tui-windata.c | 2 +- gdb/tui/tui-wingeneral.c | 2 +- gdb/tui/tui-winsource.c | 7 +- gold/ChangeLog | 6 + gold/layout.cc | 5 + include/ChangeLog | 36 ++++ include/bfdlink.h | 12 +- include/elf/sparc.h | 9 + include/opcode/sparc.h | 25 ++- ld/ChangeLog | 80 +++++++ ld/emulparams/avrxmega3.sh | 1 + ld/emultempl/elf32.em | 2 +- ld/emultempl/pe.em | 2 +- ld/emultempl/pep.em | 2 +- ld/emultempl/xtensaelf.em | 2 +- ld/ld.texinfo | 11 +- ld/ldfile.c | 2 + ld/ldlang.c | 7 +- ld/ldlex.l | 5 + ld/plugin.c | 67 ++++--- ld/scripttempl/avr.sc | 51 +++++- ld/testsuite/ld-gc/gc.exp | 1 + ld/testsuite/ld-gc/pr20882.d | 9 + ld/testsuite/ld-gc/pr20882a.s | 8 + ld/testsuite/ld-gc/pr20882b.s | 5 + ld/testsuite/ld-gc/pr20882c.s | 5 + ld/testsuite/ld-i386/i386.exp | 2 + ld/testsuite/ld-i386/property-x86-4a.d | 10 + ld/testsuite/ld-i386/property-x86-4a.s | 5 + ld/testsuite/ld-i386/property-x86-4b.d | 10 + ld/testsuite/ld-i386/property-x86-4b.s | 20 ++ ld/testsuite/ld-scripts/sysroot-prefix.exp | 9 +- ld/testsuite/ld-x86-64/property-x86-4a.d | 10 + ld/testsuite/ld-x86-64/property-x86-4a.s | 5 + ld/testsuite/ld-x86-64/property-x86-4b.d | 10 + ld/testsuite/ld-x86-64/property-x86-4b.s | 20 ++ ld/testsuite/ld-x86-64/x86-64.exp | 42 +++-- opcodes/ChangeLog | 44 ++++ opcodes/aarch64-asm.c | 5 +- opcodes/aarch64-dis.c | 8 +- opcodes/aarch64-gen.c | 6 +- opcodes/aarch64-opc.c | 8 +- opcodes/s390-opc.txt | 2 +- opcodes/sparc-dis.c | 26 +++- opcodes/sparc-opc.c | 217 ++++++++++++++++++-- readline/ChangeLog.gdb | 5 + readline/input.c | 1 + 223 files changed, 2332 insertions(+), 556 deletions(-) create mode 100644 binutils/testsuite/binutils-all/mips/mips-note-2-n32.d create mode 100644 binutils/testsuite/binutils-all/mips/mips-note-2-n64.d create mode 100644 binutils/testsuite/binutils-all/mips/mips-note-2.d create mode 100644 binutils/testsuite/binutils-all/mips/mips-note-2r-n32.d create mode 100644 binutils/testsuite/binutils-all/mips/mips-note-2r-n64.d create mode 100644 binutils/testsuite/binutils-all/mips/mips-note-2r.d create mode 100644 gas/testsuite/gas/sparc/fpcmpshl-diag.l create mode 100644 gas/testsuite/gas/sparc/fpcmpshl-diag.s create mode 100644 gas/testsuite/gas/sparc/fpcmpshl.d create mode 100644 gas/testsuite/gas/sparc/fpcmpshl.s create mode 100644 gas/testsuite/gas/sparc/ldm-stm-diag.l create mode 100644 gas/testsuite/gas/sparc/ldm-stm-diag.s create mode 100644 gas/testsuite/gas/sparc/ldm-stm.d create mode 100644 gas/testsuite/gas/sparc/ldm-stm.s create mode 100644 gas/testsuite/gas/sparc/ldmf-stmf-diag.l create mode 100644 gas/testsuite/gas/sparc/ldmf-stmf-diag.s create mode 100644 gas/testsuite/gas/sparc/ldmf-stmf.d create mode 100644 gas/testsuite/gas/sparc/ldmf-stmf.s create mode 100644 gas/testsuite/gas/sparc/on-diag.l create mode 100644 gas/testsuite/gas/sparc/on-diag.s create mode 100644 gas/testsuite/gas/sparc/on.d create mode 100644 gas/testsuite/gas/sparc/on.s create mode 100644 gas/testsuite/gas/sparc/rle.d create mode 100644 gas/testsuite/gas/sparc/rle.s create mode 100644 gas/testsuite/gas/sparc/sparc6-diag.l create mode 100644 gas/testsuite/gas/sparc/sparc6-diag.s create mode 100644 gas/testsuite/gas/sparc/sparc6.d create mode 100644 gas/testsuite/gas/sparc/sparc6.s create mode 100644 gdb/testsuite/gdb.rust/watch.exp create mode 100644 gdb/testsuite/gdb.rust/watch.rs create mode 100644 ld/testsuite/ld-gc/pr20882.d create mode 100644 ld/testsuite/ld-gc/pr20882a.s create mode 100644 ld/testsuite/ld-gc/pr20882b.s create mode 100644 ld/testsuite/ld-gc/pr20882c.s create mode 100644 ld/testsuite/ld-i386/property-x86-4a.d create mode 100644 ld/testsuite/ld-i386/property-x86-4a.s create mode 100644 ld/testsuite/ld-i386/property-x86-4b.d create mode 100644 ld/testsuite/ld-i386/property-x86-4b.s create mode 100644 ld/testsuite/ld-x86-64/property-x86-4a.d create mode 100644 ld/testsuite/ld-x86-64/property-x86-4a.s create mode 100644 ld/testsuite/ld-x86-64/property-x86-4b.d create mode 100644 ld/testsuite/ld-x86-64/property-x86-4b.s First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 52c192d..38462fe 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,130 @@ +2017-05-19 Maciej W. Rozycki + + * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype + and function. + (mips_elf64_canonicalize_dynamic_reloc): Likewise. + (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the + actual number of internal relocations retrieved. Adjust + function description. + (bfd_elf64_canonicalize_reloc): Remove macro. + (bfd_elf64_canonicalize_dynamic_reloc): Likewise. + +2017-05-19 Jose E. Marchesi + + * archures.c (bfd_mach_sparc_v9m8): Define. + (bfd_mach_sparc_v8plusm8): Likewise. + (bfd_mach_sparc_v9_p): Adjust to M8. + (bfd_mach_sparc_64bit_p): Likewise. + * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and + bfd_mach_sparc_v8plusm8. + * bfd-in2.h: Regenerated. + * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and + sparc:v8plusm8. + * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle + bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw + capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and + SHA3. + * elf32-sparc.c (elf32_sparc_final_write_processing): Handle + bfd_mach_sparc_v8plusm8. + +2017-05-19 Alan Modra + + * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep + debug and special sections when no non-note alloc sections in an + object are kept. + +2017-05-18 Alan Modra + + * arc-got.h: Don't compare boolean values against TRUE or FALSE. + * elf-m10300.c: Likewise. + * elf.c: Likewise. + * elf32-arc.c: Likewise. + * elf32-bfin.c: Likewise. + * elf32-m68k.c: Likewise. + * elf32-nds32.c: Likewise. + * elf32-tilepro.c: Likewise. + * elflink.c: Likewise. + * elfnn-aarch64.c: Likewise. + * elfnn-riscv.c: Likewise. + * elfxx-tilegx.c: Likewise. + * mach-o.c: Likewise. + * peXXigen.c: Likewise. + * vms-alpha.c: Likewise. + * vms-lib.c: Likewise. + +2017-05-17 H.J. Lu + + PR ld/20882 + * elflink.c (elf_gc_mark_debug_section): New function. + (_bfd_elf_gc_mark_extra_sections): Mark any debug sections + referenced by kept debug sections. + +2017-05-16 Alan Modra + + * elf-m10300.c: Rename occurrences of non_ir_ref. + * elf32-arm.c: Likewise. + * elf32-bfin.c: Likewise. + * elf32-cr16.c: Likewise. + * elf32-cris.c: Likewise. + * elf32-d10v.c: Likewise. + * elf32-dlx.c: Likewise. + * elf32-fr30.c: Likewise. + * elf32-frv.c: Likewise. + * elf32-hppa.c: Likewise. + * elf32-i370.c: Likewise. + * elf32-i386.c: Likewise. + * elf32-iq2000.c: Likewise. + * elf32-lm32.c: Likewise. + * elf32-m32c.c: Likewise. + * elf32-m32r.c: Likewise. + * elf32-m68hc1x.c: Likewise. + * elf32-m68k.c: Likewise. + * elf32-mcore.c: Likewise. + * elf32-metag.c: Likewise. + * elf32-microblaze.c: Likewise. + * elf32-moxie.c: Likewise. + * elf32-msp430.c: Likewise. + * elf32-mt.c: Likewise. + * elf32-nios2.c: Likewise. + * elf32-or1k.c: Likewise. + * elf32-ppc.c: Likewise. + * elf32-rl78.c: Likewise. + * elf32-s390.c: Likewise. + * elf32-score.c: Likewise. + * elf32-score7.c: Likewise. + * elf32-sh.c: Likewise. + * elf32-tic6x.c: Likewise. + * elf32-tilepro.c: Likewise. + * elf32-v850.c: Likewise. + * elf32-vax.c: Likewise. + * elf32-xstormy16.c: Likewise. + * elf32-xtensa.c: Likewise. + * elf64-alpha.c: Likewise. + * elf64-hppa.c: Likewise. + * elf64-ia64-vms.c: Likewise. + * elf64-mmix.c: Likewise. + * elf64-ppc.c: Likewise. + * elf64-s390.c: Likewise. + * elf64-sh64.c: Likewise. + * elf64-x86-64.c: Likewise. + * elflink.c: Likewise. + * elfnn-aarch64.c: Likewise. + * elfnn-ia64.c: Likewise. + * elfnn-riscv.c: Likewise. + * elfxx-mips.c: Likewise. + * elfxx-sparc.c: Likewise. + * elfxx-tilegx.c: Likewise. + * linker.c: Likewise. + +2017-05-16 Alan Modra + + * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. + * elflink.c (elf_link_add_object_symbols): Update to use + non_ir_ref_dynamic. + (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to + non_ir_ref. + * linker.c (_bfd_generic_link_add_one_symbol): Likewise. + 2017-05-15 Maciej W. Rozycki * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 9a5f7ce..3d38fda 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -738,6 +738,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch, || machine == bfd_mach_sparc_v8pluse || machine == bfd_mach_sparc_v8plusv || machine == bfd_mach_sparc_v8plusm + || machine == bfd_mach_sparc_v8plusm8 || machine == bfd_mach_sparc_v9 || machine == bfd_mach_sparc_v9a || machine == bfd_mach_sparc_v9b @@ -745,7 +746,8 @@ NAME (aout, machine_type) (enum bfd_architecture arch, || machine == bfd_mach_sparc_v9d || machine == bfd_mach_sparc_v9e || machine == bfd_mach_sparc_v9v - || machine == bfd_mach_sparc_v9m) + || machine == bfd_mach_sparc_v9m + || machine == bfd_mach_sparc_v9m8) arch_flags = M_SPARC; else if (machine == bfd_mach_sparc_sparclet) arch_flags = M_SPARCLET; diff --git a/bfd/arc-got.h b/bfd/arc-got.h index abf3815..b8a6d15 100644 --- a/bfd/arc-got.h +++ b/bfd/arc-got.h @@ -318,7 +318,7 @@ relocate_fix_got_relocs_for_got_info (struct got_entry ** list_p, } - if (entry && entry->processed == FALSE) + if (entry && !entry->processed) { switch (entry->type) { @@ -427,7 +427,7 @@ create_got_dynrelocs_for_single_entry (struct got_entry *list, bfd_vma got_offset = list->offset; if (list->type == GOT_NORMAL - && list->created_dyn_relocation == FALSE) + && !list->created_dyn_relocation) { if (bfd_link_pic (info) && h != NULL @@ -446,7 +446,7 @@ create_got_dynrelocs_for_single_entry (struct got_entry *list, list->created_dyn_relocation = TRUE; } else if (list->existing_entries != TLS_GOT_NONE - && list->created_dyn_relocation == FALSE) + && !list->created_dyn_relocation) { /* TODO TLS: This is not called for local symbols. In order to correctly implement TLS, this should also diff --git a/bfd/archures.c b/bfd/archures.c index c6e7152..2fefec5 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -147,9 +147,11 @@ DESCRIPTION .#define bfd_mach_sparc_v9v 18 {* with OSA2011 and T4 and IMA and FJMAU add'ns. *} .#define bfd_mach_sparc_v8plusm 19 {* with OSA2015 and M7 add'ns. *} .#define bfd_mach_sparc_v9m 20 {* with OSA2015 and M7 add'ns. *} +.#define bfd_mach_sparc_v8plusm8 21 {* with OSA2017 and M8 add'ns. *} +.#define bfd_mach_sparc_v9m8 22 {* with OSA2017 and M8 add'ns. *} .{* Nonzero if MACH has the v9 instruction set. *} .#define bfd_mach_sparc_v9_p(mach) \ -. ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m \ +. ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m8 \ . && (mach) != bfd_mach_sparc_sparclite_le) .{* Nonzero if MACH is a 64 bit sparc architecture. *} .#define bfd_mach_sparc_64bit_p(mach) \ @@ -159,7 +161,8 @@ DESCRIPTION . && (mach) != bfd_mach_sparc_v8plusd \ . && (mach) != bfd_mach_sparc_v8pluse \ . && (mach) != bfd_mach_sparc_v8plusv \ -. && (mach) != bfd_mach_sparc_v8plusm) +. && (mach) != bfd_mach_sparc_v8plusm \ +. && (mach) != bfd_mach_sparc_v8plusm8) . bfd_arch_spu, {* PowerPC SPU *} .#define bfd_mach_spu 256 . bfd_arch_mips, {* MIPS Rxxxx *} diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 8617881..ae2fceb 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -2004,9 +2004,11 @@ enum bfd_architecture #define bfd_mach_sparc_v9v 18 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */ #define bfd_mach_sparc_v8plusm 19 /* with OSA2015 and M7 add'ns. */ #define bfd_mach_sparc_v9m 20 /* with OSA2015 and M7 add'ns. */ +#define bfd_mach_sparc_v8plusm8 21 /* with OSA2017 and M8 add'ns. */ +#define bfd_mach_sparc_v9m8 22 /* with OSA2017 and M8 add'ns. */ /* Nonzero if MACH has the v9 instruction set. */ #define bfd_mach_sparc_v9_p(mach) \ - ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m \ + ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m8 \ && (mach) != bfd_mach_sparc_sparclite_le) /* Nonzero if MACH is a 64 bit sparc architecture. */ #define bfd_mach_sparc_64bit_p(mach) \ @@ -2016,7 +2018,8 @@ enum bfd_architecture && (mach) != bfd_mach_sparc_v8plusd \ && (mach) != bfd_mach_sparc_v8pluse \ && (mach) != bfd_mach_sparc_v8plusv \ - && (mach) != bfd_mach_sparc_v8plusm) + && (mach) != bfd_mach_sparc_v8plusm \ + && (mach) != bfd_mach_sparc_v8plusm8) bfd_arch_spu, /* PowerPC SPU */ #define bfd_mach_spu 256 bfd_arch_mips, /* MIPS Rxxxx */ diff --git a/bfd/cpu-sparc.c b/bfd/cpu-sparc.c index ff843ec..a6f54e2 100644 --- a/bfd/cpu-sparc.c +++ b/bfd/cpu-sparc.c @@ -307,6 +307,36 @@ static const bfd_arch_info_type arch_info_struct[] = bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, + &arch_info_struct[19], + }, + { + 32, /* bits in a word */ + 32, /* bits in an address */ + 8, /* bits in a byte */ + bfd_arch_sparc, + bfd_mach_sparc_v8plusm8, + "sparc", + "sparc:v8plusm8", + 3, + FALSE, + bfd_default_compatible, + bfd_default_scan, + bfd_arch_default_fill, + &arch_info_struct[20], + }, + { + 64, /* bits in a word */ + 64, /* bits in an address */ + 8, /* bits in a byte */ + bfd_arch_sparc, + bfd_mach_sparc_v9m8, + "sparc", + "sparc:v9m8", + 3, + FALSE, + bfd_default_compatible, + bfd_default_scan, + bfd_arch_default_fill, 0, } }; diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index f9d8089..e59f083 100644 --- a/bfd/elf-m10300.c +++ b/bfd/elf-m10300.c @@ -1094,7 +1094,7 @@ mn10300_elf_check_relocs (bfd *abfd, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } r_type = ELF32_R_TYPE (rel->r_info); @@ -1520,7 +1520,7 @@ mn10300_elf_final_link_relocate (reloc_howto_type *howto, /* Do not generate relocs when an R_MN10300_32 has been used with an R_MN10300_SYM_DIFF to compute a difference of two symbols. */ - && is_sym_diff_reloc == FALSE + && !is_sym_diff_reloc /* Also, do not generate a reloc when the symbol associated with the R_MN10300_32 reloc is absolute - there is no need for a run time computation in this case. */ diff --git a/bfd/elf.c b/bfd/elf.c index a08e0f8..863bd61 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -7358,7 +7358,7 @@ copy_private_bfd_data (bfd *ibfd, bfd *obfd) for (section = obfd->sections; section != NULL; section = section->next) { - if (section->segment_mark == FALSE) + if (!section->segment_mark) goto rewrite; else section->segment_mark = FALSE; diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index b00207e..3e99cab 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1259,7 +1259,7 @@ arc_do_relocation (bfd_byte * contents, struct elf_link_hash_table *htab ATTRIBUTE_UNUSED = elf_hash_table (info); bfd_reloc_status_type flag; - if (reloc_data.should_relocate == FALSE) + if (!reloc_data.should_relocate) return bfd_reloc_ok; switch (reloc_data.howto->size) @@ -1464,9 +1464,9 @@ elf_arc_relocate_section (bfd * output_bfd, h2 = elf_link_hash_lookup (elf_hash_table (info), "__SDATA_BEGIN__", FALSE, FALSE, TRUE); - if (reloc_data.sdata_begin_symbol_vma_set == FALSE - && h2 != NULL && h2->root.type != bfd_link_hash_undefined - && h2->root.u.def.section->output_section != NULL) + if (!reloc_data.sdata_begin_symbol_vma_set + && h2 != NULL && h2->root.type != bfd_link_hash_undefined + && h2->root.u.def.section->output_section != NULL) /* TODO: Verify this condition. */ { reloc_data.sdata_begin_symbol_vma = @@ -1784,7 +1784,7 @@ elf_arc_relocate_section (bfd * output_bfd, bfd_elf32_swap_reloca_out (output_bfd, &outrel, loc); - if (relocate == FALSE) + if (!relocate) continue; } break; @@ -1793,7 +1793,7 @@ elf_arc_relocate_section (bfd * output_bfd, } if (is_reloc_SDA_relative (howto) - && (reloc_data.sdata_begin_symbol_vma_set == FALSE)) + && !reloc_data.sdata_begin_symbol_vma_set) { _bfd_error_handler ("Error: Linker symbol __SDATA_BEGIN__ not found"); @@ -1907,8 +1907,8 @@ elf_arc_check_relocs (bfd * abfd, howto = arc_elf_howto (r_type); if (dynobj == NULL - && (is_reloc_for_GOT (howto) == TRUE - || is_reloc_for_TLS (howto) == TRUE)) + && (is_reloc_for_GOT (howto) + || is_reloc_for_TLS (howto))) { dynobj = elf_hash_table (info)->dynobj = abfd; if (! _bfd_elf_create_got_section (abfd, info)) @@ -1985,7 +1985,7 @@ elf_arc_check_relocs (bfd * abfd, break; } - if (is_reloc_for_PLT (howto) == TRUE) + if (is_reloc_for_PLT (howto)) { if (h == NULL) continue; @@ -1994,8 +1994,8 @@ elf_arc_check_relocs (bfd * abfd, } /* Add info to the symbol got_entry_list. */ - if (is_reloc_for_GOT (howto) == TRUE - || is_reloc_for_TLS (howto) == TRUE) + if (is_reloc_for_GOT (howto) + || is_reloc_for_TLS (howto)) { arc_fill_got_info_for_reloc ( arc_got_entry_type_for_reloc (howto), diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 23a02c0..1725c22 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -14556,7 +14556,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } } diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index ff1bcc6..b3e09bd 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -329,11 +329,11 @@ bfin_bfd_reloc (bfd *abfd, /* Here the variable relocation holds the final address of the symbol we are relocating against, plus any addend. */ - if (howto->pc_relative == TRUE) + if (howto->pc_relative) { relocation -= input_section->output_section->vma + input_section->output_offset; - if (howto->pcrel_offset == TRUE) + if (howto->pcrel_offset) relocation -= reloc_entry->address; } @@ -1191,7 +1191,7 @@ bfin_check_relocs (bfd * abfd, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } switch (ELF32_R_TYPE (rel->r_info)) diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c index 92aa0c8..c36388e 100644 --- a/bfd/elf32-cr16.c +++ b/bfd/elf32-cr16.c @@ -738,7 +738,7 @@ cr16_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } /* Some relocs require a global offset table. */ diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index d4bbceb..83c4101 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -3178,7 +3178,7 @@ cris_elf_check_relocs (bfd *abfd, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } r_type = ELF32_R_TYPE (rel->r_info); diff --git a/bfd/elf32-d10v.c b/bfd/elf32-d10v.c index 6b6fb34..d284d4f 100644 --- a/bfd/elf32-d10v.c +++ b/bfd/elf32-d10v.c @@ -294,7 +294,7 @@ elf32_d10v_check_relocs (bfd *abfd, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } switch (ELF32_R_TYPE (rel->r_info)) diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c index 965d866..b12d24a 100644 --- a/bfd/elf32-dlx.c +++ b/bfd/elf32-dlx.c @@ -454,7 +454,7 @@ elf32_dlx_check_relocs (bfd *abfd, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } switch (ELF32_R_TYPE (rel->r_info)) diff --git a/bfd/elf32-fr30.c b/bfd/elf32-fr30.c index f668074..94070d8 100644 --- a/bfd/elf32-fr30.c +++ b/bfd/elf32-fr30.c @@ -673,7 +673,7 @@ fr30_elf_check_relocs (bfd *abfd, /* PR15323, ref flags aren't set for references in the same object. */ - h->root.non_ir_ref = 1; + h->root.non_ir_ref_regular = 1; } switch (ELF32_R_TYPE (rel->r_info)) diff --git a/bfd/elf32-frv.c b/bfd/elf32-frv.c index d4b7727..ef609ff 100644 hooks/post-receive -- Repository for Project Archer.