From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6695 invoked by alias); 18 Jul 2012 14:22:11 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 6612 invoked by uid 9514); 18 Jul 2012 14:22:06 -0000 Date: Wed, 18 Jul 2012 14:22:00 -0000 Message-ID: <20120718142205.6597.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-pmuldoon-python-backtrace: Merge remote-tracking branch 'gdb/master' into archer-pmuldoon-python-backtrace X-Git-Refname: refs/heads/archer-pmuldoon-python-backtrace X-Git-Reftype: branch X-Git-Oldrev: 625ff3032449b7f1cd3a9672080c666710cb5c31 X-Git-Newrev: 11314e6057e82edeeefe595ad8b66c50c519ee03 X-SW-Source: 2012-q3/txt/msg00011.txt.bz2 List-Id: The branch, archer-pmuldoon-python-backtrace has been updated via 11314e6057e82edeeefe595ad8b66c50c519ee03 (commit) via e773b5be894e961a0be10ffab4812fbc02d7df64 (commit) via 9a3c0b4983b8cffb87cfa7fbcb0059114517033d (commit) via e049f24a52cd459972b6060014fa5ed21d33ed9e (commit) via 925febbfb5bb78a018833f62ef784795f85a36d2 (commit) via bcbd703c1a68b9ef4e39bef4e39e232534bd03cf (commit) via 76b5f0b227c602e6a9738dbaffd1d2ec4d1e9970 (commit) via 556a47bd7d184962b457f61edd2c76168f75dab1 (commit) via 86be0f83e343ab0c5a8978e1c2647dc529847328 (commit) via 01ce3a692823961e1d0c901a74e9c1352e5c9401 (commit) via 10f121e6da0388675557d2882790971bf8a6d6e5 (commit) via a4127fbd742128ef4046eaa9ef15feb1816c8e20 (commit) via 4c2f203820805a13812c6613108101b37de3783b (commit) via da79849a1fdebe4acd5826ee80f266630a78a81a (commit) via 2aecfcfb12d079ee7d417e1d8ab37f480a251be6 (commit) via 3f7f19a13a8b11a1798aff0e4b4948a74e386c53 (commit) via 1e1953c1b5ad02447caae50cea8d900d972b09ed (commit) via 307ab13bb4d932ab867035d3c11624a4389c089c (commit) via 65b24245f234c112a522109233d035d1f28bd17d (commit) via 8ddc4c764e23fa72f01690bd0de0ba7694306567 (commit) via 75df43022808b299158b992c93a93694ed90f0cc (commit) via e7d508eaeccfcb3172a27d34a4afe9c1dae31d17 (commit) via a0e61176644329d4ca23dccf223e9a346375be2b (commit) via 93e5ea26d9fc60860ed7d5cf031dc7c32386f6c3 (commit) via 90e4f2e649b0759a19df0753dc754525c14bb49c (commit) via e1d240ac9b01931332c65dcf4cd0f36193a58f60 (commit) via b226be4b6cebe7e8b1279e9189fc6575c66b2c4a (commit) via f217eeeccec257c7293df0d931d48455866f5e03 (commit) via ee7ef5029755bfe4d04aad419f7746a8e78bd942 (commit) via 011fa91759d13aee50be87c7cfdc094cc9313dbc (commit) via b72619321cccf06390c47644d3c0ae06f4821852 (commit) via ea471acc0bd09a86b0708d285d732a2507d3fc01 (commit) via a30d1ca8a850c69dd8550c3205d4f32b18daffe5 (commit) via 92c85feb2c1117dc98e978ec4c80c1d8b4d1d3b2 (commit) via e6cfb5ce395d983baf86336d7b5bbeafc71e3c65 (commit) via 40e8295298f1d07e308140b14bbc97d77c3b35a9 (commit) via 8a0bbe594b34fbfc4d0d9a6edf251e59b8238e63 (commit) via ca76a20f439bceaa32083d2a19865a72564a9de7 (commit) via 7587460aca7e52373570644df38e978282979427 (commit) via 50b5346418833eac48d99371a56faca51607bed7 (commit) via f1d044a76ed3e7379f21c5c9894ce2e4293853f3 (commit) via 42163101cc4e909cb228ab09ea84de30a8ccee02 (commit) via b64053ceea1dd325a94b4a15c4124cfb9c78ac72 (commit) via 91a4aed888bd04457820707bd2c9d6a5ed84e257 (commit) from 625ff3032449b7f1cd3a9672080c666710cb5c31 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 11314e6057e82edeeefe595ad8b66c50c519ee03 Merge: 625ff30 e773b5b Author: Phil Muldoon Date: Wed Jul 18 15:20:25 2012 +0100 Merge remote-tracking branch 'gdb/master' into archer-pmuldoon-python-backtrace Conflicts: gdb/stack.c commit e773b5be894e961a0be10ffab4812fbc02d7df64 Author: xguo Date: Wed Jul 18 04:36:15 2012 +0000 2012-07-18 Terry Guo PR 14329 * defs.h (GDB_MI_MSG_WIDTH): New. * ser_base (ser_base_read_error_fd): New function. (do_ser_base_readchar): Poll error file descriptor as well as standard output. (generic_readchar): Refactor error handling. commit 9a3c0b4983b8cffb87cfa7fbcb0059114517033d Author: Joel Brobecker Date: Wed Jul 18 04:02:10 2012 +0000 Update the NEWS file following the creation of the GDB 7.5 branch. gdb/ChangeLog: * NEWS: Create a new section for the next release branch. Rename the section of the current branch, now that it has been cut. commit e049f24a52cd459972b6060014fa5ed21d33ed9e Author: gdbadmin Date: Wed Jul 18 03:39:03 2012 +0000 Record GDB 7.5 branch creation. Bump version number commit 925febbfb5bb78a018833f62ef784795f85a36d2 Author: Keith Seitz Date: Wed Jul 18 03:35:29 2012 +0000 * linespec.c (linespec_parse_line_offset): Make parameter const. commit bcbd703c1a68b9ef4e39bef4e39e232534bd03cf Author: gdbadmin Date: Wed Jul 18 00:00:32 2012 +0000 *** empty log message *** commit 76b5f0b227c602e6a9738dbaffd1d2ec4d1e9970 Author: Alan Modra Date: Wed Jul 18 00:00:05 2012 +0000 daily update commit 556a47bd7d184962b457f61edd2c76168f75dab1 Author: Alan Modra Date: Tue Jul 17 00:00:04 2012 +0000 daily update commit 86be0f83e343ab0c5a8978e1c2647dc529847328 Author: gdbadmin Date: Tue Jul 17 00:00:02 2012 +0000 *** empty log message *** commit 01ce3a692823961e1d0c901a74e9c1352e5c9401 Author: Jan Kratochvil Date: Mon Jul 16 19:17:53 2012 +0000 gdb/testsuite/ * gdb.base/store.exp (check_set): Import gdb_prompt. (continue to wack_${t}): Make it to conditional gdb_test_multiple. (${prefix}; next ${t}): Hide its name, handle it conditionally now. commit 10f121e6da0388675557d2882790971bf8a6d6e5 Author: Jan Kratochvil Date: Mon Jul 16 19:15:35 2012 +0000 gdb/ PR 11914 * f-valprint.c (info_common_command): New variable frame_id. Reinitialize FI form FRAME_ID after each print_variable_and_value. * printcmd.c (print_variable_and_value): Extend function comment. Add comment for invalidated FRAME. * stack.c (backtrace_command_1): New variable frame_id. Reinitialize FI form FRAME_ID after each print_frame_local_vars. (struct print_variable_and_value_data): Change frame to frame_id. (do_print_variable_and_value): New variable frame, initialize it from p->frame_id. Add comment for invalidated FRAME. (print_frame_local_vars, print_frame_arg_vars): New function comment. Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment for invalidated FRAME. gdb/testsuite/ PR 11914 * gdb.python/py-prettyprint.c (eval_func, eval_sub): New. (main): Call eval_sub. * gdb.python/py-prettyprint.exp: (python execfile ('py-prettyprint.py')): Move it earlier. New breakpoint for eval-break. (continue to breakpoint: eval-break, info locals): New test. (python execfile ('py-prettyprint.py')): Move it from here. * gdb.python/py-prettyprint.py (class pp_eval_type): New. (register_pretty_printers): Register pp_eval_type. commit a4127fbd742128ef4046eaa9ef15feb1816c8e20 Author: Marc Khouzam Date: Mon Jul 16 19:07:16 2012 +0000 2012-07-16 Marc Khouzam Pedro Alves * linux-nat.c (linux_nat_detach): Don't unregister from the event loop. commit 4c2f203820805a13812c6613108101b37de3783b Author: Tom Tromey Date: Mon Jul 16 17:51:47 2012 +0000 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare. commit da79849a1fdebe4acd5826ee80f266630a78a81a Author: H.J. Lu Date: Mon Jul 16 12:58:28 2012 +0000 Implement RDRSEED, ADX and PRFCHW instructions gas/ * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives. * doc/c-i386.texi: Document the new directives. gas/testsuite/ * gas/i386/i386.exp: Run adx, rdseed and prefetchw tests. * gas/i386/x86-64-arch-2.s: Use prefetchw as 3dnow and Prfchw tests. * gas/i386/arch-10.s: Likewise. * gas/i386/arch-10-1.l: Changed correspondingly. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/arch-10.d: Likewise. * gas/i386/arch-10-lzcnt.d: Likewise. * gas/i386/x86-64-arch-2.d: Likewise. * gas/i386/x86-64-arch-2-lzcnt.d: Likewise. * gas/i386/ilp32/x86-64-arch-2.d: Likewise. * gas/i386/arch-10-prefetchw.d: New file. * gas/i386/x86-64-arch-2-prefetchw.d: Likewise. * gas/i386/rdseed.s: Likewise. * gas/i386/rdseed.d: Likewise. * gas/i386/rdseed-intel.d: Likewise. * gas/i386/adx.s: Likewise. * gas/i386/adx.d: Likewise. * gas/i386/adx-intel.d: Likewise. * gas/i386/x86-64-rdseed.s: Likewise. * gas/i386/x86-64-rdseed.d: Likewise. * gas/i386/x86-64-rdseed-intel.d: Likewise. * gas/i386/x86-64-adx.s: Likewise. * gas/i386/x86-64-adx.d: Likewise. * gas/i386/x86-64-adx-intel.d: Likewise. opcodes/ * i386-dis.c (PREFIX_0F38F6): New. (prefix_table): Add adcx, adox instructions. (three_byte_table): Use PREFIX_0F38F6. (mod_table): Add rdseed instruction. * i386-gen.c (cpu_flag_init): Add CpuADX, CpuRDSEED, CpuPRFCHW. (cpu_flags): Likewise. * i386-opc.h: Add CpuADX, CpuRDSEED, CpuPRFCHW. (i386_cpu_flags): Add fields cpurdseed, cpuadx, cpuprfchw. * i386-opc.tbl: Add instrcutions adcx, adox, rdseed. Extend prefetchw. * i386-tbl.h: Regenerate. * i386-init.h: Likewise. commit 2aecfcfb12d079ee7d417e1d8ab37f480a251be6 Author: Doug Evans Date: Mon Jul 16 03:22:40 2012 +0000 * dwarf2read.c (stmt_list_hash): New struct. (type_unit_group): Embed "per_cu" member, remove pointer. New union member "t", move member "tus" into it, all uses updated. New member "hash", replaces member "line_offset, all uses updated. (quick_file_names): Replace member "offset" with "hash", all uses updated. (hash_stmt_list_entry, eq_stmt_list_entry): New functions. (hash_file_name_entry, eq_file_name_entry): Call them. (hash_type_unit_group, eq_type_unit_group): Ditto. (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one. (dw2_get_file_names_reader): Fix file name table calculation for TUs. (dw2_get_file_names): Update. (create_type_unit_group): Replace "per_cu" arg with "cu". All callers updated. Fix "quick" (.gdb_index) handling. (get_type_unit_group): Replace "per_cu" arg with "cu". All callers updated. (build_type_unit_groups): Don't reset tu_stats. commit 3f7f19a13a8b11a1798aff0e4b4948a74e386c53 Author: Doug Evans Date: Mon Jul 16 03:06:59 2012 +0000 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size", "tab_cur_size". Change member "tab" to be a htab_t. (create_filename_seen_cache): Update. (clear_filename_seen_cache, delete_filename_seen_cache): Update. (filename_seen): Update. commit 1e1953c1b5ad02447caae50cea8d900d972b09ed Author: gdbadmin Date: Mon Jul 16 00:00:32 2012 +0000 *** empty log message *** commit 307ab13bb4d932ab867035d3c11624a4389c089c Author: Alan Modra Date: Mon Jul 16 00:00:05 2012 +0000 daily update commit 65b24245f234c112a522109233d035d1f28bd17d Author: Jan Kratochvil Date: Sun Jul 15 08:34:55 2012 +0000 gdb/testsuite/ Fix a testcase regression by me. * gdb.dwarf2/fission-reread.S: Fix two DW_FORM_data8 to be DW_FORM_data4. commit 8ddc4c764e23fa72f01690bd0de0ba7694306567 Author: gdbadmin Date: Sun Jul 15 00:00:33 2012 +0000 *** empty log message *** commit 75df43022808b299158b992c93a93694ed90f0cc Author: Alan Modra Date: Sun Jul 15 00:00:04 2012 +0000 daily update ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 132 + bfd/aix386-core.c | 30 +- bfd/archive.c | 9 +- bfd/bfd-in2.h | 1 + bfd/cache.c | 8 +- bfd/cisco-core.c | 42 +- bfd/coff-alpha.c | 184 +- bfd/coff-apollo.c | 13 +- bfd/coff-aux.c | 34 +- bfd/coff-h8300.c | 41 +- bfd/coff-h8500.c | 40 +- bfd/coff-i386.c | 75 +- bfd/coff-i960.c | 104 +- bfd/coff-ia64.c | 14 +- bfd/coff-m68k.c | 106 +- bfd/coff-m88k.c | 43 +- bfd/coff-mcore.c | 73 +- bfd/coff-mips.c | 227 +- bfd/coff-or32.c | 75 +- bfd/coff-ppc.c | 316 +- bfd/coff-rs6000.c | 104 +- bfd/coff-sh.c | 453 +- bfd/coff-sparc.c | 38 +- bfd/coff-stgo32.c | 124 +- bfd/coff-tic30.c | 33 +- bfd/coff-tic4x.c | 85 +- bfd/coff-tic54x.c | 110 +- bfd/coff-tic80.c | 122 +- bfd/coff-w65.c | 64 +- bfd/cofflink.c | 2 +- bfd/cpu-arc.c | 7 +- bfd/cpu-cris.c | 9 +- bfd/cpu-h8500.c | 9 +- bfd/cpu-i960.c | 25 +- bfd/cpu-msp430.c | 40 +- bfd/cpu-ns32k.c | 106 +- bfd/cpu-powerpc.c | 8 +- bfd/cpu-rs6000.c | 10 +- bfd/cpu-tic4x.c | 12 +- bfd/cpu-w65.c | 10 +- bfd/ecoff.c | 6 +- bfd/ecofflink.c | 558 +- bfd/elf-m10200.c | 277 +- bfd/elf-s390-common.c | 243 + bfd/elf32-bfin.c | 76 +- bfd/elf32-cris.c | 187 +- bfd/elf32-crx.c | 4 +- bfd/elf32-fr30.c | 108 +- bfd/elf32-frv.c | 228 +- bfd/elf32-h8300.c | 11 +- bfd/elf32-i960.c | 4 +- bfd/elf32-m32c.c | 12 +- bfd/elf32-m68hc11.c | 2 +- bfd/elf32-m68hc12.c | 9 +- bfd/elf32-m68hc1x.c | 2 +- bfd/elf32-m68k.c | 116 +- bfd/elf32-mcore.c | 2 +- bfd/elf32-rl78.c | 10 +- bfd/elf32-rx.c | 4 +- bfd/elf32-s390.c | 1066 ++- bfd/elf32-vax.c | 12 +- bfd/elf64-alpha.c | 41 +- bfd/elf64-mmix.c | 229 +- bfd/elf64-s390.c | 852 ++- bfd/elf64-sparc.c | 14 +- bfd/elfnn-ia64.c | 44 +- bfd/elfxx-mips.c | 4 +- bfd/elfxx-sparc.c | 21 +- bfd/hash.c | 4 +- bfd/hp300hpux.c | 108 +- bfd/hppabsd-core.c | 61 +- bfd/hpux-core.c | 4 +- bfd/i386dynix.c | 12 +- bfd/i386linux.c | 102 +- bfd/i386lynx.c | 109 +- bfd/i386mach3.c | 10 +- bfd/i386msdos.c | 5 +- bfd/i386os9k.c | 6 +- bfd/irix-core.c | 10 +- bfd/libbfd.h | 1 + bfd/lynx-core.c | 22 +- bfd/m68klinux.c | 101 +- bfd/mach-o.h | 2 +- bfd/mipsbsd.c | 90 +- bfd/netbsd-core.c | 4 +- bfd/nlm32-i386.c | 4 +- bfd/osf-core.c | 46 +- bfd/pc532-mach.c | 8 +- bfd/pef.c | 7 +- bfd/ppcboot.c | 99 +- bfd/ptrace-core.c | 43 +- bfd/reloc.c | 5 + bfd/reloc16.c | 47 +- bfd/sco5-core.c | 40 +- bfd/som.h | 4 +- bfd/sparclinux.c | 96 +- bfd/sparclynx.c | 27 +- bfd/ticoff.h | 15 +- bfd/trad-core.c | 33 +- bfd/version.h | 2 +- bfd/vms-lib.c | 2 +- bfd/xsym.h | 2 +- gdb/ChangeLog | 126 + gdb/NEWS | 4 +- gdb/buildsym.c | 120 +- gdb/buildsym.h | 9 + gdb/defs.h | 3 + gdb/doc/ChangeLog | 13 + gdb/doc/gdbint.texinfo | 16 +- gdb/dwarf2loc.c | 6 + gdb/dwarf2read.c | 244 +- gdb/f-valprint.c | 13 + gdb/jv-typeprint.c | 3 - gdb/linespec.c | 2 +- gdb/linux-nat.c | 7 +- gdb/printcmd.c | 8 +- gdb/psymtab.c | 5 + gdb/ser-base.c | 113 +- gdb/stack.c | 52 +- gdb/symtab.c | 162 +- gdb/testsuite/ChangeLog | 82 + gdb/testsuite/gdb.base/store.exp | 19 +- gdb/testsuite/gdb.dwarf2/dup-psym.exp | 16 +- gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp | 16 +- gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 16 +- gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 18 +- gdb/testsuite/gdb.dwarf2/dw2-const.exp | 13 +- gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp | 16 +- gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 16 +- gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 16 +- .../gdb.dwarf2/dw2-linkage-name-trust.exp | 11 +- gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S | 108 + .../{dw2-const.exp => dw2-minsym-in-cu.exp} | 26 +- gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 16 +- gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp | 12 +- gdb/testsuite/gdb.dwarf2/dw2-restore.exp | 9 +- gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 16 +- gdb/testsuite/gdb.dwarf2/fission-reread.S | 4 +- gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 16 +- gdb/testsuite/gdb.python/py-prettyprint.c | 18 + gdb/testsuite/gdb.python/py-prettyprint.exp | 13 +- gdb/testsuite/gdb.python/py-prettyprint.py | 10 + gdb/testsuite/gdb.reverse/break-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/consecutive-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/finish-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/i386-precsave.exp | 7 +- .../gdb.reverse/machinestate-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/sigall-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/solib-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/step-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/until-precsave.exp | 7 +- gdb/testsuite/gdb.reverse/watch-precsave.exp | 7 +- gdb/testsuite/gdb.trace/disconnected-tracing.exp | 2 +- gdb/testsuite/lib/gdb.exp | 69 +- gdb/version.in | 2 +- include/ChangeLog | 9 + include/elf/s390.h | 1 + include/filenames.h | 6 + libiberty/ChangeLog | 4 + libiberty/filename_cmp.c | 49 + opcodes/ChangeLog | 15 + opcodes/i386-dis.c | 12 +- opcodes/i386-gen.c | 9 + opcodes/i386-init.h | 243 +- opcodes/i386-opc.h | 9 + opcodes/i386-opc.tbl | 7 +- opcodes/i386-tbl.h | 8070 +++++++++++++------- 167 files changed, 10790 insertions(+), 7391 deletions(-) create mode 100644 bfd/elf-s390-common.c create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S copy gdb/testsuite/gdb.dwarf2/{dw2-const.exp => dw2-minsym-in-cu.exp} (61%) First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 91b4793..da9e6a2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,135 @@ +2012-07-13 Andreas Krebbel + + * elf64-s390.c: Include elf-s390-common.c. + (R_390_IRELATIVE): New reloc. + (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE. + (RELA_ENTRY_SIZE): New macro. + (elf_s390_link_hash_entry): New fields ifunc_resolver_address and + *ifunc_resolver_section. + (struct plt_entry): New struct. + (struct elf_s390_obj_tdata): New field local_plt. + (elf_s390_local_plt): New macro. + (struct elf_s390_link_hash_table): New field irelifunc. + (ELF64): New macro. + (link_hash_newfunc): Initialize new fields. + (elf_s390_check_relocs): Handle IFUNC symbols. + (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC + symbols. + (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for + IFUNC symbols. + (elf_s390_size_dynamic_sections): Handle IFUNC symbols. + (elf_s390_relocate_section): Likewise. + (elf_s390_finish_dynamic_symbol): Likewise. + (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols. + (elf_s390_finish_ifunc_symbol): New function. + (elf_s390_gc_sweep_hook): Handle local plt entries. + (elf_backend_add_symbol_hook): Define. + * elf32-s390.c: See elf64-s390.c changes. + * elf-s390-common.c: New file. + * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field. + * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for + BFD_RELOC_390_IRELATIVE. + * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation. + +2012-07-13 Nick Clifton + + * aix386-core.c: Remove use of PTR and PARAMS macros. + * archive.c: Likewise. + * cache.c: Likewise. + * cisco-core.c: Likewise. + * coff-alpha.c: Likewise. + * coff-apollo.c: Likewise. + * coff-aux.c: Likewise. + * coff-h8300.c: Likewise. + * coff-h8500.c: Likewise. + * coff-i386.c: Likewise. + * coff-i960.c: Likewise. + * coff-ia64.c: Likewise. + * coff-m68k.c: Likewise. + * coff-m88k.c: Likewise. + * coff-mcore.c: Likewise. + * coff-mips.c: Likewise. + * coff-or32.c: Likewise. + * coff-ppc.c: Likewise. + * coff-rs6000.c: Likewise. + * coff-sh.c: Likewise. + * coff-sparc.c: Likewise. + * coff-stgo32.c: Likewise. + * coff-tic30.c: Likewise. + * coff-tic4x.c: Likewise. + * coff-tic54x.c: Likewise. + * coff-tic80.c: Likewise. + * coff-w65.c: Likewise. + * cofflink.c: Likewise. + * cpu-arc.c: Likewise. + * cpu-cris.c: Likewise. + * cpu-h8500.c: Likewise. + * cpu-i960.c: Likewise. + * cpu-msp430.c: Likewise. + * cpu-ns32k.c: Likewise. + * cpu-powerpc.c: Likewise. + * cpu-rs6000.c: Likewise. + * cpu-tic4x.c: Likewise. + * cpu-w65.c: Likewise. + * ecoff.c: Likewise. + * ecofflink.c: Likewise. + * elf-m10200.c: Likewise. + * elf32-bfin.c: Likewise. + * elf32-cris.c: Likewise. + * elf32-crx.c: Likewise. + * elf32-fr30.c: Likewise. + * elf32-frv.c: Likewise. + * elf32-h8300.c: Likewise. + * elf32-i960.c: Likewise. + * elf32-m32c.c: Likewise. + * elf32-m68hc11.c: Likewise. + * elf32-m68hc12.c: Likewise. + * elf32-m68hc1x.c: Likewise. + * elf32-m68k.c: Likewise. + * elf32-mcore.c: Likewise. + * elf32-rl78.c: Likewise. + * elf32-rx.c: Likewise. + * elf32-s390.c: Likewise. + * elf32-vax.c: Likewise. + * elf64-alpha.c: Likewise. + * elf64-mmix.c: Likewise. + * elf64-s390.c: Likewise. + * elf64-sparc.c: Likewise. + * elfnn-ia64.c: Likewise. + * elfxx-mips.c: Likewise. + * elfxx-sparc.c: Likewise. + * hash.c: Likewise. + * hp300hpux.c: Likewise. + * hppabsd-core.c: Likewise. + * hpux-core.c: Likewise. + * i386dynix.c: Likewise. + * i386linux.c: Likewise. + * i386lynx.c: Likewise. + * i386mach3.c: Likewise. + * i386msdos.c: Likewise. + * i386os9k.c: Likewise. + * irix-core.c: Likewise. + * lynx-core.c: Likewise. + * m68klinux.c: Likewise. + * mach-o.h: Likewise. + * mipsbsd.c: Likewise. + * netbsd-core.c: Likewise. + * nlm32-i386.c: Likewise. + * osf-core.c: Likewise. + * pc532-mach.c: Likewise. + * pef.c: Likewise. + * ppcboot.c: Likewise. + * ptrace-core.c: Likewise. + * reloc16.c: Likewise. + * sco5-core.c: Likewise. + * som.h: Likewise. + * sparclinux.c: Likewise. + * sparclynx.c: Likewise. + * ticoff.h: Likewise. + * trad-core.c: Likewise. + * vms-lib.c: Likewise. + * xsym.h: Likewise. + 2012-07-09 Alan Modra PR ld/14323 diff --git a/bfd/aix386-core.c b/bfd/aix386-core.c index 121d623..947ab80 100644 --- a/bfd/aix386-core.c +++ b/bfd/aix386-core.c @@ -2,7 +2,7 @@ This was based on trad-core.c, which was written by John Gilmore of Cygnus Support. Copyright 1988, 1989, 1991, 1992, 1993, 1994, 1996, 1998, 1999, 2000, - 2001, 2002, 2004, 2005, 2006, 2007, 2010, 2011 + 2001, 2002, 2004, 2005, 2006, 2007, 2010, 2011, 2012 Free Software Foundation, Inc. Written by Minh Tran-Le . Converted to back end form by Ian Lance Taylor . @@ -59,32 +59,31 @@ (((bfd)->tdata.trad_core_data)->reg2_section) /* These are stored in the bfd's tdata. */ -struct trad_core_struct { +struct trad_core_struct +{ struct corehdr *hdr; /* core file header */ asection *reg_section; asection *reg2_section; asection *sections[MAX_CORE_SEGS]; }; -static void swap_abort PARAMS ((void)); - static const bfd_target * -aix386_core_file_p (abfd) - bfd *abfd; +aix386_core_file_p (bfd *abfd) { int i, n; unsigned char longbuf[4]; /* Raw bytes of various header fields */ bfd_size_type core_size = sizeof (struct corehdr); bfd_size_type amt; struct corehdr *core; - struct mergem { + struct mergem + { struct trad_core_struct coredata; struct corehdr internal_core; } *mergem; flagword flags; amt = sizeof (longbuf); - if (bfd_bread ((PTR) longbuf, amt, abfd) != amt) + if (bfd_bread (longbuf, amt, abfd) != amt) { if (bfd_get_error () != bfd_error_system_call) bfd_set_error (bfd_error_wrong_format); @@ -104,7 +103,7 @@ aix386_core_file_p (abfd) core = &mergem->internal_core; - if ((bfd_bread ((PTR) core, core_size, abfd)) != core_size) + if ((bfd_bread (core, core_size, abfd)) != core_size) { if (bfd_get_error () != bfd_error_system_call) bfd_set_error (bfd_error_wrong_format); @@ -196,15 +195,13 @@ aix386_core_file_p (abfd) } static char * -aix386_core_file_failing_command (abfd) - bfd *abfd; +aix386_core_file_failing_command (bfd *abfd) { return core_hdr (abfd)->cd_comm; } static int -aix386_core_file_failing_signal (abfd) - bfd *abfd; +aix386_core_file_failing_signal (bfd *abfd) { return core_hdr (abfd)->cd_cursig; } @@ -216,7 +213,7 @@ aix386_core_file_failing_signal (abfd) /* If somebody calls any byte-swapping routines, shoot them. */ static void -swap_abort () +swap_abort (void) { /* This way doesn't require any declaration for ANSI to fuck up. */ abort (); @@ -229,7 +226,8 @@ swap_abort () #define NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort) #define NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort) -const bfd_target aix386_core_vec = { +const bfd_target aix386_core_vec = +{ "aix386-core", bfd_target_unknown_flavour, BFD_ENDIAN_BIG, /* target byte order */ @@ -269,5 +267,5 @@ const bfd_target aix386_core_vec = { NULL, - (PTR) 0 + NULL }; diff --git a/bfd/archive.c b/bfd/archive.c index f56e99e..fe57755 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -147,7 +147,8 @@ extern int errno; it's generally short enough to search linearly. Note that the pointers here point to the front of the ar_hdr, not to the front of the contents! */ -struct ar_cache { +struct ar_cache +{ file_ptr ptr; bfd *arbfd; }; @@ -168,6 +169,7 @@ _bfd_ar_spacepad (char *p, size_t n, const char *fmt, long val) { static char buf[20]; size_t len; + snprintf (buf, sizeof (buf), fmt, val); len = strlen (buf); if (len < n) @@ -296,6 +298,7 @@ _bfd_look_for_bfd_in_cache (bfd *arch_bfd, file_ptr filepos) { htab_t hash_table = bfd_ardata (arch_bfd)->cache; struct ar_cache m; + m.ptr = filepos; if (hash_table) @@ -311,7 +314,7 @@ _bfd_look_for_bfd_in_cache (bfd *arch_bfd, file_ptr filepos) } static hashval_t -hash_file_ptr (const PTR p) +hash_file_ptr (const void * p) { return (hashval_t) (((struct ar_cache *) p)->ptr); } @@ -319,7 +322,7 @@ hash_file_ptr (const PTR p) /* Returns non-zero if P1 and P2 are equal. */ static int -eq_file_ptr (const PTR p1, const PTR p2) +eq_file_ptr (const void * p1, const void * p2) { struct ar_cache *arc1 = (struct ar_cache *) p1; struct ar_cache *arc2 = (struct ar_cache *) p2; diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 11f3e49..c1c5e90 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -4293,6 +4293,7 @@ in .byte hlo8(symbol) */ BFD_RELOC_390_GOT20, BFD_RELOC_390_GOTPLT20, BFD_RELOC_390_TLS_GOTIE20, + BFD_RELOC_390_IRELATIVE, /* Score relocations Low 16 bit for load/store */ diff --git a/bfd/cache.c b/bfd/cache.c index 3842f51..574d8b2 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -563,15 +563,15 @@ bfd_open_file (bfd *abfd) { case read_direction: case no_direction: - abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_RB); + abfd->iostream = real_fopen (abfd->filename, FOPEN_RB); break; case both_direction: case write_direction: if (abfd->opened_once) { - abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_RUB); + abfd->iostream = real_fopen (abfd->filename, FOPEN_RUB); if (abfd->iostream == NULL) - abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_WUB); + abfd->iostream = real_fopen (abfd->filename, FOPEN_WUB); } else { @@ -601,7 +601,7 @@ bfd_open_file (bfd *abfd) if (stat (abfd->filename, &s) == 0 && s.st_size != 0) unlink_if_ordinary (abfd->filename); #endif - abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_WUB); + abfd->iostream = real_fopen (abfd->filename, FOPEN_WUB); abfd->opened_once = TRUE; } break; diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c index 40eaca9..7155a63 100644 --- a/bfd/cisco-core.c +++ b/bfd/cisco-core.c @@ -1,6 +1,6 @@ /* BFD back-end for CISCO crash dumps. Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, - 2010, 2011 + 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -38,7 +38,8 @@ # define SIGBUS 10 #endif -int crash_info_locs[] = { +int crash_info_locs[] = +{ 0x0250, /* mips, ppc, x86, i960 */ 0x0400, /* m68k, mips, x86, i960 */ 0x0FFC, /* m68k, mips, ppc, x86, i960 */ @@ -50,13 +51,15 @@ int crash_info_locs[] = { #define CRASH_MAGIC 0xdead1234 #define MASK_ADDR(x) ((x) & 0x0fffffff) /* Mask crash info address */ -typedef enum { - CRASH_REASON_NOTCRASHED = 0, - CRASH_REASON_EXCEPTION = 1, - CRASH_REASON_CORRUPT = 2, +typedef enum +{ + CRASH_REASON_NOTCRASHED = 0, + CRASH_REASON_EXCEPTION = 1, + CRASH_REASON_CORRUPT = 2, } crashreason; -typedef struct { +typedef struct +{ char magic[4]; /* Magic number */ char version[4]; /* Version number */ char reason[4]; /* Crash reason */ @@ -73,10 +76,6 @@ struct cisco_core_struct int sig; }; -static const bfd_target *cisco_core_file_validate PARAMS ((bfd *, int)); -static const bfd_target *cisco_core_file_p PARAMS ((bfd *)); -char *cisco_core_file_failing_command PARAMS ((bfd *)); -int cisco_core_file_failing_signal PARAMS ((bfd *)); #define cisco_core_file_matches_executable_p generic_core_file_matches_executable_p #define cisco_core_file_pid _bfd_nocore_core_file_pid @@ -84,9 +83,7 @@ int cisco_core_file_failing_signal PARAMS ((bfd *)); CRASH_INFO_LOC. */ static const bfd_target * -cisco_core_file_validate (abfd, crash_info_loc) - bfd *abfd; - int crash_info_loc; +cisco_core_file_validate (bfd *abfd, int crash_info_loc) { char buf[4]; unsigned int crashinfo_offset; @@ -292,8 +289,7 @@ cisco_core_file_validate (abfd, crash_info_loc) } static const bfd_target * -cisco_core_file_p (abfd) - bfd *abfd; +cisco_core_file_p (bfd *abfd) { int *crash_info_locp; const bfd_target *target = NULL; @@ -308,15 +304,13 @@ cisco_core_file_p (abfd) } char * -cisco_core_file_failing_command (abfd) - bfd *abfd ATTRIBUTE_UNUSED; +cisco_core_file_failing_command (bfd *abfd ATTRIBUTE_UNUSED) { return NULL; } int -cisco_core_file_failing_signal (abfd) - bfd *abfd ATTRIBUTE_UNUSED; +cisco_core_file_failing_signal (bfd *abfd ATTRIBUTE_UNUSED) { return abfd->tdata.cisco_core_data->sig; } @@ -324,7 +318,7 @@ cisco_core_file_failing_signal (abfd) extern const bfd_target cisco_core_little_vec; const bfd_target cisco_core_big_vec = - { +{ "cisco-ios-core-big", bfd_target_unknown_flavour, BFD_ENDIAN_BIG, /* target byte order */ @@ -371,11 +365,11 @@ const bfd_target cisco_core_big_vec = & cisco_core_little_vec, - (PTR) 0 /* backend_data */ + NULL /* backend_data */ }; const bfd_target cisco_core_little_vec = - { +{ "cisco-ios-core-little", bfd_target_unknown_flavour, BFD_ENDIAN_LITTLE, /* target byte order */ @@ -422,5 +416,5 @@ const bfd_target cisco_core_little_vec = &cisco_core_big_vec, - (PTR) 0 /* backend_data */ + NULL /* backend_data */ }; diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c index 4466e4d..62e5c9c 100644 --- a/bfd/coff-alpha.c +++ b/bfd/coff-alpha.c @@ -1,6 +1,6 @@ /* BFD back-end for ALPHA Extended-Coff files. Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 + 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. Modified from coff-mips.c by Steve Chamberlain and Ian Lance Taylor . @@ -37,40 +37,7 @@ /* Prototypes for static functions. */ -static const bfd_target *alpha_ecoff_object_p - PARAMS ((bfd *)); -static bfd_boolean alpha_ecoff_bad_format_hook - PARAMS ((bfd *abfd, PTR filehdr)); -static PTR alpha_ecoff_mkobject_hook - PARAMS ((bfd *, PTR filehdr, PTR aouthdr)); -static void alpha_ecoff_swap_reloc_in - PARAMS ((bfd *, PTR, struct internal_reloc *)); -static void alpha_ecoff_swap_reloc_out - PARAMS ((bfd *, const struct internal_reloc *, PTR)); -static void alpha_adjust_reloc_in - PARAMS ((bfd *, const struct internal_reloc *, arelent *)); -static void alpha_adjust_reloc_out - PARAMS ((bfd *, const arelent *, struct internal_reloc *)); -static reloc_howto_type *alpha_bfd_reloc_type_lookup - PARAMS ((bfd *, bfd_reloc_code_real_type)); -static bfd_byte *alpha_ecoff_get_relocated_section_contents - PARAMS ((bfd *abfd, struct bfd_link_info *, struct bfd_link_order *, - bfd_byte *data, bfd_boolean relocatable, asymbol **symbols)); -static bfd_vma alpha_convert_external_reloc - PARAMS ((bfd *, struct bfd_link_info *, bfd *, struct external_reloc *, - struct ecoff_link_hash_entry *)); -static bfd_boolean alpha_relocate_section - PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, PTR)); hooks/post-receive -- Repository for Project Archer.