From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25500 invoked by alias); 16 Sep 2010 20:49:40 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 25375 invoked by uid 9851); 16 Sep 2010 20:49:38 -0000 Date: Thu, 16 Sep 2010 20:49:00 -0000 Message-ID: <20100916204937.25359.qmail@sourceware.org> From: ratmice@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote branch 'gdb/master' X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 61f0884b46ba2d3f8775995ec5433328a6d2e5cd X-Git-Newrev: cf7b7b38fd5f32865f0c91d1b6f929c08e04ff0a X-SW-Source: 2010-q3/txt/msg00103.txt.bz2 List-Id: The branch, master has been updated via cf7b7b38fd5f32865f0c91d1b6f929c08e04ff0a (commit) via e884cc5b62f170280dd49a35793bb516d95e7d8d (commit) via 6ab8c51073a44168a14e41f7c5d590096d1e595d (commit) via 7ec6b44ca25a6d438e2d7e0afed2c60dc3c4a6e7 (commit) via b286d112086a57f79a8f99f35603ad8d1ec941e4 (commit) via 97b83d6b602057bc8f7a19deb9f73ca79bc360ac (commit) via 6b2534a30ca06e71cce484bce81b81deca7fb961 (commit) via cf7740d1f850789e09a5721f5346b0c728afb0e6 (commit) via a5ca68f1382731e7116470550bf72ea41b0ad29c (commit) via 562fabbaa40fe9e601eddc2e0ab3c8cc615cf9a3 (commit) via 8e041785876903fcba2a5b910364355418e20080 (commit) via 9952a7464b8327d03c12dd338e95abff0f020675 (commit) via 2b79a82a5aeff8a7bff82c4b87cf0cfc93f65fef (commit) via 7928c19c95e1b231d54b54a9d7f1561351a896d4 (commit) via 2b30eb2c73bd6e3e90395810f7cec50eab0e3924 (commit) via c150a650f5dca644a1429021bc1383a41729a21a (commit) via 7af29a1c682299ffdbc0fe45bdf3e8cb452ca40b (commit) via 95043b5295b1c6a3d9ddae522c555abb5a9eaf63 (commit) via 80e7c8457cb26d08bc9666bd2c8ea6345ebfde06 (commit) via 064df19323c9f55c65f71212acc36fc0ca96d922 (commit) via af8bd20c28872e99508947450db56881d94477e9 (commit) via 21e870a935598a2731a54fbfeb57293a15dd4c76 (commit) via d6e3db8d9c3ede1e602885a843d8ada8a94ad498 (commit) via 2ffd25c5ace6a94e958467bbf04fbd7e81ca7373 (commit) via dde65f0a6260392383d4026ea333ae9b3d78f785 (commit) via 8da7c5d9803d592e1c8cd7d2ef0c1f98aac85653 (commit) via 794d06ab231d8e817263d3a150537be5ee7b4e08 (commit) via 8621e6dd5d4e09a1135bed0422589940ff698e98 (commit) via 2a02d41a75e820ac0b188ce1cac5d6d3b839a829 (commit) via 78cca33bcd7e04a61989f45d06b400c9e7738a5e (commit) via c98c00243d8e75b8d2270fb498a3e67051703cd5 (commit) via 75340462b9828c45502f4f32ca2b85569c4dc596 (commit) via 0beaf39b06501a444f7889f6faf111328d4bff50 (commit) via f9323c693b69235720f629a3362839ed03e2c812 (commit) via a4b255aef270c6827d402671b1869e43e77623b7 (commit) via c29c1e6bd34573233b7a0f511f12a9b0f3a6f5b1 (commit) via 649178bdab0fb4110252339e1ed18d238a94596b (commit) via 1eac8800a137cb937257b2d9bce01d943eb68378 (commit) via efcb744ec1fabfcde357b03f0e202b7c323c3145 (commit) via 58eb7227e73fcad96dc7ba7359b733bcaab8eb10 (commit) via b13bd6996bbef8e41187ce35d9e4df3e735104d6 (commit) via 4931291da074cb6c3fefe875856d6d4df8b2ff9b (commit) via a32c9b2b5d7ea3f6e41d5f511c784bd42589e83f (commit) via b7b39aa45195dea276d2452fcae2ccd3f6107345 (commit) via e5d232941da2c8502b1c9d3541bc40df84ec5132 (commit) via b42ed799fa280967003c0abff633b8c5d9921353 (commit) via eca57139b5a7c4619021c0f0610ecf252721cee8 (commit) via 63af819489d07814068aa2b1aa60ca728345807e (commit) via 81333092777154d9253a19b8a921438d6947e51b (commit) via 4eb54660ebf77c7400240600845a6193c11822ec (commit) via f0693f918e2626ad6f0aadec0178a72b6cc1eac5 (commit) via 172fd2400ce2a6e40daf416d344bcd8b97b4467c (commit) via b2147050b6428dfc5d36e198f89fdc370209edf8 (commit) via fae9ee2010239a1bbf1faa12113213c2b3cfc054 (commit) via dfba873caef40585f45ed92a91697335fde0b853 (commit) via 5ffd042d12b93325b2c6b82b8743a1111c6f8e5b (commit) via 6bf40536020ec51fdb58f03f738f88644ab3fdf4 (commit) via b6c7ffa5df5c5e34d4497dfc1e40483f5afab455 (commit) via 78cd501a87590d746bda84811532749d49a67562 (commit) via 2af34d77acf96a4cb2951fdda1b9b4864c4ff733 (commit) via a1a754aea707cfb6148fdcff3ae78ebeb005006f (commit) via f5be9a8466d0499543f3756e825faf9494497ba6 (commit) via e522eaf70046621bc29e6b30ccbf203280becc88 (commit) via 53ba8685cc752ac2066ba194125ad2d8939c3cc5 (commit) via 22ad12f7f90df1c90b8280c4e9ffb9ac21dd789f (commit) via afe3ce56dd48efa8966e98e0ffa2db2b0427f78e (commit) via 2bdb5783033a1325f694b0c01be7b4caa1f493bf (commit) via 56354196db007fccf3eed8e9c9403159c55be0e0 (commit) via 747f7e9df785f444a167e2752939089b05401bab (commit) via 80edb32c43e8e9654a16ffc3ffd84f1b8e0411dc (commit) via b9bf903b95ab949bd703aea23f84cbd18e7bd2db (commit) via 22c20a83d07c1603b4ee955f6c2a0f3d57bb4fcc (commit) via 0895467655dce00f8bf0fb6620f50b84fa1b918b (commit) via 0abde5838f2d334c9b49fc7206ad20dcdd1a49de (commit) via 126951c7ed7dc1eef4ce9a24b1515e1c5c1d3d0a (commit) via 4629f9eb136fc5d1f2804c5ff6759e67408c538d (commit) via a9baaa9fc07d5682a8079889a3d42cd1caa17519 (commit) via 05b3e3b5f9dffb34f8e6fe18ab082a4da58168ac (commit) via da56528adb0ef748d7e7759ec239b9e1b4673830 (commit) via 7d5da991c5d3790da730efc51ec51d71bcd495a8 (commit) via 7d0505f3d58ccee53fafafe6da66a3ed26b82445 (commit) via 6dfd9363589fcd4133fc30cc0b9f2e079b32089f (commit) via 73db14c7fe07a0f844624b8d1996faed42be0366 (commit) via ec14aa826e7db7b536b2d6e82cfa665b181919a2 (commit) via 24389a4f7a09961589500df6f35245abe07a8f75 (commit) via 08bcb2306f779b29b70a9cafa22a484c69b1f856 (commit) via 7696d299cfda2989a7f1433a78177e76c790598d (commit) via cc41ac37eb8ed6f04c33ec58106bbfd650aea076 (commit) via 67c667d0c2f0d08be7fc9b36812c5e7ca250ab49 (commit) via 9cf83751346a81e36ebcb92135dbd027f8b0b7b5 (commit) via 4fdce7c6d4d6f6b4dfdbe97316bc78a90ed4b9d4 (commit) via 270ec63e582ad67c85a25643b2ebbe8877cd0ffd (commit) via 6f8fa8a818f3cc7ca3e31afdef8e6deefce5adea (commit) via 1f292c13c2599afe7bec2ccdb043c68bdd266273 (commit) via 6b9b9329b3b8fb99fc3f5e28e9f2b183e3ee4152 (commit) via 848579dd6ecd525cdc3fd65c85877053a5c433f1 (commit) via d08e665b36015ad641b0f2abb9ef4239962a4b4b (commit) via 251b6e1a7421a6dc44ab00893d0830c5afdef675 (commit) from 61f0884b46ba2d3f8775995ec5433328a6d2e5cd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit cf7b7b38fd5f32865f0c91d1b6f929c08e04ff0a Merge: 61f0884 e884cc5 Author: matt rice Date: Thu Sep 16 13:48:30 2010 -0700 Merge remote branch 'gdb/master' commit e884cc5b62f170280dd49a35793bb516d95e7d8d Author: Jan Kratochvil Date: Thu Sep 16 19:20:50 2010 +0000 gdb/ * charset.c (wchar_iterate) : Return any possibly converted characters. commit 6ab8c51073a44168a14e41f7c5d590096d1e595d Author: pmuldoon Date: Thu Sep 16 13:47:51 2010 +0000 2010-09-16 Phil Muldoon PR mi/11407 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from read_var_value and common_val_print and print a warning. 2010-09-16 Phil Muldoon Jan Kratochvil PR mi/11407 * gdb.mi/dw2-ref-missing-frame-func.c: New File. * gdb.mi/dw2-ref-missing-frame-main.c New File. * gdb.mi/dw2-ref-missing-frame.S New File. * gdb.mi/dw2-ref-missing-frame.exp New File. commit 7ec6b44ca25a6d438e2d7e0afed2c60dc3c4a6e7 Author: Alan Modra Date: Thu Sep 16 10:35:58 2010 +0000 * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc sections. (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and set dynobj. (spu_elf_finish_dynamic_sections): New function. (elf_backend_finish_dynamic_sections): Define. commit b286d112086a57f79a8f99f35603ad8d1ec941e4 Author: Alan Modra Date: Thu Sep 16 00:06:10 2010 +0000 bfd/ * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD. * elflink.c (elf_link_input_bfd): Likewise. ld/ * ld.texinfo (NOLOAD): Do not erroneously state that contents will appear in output file. * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload unless SEC_COFF_SHARED_LIBRARY. (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload output sections. (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding to update dot in region. Ditto when setting SEC_ALLOC if dot advanced due to assignment. * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD. commit 97b83d6b602057bc8f7a19deb9f73ca79bc360ac Author: gdbadmin Date: Thu Sep 16 00:00:33 2010 +0000 *** empty log message *** commit 6b2534a30ca06e71cce484bce81b81deca7fb961 Author: Alan Modra Date: Thu Sep 16 00:00:04 2010 +0000 daily update commit cf7740d1f850789e09a5721f5346b0c728afb0e6 Author: Jan Kratochvil Date: Wed Sep 15 22:53:53 2010 +0000 gdb/ * MAINTAINERS (GLOBAL MAINTAINERS) : Move the entry to keep the list in alphabetical order. Use longer e-mail address. commit a5ca68f1382731e7116470550bf72ea41b0ad29c Author: Tom Tromey Date: Wed Sep 15 22:26:24 2010 +0000 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil. commit 562fabbaa40fe9e601eddc2e0ab3c8cc615cf9a3 Author: Tom Tromey Date: Wed Sep 15 20:18:46 2010 +0000 * charset.c (iconv_open): New define. (iconv): Likewise. (iconv_close): Likewise. (phony_iconv_open): Add "phony_" prefix. (phony_iconv_close): Likewise. (phony_iconv): Likewise. * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__. Change how INTERMEDIATE_ENCODING is defined. commit 8e041785876903fcba2a5b910364355418e20080 Author: Tom Tromey Date: Wed Sep 15 19:31:59 2010 +0000 2010-09-15 Paul Bolle * gdb.texinfo (Character Sets): Correctly reference host-charset in example. commit 9952a7464b8327d03c12dd338e95abff0f020675 Author: Doug Evans Date: Wed Sep 15 18:14:45 2010 +0000 * dwarf2read.c (struct die_info): Fix comment. commit 2b79a82a5aeff8a7bff82c4b87cf0cfc93f65fef Author: Kai Tietz Date: Wed Sep 15 17:27:27 2010 +0000 2010-09-15 Kai Tietz * pei-x86_64.c (pex64_get_unwind_info): Reorgnized. (pex64_get_scope_entry): Removed. (find_next_xdata_or_end): New helper. (pex64_dump_xdata): Reworked. (pex64_bfd_print_pdata): Add checking for valid pdata sorting and values. Reworked output. commit 7928c19c95e1b231d54b54a9d7f1561351a896d4 Author: H.J. Lu Date: Wed Sep 15 17:12:53 2010 +0000 Handle NULL iostream in bfd_plugin_object_p. 2010-09-15 H.J. Lu PR binutils/12004 * plugin.c (bfd_plugin_object_p): Handle NULL iostream. commit 2b30eb2c73bd6e3e90395810f7cec50eab0e3924 Author: Alan Modra Date: Wed Sep 15 03:30:29 2010 +0000 PR 4606 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather than setting SEC_NEVER_LOAD on sections that need not be copied. commit c150a650f5dca644a1429021bc1383a41729a21a Author: gdbadmin Date: Wed Sep 15 00:00:33 2010 +0000 *** empty log message *** commit 7af29a1c682299ffdbc0fe45bdf3e8cb452ca40b Author: Alan Modra Date: Wed Sep 15 00:00:05 2010 +0000 daily update commit 95043b5295b1c6a3d9ddae522c555abb5a9eaf63 Author: Maciej W. Rozycki Date: Tue Sep 14 23:49:03 2010 +0000 opcodes/ * mips-opc.c (mips_builtin_opcodes): Add "sync_acquire", "sync_mb", "sync_release", "sync_rmb" and "sync_wmb". gas/testsuite/ * gas/mips/mips32r2-sync.d: New test for MIPS32r2 "sync" instruction variants. * gas/mips/octeon@mips32r2-sync.d: Likewise, Octeon version. * gas/mips/mips32r2-sync.s: Source for the new test. * gas/mips/mips.exp: Run the new test. commit 80e7c8457cb26d08bc9666bd2c8ea6345ebfde06 Author: Tom Tromey Date: Tue Sep 14 22:50:28 2010 +0000 * psympriv.h (add_psymbol_to_list, init_psymbol_list) (start_psymtab_common, allocate_psymtab, discard_psymtab): Declare. * symfile.h (extend_psymbol_list): Remove. (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) (allocate_psymtab, discard_psymtab): Move to psympriv.h. * psymtab.c (extend_psymbol_list): Move earlier. Now static. commit 064df19323c9f55c65f71212acc36fc0ca96d922 Author: Jan Kratochvil Date: Tue Sep 14 21:28:52 2010 +0000 gdb/ * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. Update the comment. commit af8bd20c28872e99508947450db56881d94477e9 Author: Kai Tietz Date: Tue Sep 14 20:40:38 2010 +0000 2010-09-14 Kai Tietz * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make .rdata, .data, and .text partial matched section names. * pei-x86_64.c: Likewise. commit 21e870a935598a2731a54fbfeb57293a15dd4c76 Author: Kai Tietz Date: Tue Sep 14 20:25:33 2010 +0000 2010-09-14 Kai Tietz * peXXigen.c (sort_x64_pdata): New helper. (_bfd_XXi_final_link_postscript): Do pdata sorting. commit d6e3db8d9c3ede1e602885a843d8ada8a94ad498 Author: Tom Tromey Date: Tue Sep 14 19:39:58 2010 +0000 gdb PR symtab/8399: * dwarf2loc.c (locexpr_describe_location_piece): Don't call error for unrecognized frame base expression. gdb/testsuite PR symtab/8399: * gdb.threads/tls.exp: Remove kfail. Update expected output. commit 2ffd25c5ace6a94e958467bbf04fbd7e81ca7373 Author: Tom Tromey Date: Tue Sep 14 19:08:29 2010 +0000 gdb PR exp/11803: * value.c (value_static_field): Use value_of_variable. gdb/testsuite PR exp/11803: * gdb.threads/tls.exp: Use C++. (check_thread_local): Use K::another_thread_local. * gdb.threads/tls.c (class K): New. (another_thread_local): Now a member of K. (spin): Update. No longer K&R C. commit dde65f0a6260392383d4026ea333ae9b3d78f785 Author: Pierre Muller Date: Tue Sep 14 08:01:09 2010 +0000 * m32r-rom.c: Replace winsock.h with winsock2.h header. * remote-m32r-sdi.c: Replace winsock.h by winsock2.h. commit 8da7c5d9803d592e1c8cd7d2ef0c1f98aac85653 Author: Alan Modra Date: Tue Sep 14 00:00:05 2010 +0000 daily update commit 794d06ab231d8e817263d3a150537be5ee7b4e08 Author: gdbadmin Date: Tue Sep 14 00:00:03 2010 +0000 *** empty log message *** commit 8621e6dd5d4e09a1135bed0422589940ff698e98 Author: swagiaal Date: Mon Sep 13 20:41:04 2010 +0000 Fix PR 11992: C++ 'this' scope sometimes does not work 2010-09-13 Sami Wagiaalla PR symtab/11992: * c-exp.y (classify_name): Check is_a_member_of_this before returning UNKNOWN_CPP_NAME. 2010-09-13 Sami Wagiaalla * gdb.cp/koenig.cc: created class for testing member lookup. * gdb.cp/koenig.exp: Added test for member lookup. commit 2a02d41a75e820ac0b188ce1cac5d6d3b839a829 Author: Joel Brobecker Date: Mon Sep 13 20:37:32 2010 +0000 [NEWS] Announce gdbserver support for x86-lynxos This patch adjusts the NEWS entry for the LynxOS gdbserver to include x86-lynxos to the list of supported platforms. gdb/ChangeLog: * NEWS: Add x86-lynxos to the list of platforms supported by gdbserver. commit 78cca33bcd7e04a61989f45d06b400c9e7738a5e Author: Jan Kratochvil Date: Mon Sep 13 20:05:03 2010 +0000 gdb/testsuite/ Fix false FAILs on sourcetree topdir directory containing "kill". * gdb.base/sigall.exp (test_one_sig) : Extend the source line matching regexp. commit c98c00243d8e75b8d2270fb498a3e67051703cd5 Author: Joel Brobecker Date: Mon Sep 13 19:11:03 2010 +0000 Add support for x86 LynxOS This patch adds support for x86 LynxOS (tested on LynxOS 5.0). gdb/gdbserver/ChangeLog: * lynx-i386-low.c: New file. * configure.srv: Add handling of i[34567]86-*-lynxos* targets. commit 75340462b9828c45502f4f32ca2b85569c4dc596 Author: Joel Brobecker Date: Mon Sep 13 19:10:44 2010 +0000 [NEWS] Announce support for PowerPC LynxOS 5.x. This adjusts the news entry about ppc-lynxos to add version 5.x of the OS to the list of supported versions... gdb/ChangeLog: * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos. commit 0beaf39b06501a444f7889f6faf111328d4bff50 Author: Joel Brobecker Date: Mon Sep 13 19:10:30 2010 +0000 [LynxOS] Remove handling of PTRACE_* values removed in Lynx5. Some of the PTRACE_ macros/values were removed in LynxOS 5.x. Since we have not use them so far, the chances that we will use them one day are very small. So I decided to delete them. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Remove handling for request values that have been removed in LynxOS 5.x. commit f9323c693b69235720f629a3362839ed03e2c812 Author: Joel Brobecker Date: Mon Sep 13 19:10:19 2010 +0000 [LynxOS] Include sys/ptrace.h instead of ptrace.h. This is one of the changes needed in order to build gdbserver on LynxOS 5.x. Really interesting: On LynxOS 4.x, there is a #warning when sys/ptrace.h is used (explaining that ptrace.h will be used instead), whereas this file was removed from LynxOS 5.x. The contents of sys/ptrace.h on 4.x (or at least the meat of it): #if defined(__GNUC__) || defined(__GNUG__) #if !defined(__NO_INCLUDE_WARN__) #warning Using instead of #endif /* defined(__NO_INCLUDE_WARN__) */ #endif /* defined(__GNUC__) || defined(__GNUG__) */ #include The fix I went for, for now, is to just include unconditionally. I could have done some configury, but we already have to build with -D__NO_INCLUDE_WARN__ to avoid the warnings anyway, and that's unvoidable, due to system includes themselves including the "wrong" header file. Since seems to be the choice that was made for LynxOS, and since it works to include it on LynxOS 4.x, I think that's the simplest solution. gdb/gdbserver/ChangeLog: * lynx-low.c, lynx-ppc-low.c: Include instead of commit a4b255aef270c6827d402671b1869e43e77623b7 Author: Tom Tromey Date: Mon Sep 13 18:27:04 2010 +0000 * gdb.texinfo (GDB/MI Stack Manipulation) <-stack-list-frames>: Document "fullname" and "from". commit c29c1e6bd34573233b7a0f511f12a9b0f3a6f5b1 Author: Tom Tromey Date: Mon Sep 13 17:59:58 2010 +0000 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h. commit 649178bdab0fb4110252339e1ed18d238a94596b Author: H.J. Lu Date: Mon Sep 13 17:39:46 2010 +0000 Set 256bit vector type name to builtin_type_vec256i. 2010-09-13 H.J. Lu * i386-tdep.c (i386_ymm_type): Set type name to builtin_type_vec256i. commit 1eac8800a137cb937257b2d9bce01d943eb68378 Author: gdbadmin Date: Mon Sep 13 00:00:33 2010 +0000 *** empty log message *** commit efcb744ec1fabfcde357b03f0e202b7c323c3145 Author: Alan Modra Date: Mon Sep 13 00:00:05 2010 +0000 daily update commit 58eb7227e73fcad96dc7ba7359b733bcaab8eb10 Author: Michael Snyder Date: Sun Sep 12 21:49:40 2010 +0000 2010-09-12 Michael Snyder * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. commit b13bd6996bbef8e41187ce35d9e4df3e735104d6 Author: H.J. Lu Date: Sun Sep 12 18:33:15 2010 +0000 Fix typo in comments. 2010-09-12 H.J. Lu * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. commit 4931291da074cb6c3fefe875856d6d4df8b2ff9b Author: gdbadmin Date: Sun Sep 12 00:00:33 2010 +0000 *** empty log message *** commit a32c9b2b5d7ea3f6e41d5f511c784bd42589e83f Author: Alan Modra Date: Sun Sep 12 00:00:05 2010 +0000 daily update commit b7b39aa45195dea276d2452fcae2ccd3f6107345 Author: H.J. Lu Date: Sat Sep 11 19:09:33 2010 +0000 Remove amd64_register_name. 2010-09-11 H.J. Lu * amd64-tdep.c (amd64_register_name): Removed. (amd64_init_abi): Don't call set_gdbarch_register_name. * i386-tdep.c (i386_ymmh_regnum_p): Make it static. * i386-tdep.h (i386_ymmh_regnum_p): Removed. commit e5d232941da2c8502b1c9d3541bc40df84ec5132 Author: Jan Kratochvil Date: Sat Sep 11 16:00:20 2010 +0000 gdb/ Redirect also uiout and stdtarg{,err} in execute_command_to_string. * cli-logging.c (struct saved_output_files) : New. (set_logging_redirect, pop_output_files, handle_redirections): Redirect also gdb_stdtargerr. * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New declarations. * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect also gdb_stdtargerr. * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr. Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop. * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr. * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop): New functions. gdb/testsuite/ * gdb.python/python.exp (set height 0, collect help from uiout) (verify help to uiout): New tests. commit b42ed799fa280967003c0abff633b8c5d9921353 Author: Alan Modra Date: Sat Sep 11 00:00:05 2010 +0000 daily update commit eca57139b5a7c4619021c0f0610ecf252721cee8 Author: gdbadmin Date: Sat Sep 11 00:00:03 2010 +0000 *** empty log message *** commit 63af819489d07814068aa2b1aa60ca728345807e Author: DJ Delorie Date: Fri Sep 10 23:17:28 2010 +0000 merge from gcc commit 81333092777154d9253a19b8a921438d6947e51b Author: Tom Tromey Date: Fri Sep 10 22:42:04 2010 +0000 2010-09-10 James Lyon http://sourceware.org/bugzilla/show_bug.cgi?id=11572 * cp-demangle.c (d_find_pack): Add case for DEMANGLE_COMPONENT_LAMBDA. * testsuite/demangle-expected: Add regression test. commit 4eb54660ebf77c7400240600845a6193c11822ec Author: Jan Kratochvil Date: Fri Sep 10 20:29:25 2010 +0000 gdb/testsuite/ * gdb.base/break-interp.exp (test_ld) : Add is_lp64_target to check 64bit target. commit f0693f918e2626ad6f0aadec0178a72b6cc1eac5 Author: Pierre Muller Date: Fri Sep 10 16:17:11 2010 +0000 * hppa-tdep.c (unwind_command): Use host_address_to_string function to display a host address. * monitor.c (monitor_read_memory): Likewise. * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. commit 172fd2400ce2a6e40daf416d344bcd8b97b4467c Author: Pierre Muller Date: Fri Sep 10 16:12:20 2010 +0000 * coffread.c (struct coff_symbol): Change c_value type from `long' to `CORE_ADDRESS' as it might contain target addresses. commit b2147050b6428dfc5d36e198f89fdc370209edf8 Author: Pierre Muller Date: Fri Sep 10 16:04:58 2010 +0000 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro before cast to pointer to avoid warning. commit fae9ee2010239a1bbf1faa12113213c2b3cfc054 Author: Pierre Muller Date: Fri Sep 10 13:00:54 2010 +0000 * src/opcodes/dlx-dis.c (print_insn_dlx): Use dlx_insn type for dlx_insn_type array. commit dfba873caef40585f45ed92a91697335fde0b853 Author: gdbadmin Date: Fri Sep 10 00:00:34 2010 +0000 *** empty log message *** commit 5ffd042d12b93325b2c6b82b8743a1111c6f8e5b Author: Alan Modra Date: Fri Sep 10 00:00:05 2010 +0000 daily update commit 6bf40536020ec51fdb58f03f738f88644ab3fdf4 Author: Kevin Buettner Date: Thu Sep 9 23:04:46 2010 +0000 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char' type to be signed. commit b6c7ffa5df5c5e34d4497dfc1e40483f5afab455 Author: Jan Kratochvil Date: Thu Sep 9 20:00:48 2010 +0000 gdb/testsuite/ * gdb.base/break-interp.exp (reach): Permit leading . for ppc64. (test_ld) : New. commit 78cd501a87590d746bda84811532749d49a67562 Author: H.J. Lu Date: Thu Sep 9 19:22:25 2010 +0000 Don't warn zero LMA adjustment. bfd/ 2010-09-09 H.J. Lu PR ld/11998 * elf.c (assign_file_positions_for_load_sections): Don't warn zero LMA adjustment. ld/testsuite/ 2010-09-09 H.J. Lu PR ld/11998 * ld-scripts/rgn-at5.d: New. * ld-scripts/rgn-at5.s: Likewise. * ld-scripts/rgn-at5.t: Likewise. commit 2af34d77acf96a4cb2951fdda1b9b4864c4ff733 Author: DJ Delorie Date: Thu Sep 9 17:39:47 2010 +0000 merge from gcc commit a1a754aea707cfb6148fdcff3ae78ebeb005006f Author: Ulrich Weigand Date: Thu Sep 9 16:42:07 2010 +0000 * dwarf2read.c (fixup_partial_die): Do not set dummy name for anonymous class partial DIEs. commit f5be9a8466d0499543f3756e825faf9494497ba6 Author: Nathan Sidwell Date: Thu Sep 9 13:16:38 2010 +0000 * configure.ac: Add --enable-inprocess-agent option. * configure: Rebuilt. commit e522eaf70046621bc29e6b30ccbf203280becc88 Author: Jakub Jelinek Date: Thu Sep 9 10:18:12 2010 +0000 * dwarf.h (debug_info): Add offset_info and dwarf_version fields. * dwarf.c (decode_location_expression): Add offset_size and dwarf_version arguments. Prefix DIE offset with 0x for DW_OP_call{2,4,_ref}. Fix up DW_OP_call_ref operand size, complain if in frame info section. Handle DW_OP_GNU_implicit_pointer. (read_and_display_attr_value, display_debug_loc, display_debug_frames): Adjust decode_location_expression callers. (process_debug_info): Save offset_size and dwarf_version values into debug_information array. * dwarf2.h (DW_OP_GNU_implicit_pointer): New. commit 53ba8685cc752ac2066ba194125ad2d8939c3cc5 Author: Bernd Schmidt Date: Thu Sep 9 09:55:00 2010 +0000 * elflink.c (bfd_elf_final_link): Correct calculation of max_external_reloc_size. commit 22ad12f7f90df1c90b8280c4e9ffb9ac21dd789f Author: gdbadmin Date: Thu Sep 9 00:00:33 2010 +0000 *** empty log message *** commit afe3ce56dd48efa8966e98e0ffa2db2b0427f78e Author: Alan Modra Date: Thu Sep 9 00:00:04 2010 +0000 daily update commit 2bdb5783033a1325f694b0c01be7b4caa1f493bf Author: Daniel Jacobowitz Date: Wed Sep 8 23:41:39 2010 +0000 * gdb.cp/templates.exp (test_template_args): Allow "struct". commit 56354196db007fccf3eed8e9c9403159c55be0e0 Author: Daniel Jacobowitz Date: Wed Sep 8 23:34:11 2010 +0000 * dwarf2read.c (dwarf2_compute_name): Check that the first argument is a pointer. commit 747f7e9df785f444a167e2752939089b05401bab Author: Daniel Jacobowitz Date: Wed Sep 8 23:14:52 2010 +0000 * dwarf2read.c (read_func_scope, read_structure_type) (read_common_block): Check for a NULL return from new_symbol. commit 80edb32c43e8e9654a16ffc3ffd84f1b8e0411dc Author: Jan Kratochvil Date: Wed Sep 8 19:49:28 2010 +0000 gdb/ * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS. commit b9bf903b95ab949bd703aea23f84cbd18e7bd2db Author: Daniel Jacobowitz Date: Wed Sep 8 19:09:42 2010 +0000 gdb/ * dwarf2read.c (read_structure_type): Move processing of fields and member functions from here... (process_structure_scope): ... to here. gdb/testsuite/ * gdb.cp/templates.cc (Empty, FunctionArg): New classes. (FunctionArg::method): New function. (empty, arg): New variables. (main): Call arg.method. * gdb.cp/templates.exp (test_template_args): New function. (do_tests): Call it. commit 22c20a83d07c1603b4ee955f6c2a0f3d57bb4fcc Author: Daniel Jacobowitz Date: Wed Sep 8 18:53:33 2010 +0000 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use the domain type. (gnuv3_make_method_ptr): Likewise. commit 0895467655dce00f8bf0fb6620f50b84fa1b918b Author: Tom Tromey Date: Wed Sep 8 18:05:39 2010 +0000 * breakpoint.c (create_breakpoint): Add missing _(). commit 0abde5838f2d334c9b49fc7206ad20dcdd1a49de Author: Doug Evans Date: Wed Sep 8 17:52:48 2010 +0000 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused. commit 126951c7ed7dc1eef4ce9a24b1515e1c5c1d3d0a Author: Ulrich Weigand Date: Wed Sep 8 17:49:53 2010 +0000 * gdb.threads/threxit-hop-specific.exp: Use "continue" instead of "next" to proceed over pthread_exit call. commit 4629f9eb136fc5d1f2804c5ff6759e67408c538d Author: Ulrich Weigand Date: Wed Sep 8 17:22:26 2010 +0000 * gdb.base/maint.exp: Avoid wildcards against potentially very long "maint print statistics" output to prevent expect timeouts. commit a9baaa9fc07d5682a8079889a3d42cd1caa17519 Author: Tom Tromey Date: Wed Sep 8 17:17:41 2010 +0000 Revert: 2010-09-01 Tom Tromey * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c, symtab.h: Revert earlier change. commit 05b3e3b5f9dffb34f8e6fe18ab082a4da58168ac Author: gdbadmin Date: Wed Sep 8 00:00:33 2010 +0000 *** empty log message *** commit da56528adb0ef748d7e7759ec239b9e1b4673830 Author: Alan Modra Date: Wed Sep 8 00:00:05 2010 +0000 daily update commit 7d5da991c5d3790da730efc51ec51d71bcd495a8 Author: DJ Delorie Date: Tue Sep 7 19:28:00 2010 +0000 merge from gcc commit 7d0505f3d58ccee53fafafe6da66a3ed26b82445 Author: swagiaal Date: Tue Sep 7 14:59:50 2010 +0000 Fix custom bcache hash regression. 2010-09-09 Sami Wagiaalla * psymtab.c (add_psymbol_to_bcache): Initialize obj_section. memset psymbol.ginfo.value to 0. commit 6dfd9363589fcd4133fc30cc0b9f2e079b32089f Author: swagiaal Date: Tue Sep 7 14:59:50 2010 +0000 Fix custom bcache hash regression. 2010-09-09 Sami Wagiaalla * psymtab.c (add_psymbol_to_bcache): Initialize obj_section. memset psymbol.ginfo.value to 0. commit 73db14c7fe07a0f844624b8d1996faed42be0366 Author: gdbadmin Date: Tue Sep 7 00:00:34 2010 +0000 *** empty log message *** commit ec14aa826e7db7b536b2d6e82cfa665b181919a2 Author: Alan Modra Date: Tue Sep 7 00:00:04 2010 +0000 daily update commit 24389a4f7a09961589500df6f35245abe07a8f75 Author: Alan Modra Date: Mon Sep 6 23:55:09 2010 +0000 * peXXigen.c: Whitespace. (pe_print_idata): Correct section limit calculations. Tidy array indexing. (_bfd_XX_print_ce_compressed_pdata): Don't leak memory. commit 08bcb2306f779b29b70a9cafa22a484c69b1f856 Author: Jan Kratochvil Date: Mon Sep 6 15:48:34 2010 +0000 gdb/testsuite/ * gdb.base/printcmds.exp (test_float_accepted): Import gdb_prompt. Move here, negate and extend by XFAIL the "p 0x1.1" test from ... (test_float_rejected): ... here. * gdb.java/jv-print.exp (test_float_accepted): Import gdb_prompt. Move here, negate and extend by XFAIL the "p 0x1.1" test from ... (test_float_rejected): ... here. * gdb.objc/print.exp (test_float_accepted): Import gdb_prompt. Move here, negate and extend by XFAIL the "p 0x1.1" test from ... (test_float_rejected): ... here. * gdb.pascal/print.exp (test_float_accepted): Import gdb_prompt. Move here, negate and extend by XFAIL the "p 0x1.1" test from ... (test_float_rejected): ... here. commit 7696d299cfda2989a7f1433a78177e76c790598d Author: H.J. Lu Date: Mon Sep 6 15:46:08 2010 +0000 Sync bootstrap-lto.mk and dfp.m4 with gcc. commit cc41ac37eb8ed6f04c33ec58106bbfd650aea076 Author: qiyao Date: Mon Sep 6 15:15:50 2010 +0000 2010-09-06 Yao Qi * linux-low.c (linux_kill): Remove unused variable. (linux_stabilize_threads): Likewise. * server.c (start_inferior): Likewise. (queue_stop_reply_callback): Likewise. * tracepoint.c (do_action_at_tracepoint): Likewise. commit 67c667d0c2f0d08be7fc9b36812c5e7ca250ab49 Author: qiyao Date: Mon Sep 6 15:10:15 2010 +0000 2010-09-06 Yao Qi * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior on return. commit 9cf83751346a81e36ebcb92135dbd027f8b0b7b5 Author: Pedro Alves Date: Mon Sep 6 14:22:07 2010 +0000 * infrun.c (resume): Extend comment on ignoring single-step requests on vfork parents waiting for a vfork-done. commit 4fdce7c6d4d6f6b4dfdbe97316bc78a90ed4b9d4 Author: Jan Kratochvil Date: Mon Sep 6 13:59:00 2010 +0000 gdb/ * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH is NULL. * fork-child.c (startup_inferior) : Use enum target_signal type. * linux-nat.c (linux_nat_resume): Use target_signal_to_host before calling strsignal. Use enum target_signal type for saved_signo. (linux_handle_extended_wait) : Use enum target_signal type. (linux_nat_wait_1): Use enum target_signal type for signo. Use target_signal_to_host before calling strsignal. * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by TARGET_SIGNAL_0. gdb/gdbserver/ * target.c (mywait) : Fix to use INTEGER. commit 270ec63e582ad67c85a25643b2ebbe8877cd0ffd Author: Jan Kratochvil Date: Mon Sep 6 13:34:01 2010 +0000 gdb/ * common/signals.c (ANY): Remove. (SET): No longer use ANY. include/gdb/ * signals.def: Replace all ANY uses by SET with specific numbers. * signals.h (ANY): Remove. commit 6f8fa8a818f3cc7ca3e31afdef8e6deefce5adea Author: qiyao Date: Mon Sep 6 13:10:27 2010 +0000 2010-09-06 Yao Qi * infrunc(resume): When inferior is waiting_for_vfork_done, clear step and don't use displaced stepping. commit 1f292c13c2599afe7bec2ccdb043c68bdd266273 Author: Pedro Alves Date: Mon Sep 6 10:43:58 2010 +0000 * Makefile.in (install-only): Replace $IPA_DEPFILES with "$(IPA_DEPFILES)". commit 6b9b9329b3b8fb99fc3f5e28e9f2b183e3ee4152 Author: Alan Modra Date: Mon Sep 6 00:00:05 2010 +0000 daily update commit 848579dd6ecd525cdc3fd65c85877053a5c433f1 Author: gdbadmin Date: Mon Sep 6 00:00:03 2010 +0000 *** empty log message *** commit d08e665b36015ad641b0f2abb9ef4239962a4b4b Author: gdbadmin Date: Sun Sep 5 00:00:33 2010 +0000 *** empty log message *** commit 251b6e1a7421a6dc44ab00893d0830c5afdef675 Author: Alan Modra Date: Sun Sep 5 00:00:05 2010 +0000 daily update ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 58 ++++ bfd/elf.c | 8 +- bfd/elf32-spu.c | 20 +- bfd/elflink.c | 8 +- bfd/pe-x86_64.c | 6 +- bfd/peXXigen.c | 143 +++++---- bfd/pei-x86_64.c | 201 +++++++----- bfd/plugin.c | 25 +- bfd/version.h | 2 +- config/ChangeLog | 15 + config/bootstrap-lto.mk | 4 +- config/dfp.m4 | 9 +- gdb/ChangeLog | 236 ++++++++++++++ gdb/MAINTAINERS | 1 + gdb/Makefile.in | 2 +- gdb/NEWS | 3 +- gdb/alpha-mdebug-tdep.c | 2 +- gdb/amd64-tdep.c | 15 - gdb/breakpoint.c | 2 +- gdb/c-exp.y | 1 + gdb/charset.c | 20 +- gdb/cli/cli-logging.c | 6 + gdb/coffread.c | 2 +- gdb/common/signals.c | 4 +- gdb/corelow.c | 21 +- gdb/defs.h | 4 + gdb/doc/ChangeLog | 10 + gdb/doc/gdb.texinfo | 7 +- gdb/dwarf2-frame.h | 4 - gdb/dwarf2loc.c | 7 +- gdb/dwarf2read.c | 136 ++++----- gdb/event-top.c | 2 + gdb/fork-child.c | 2 +- gdb/gcore.c | 3 +- gdb/gdb_wchar.h | 58 +++- gdb/gdbserver/ChangeLog | 42 +++ gdb/gdbserver/Makefile.in | 2 +- gdb/gdbserver/configure | 34 ++- gdb/gdbserver/configure.ac | 28 ++- gdb/gdbserver/configure.srv | 4 + gdb/gdbserver/linux-low.c | 8 +- gdb/gdbserver/lynx-i386-low.c | 319 +++++++++++++++++++ gdb/gdbserver/lynx-low.c | 42 +--- gdb/gdbserver/lynx-ppc-low.c | 2 +- gdb/gdbserver/server.c | 8 +- gdb/gdbserver/target.c | 2 +- gdb/gdbserver/tracepoint.c | 3 - gdb/gdbtypes.c | 2 +- gdb/gnu-v3-abi.c | 6 +- gdb/hppa-tdep.c | 2 +- gdb/i386-tdep.c | 10 +- gdb/i386-tdep.h | 1 - gdb/infrun.c | 28 ++- gdb/linux-nat.c | 16 +- gdb/m32r-rom.c | 2 +- gdb/mi/mi-cmd-stack.c | 54 +++- gdb/monitor.c | 8 +- gdb/psympriv.h | 26 ++- gdb/psymtab.c | 82 +++--- gdb/remote-m32r-sdi.c | 6 +- gdb/symfile.h | 54 +--- gdb/symtab.c | 167 ++--------- gdb/symtab.h | 4 - gdb/testsuite/ChangeLog | 87 +++++ gdb/testsuite/gdb.base/break-interp.exp | 15 +- gdb/testsuite/gdb.base/maint.exp | 18 +- gdb/testsuite/gdb.base/printcmds.exp | 15 +- gdb/testsuite/gdb.base/sigall.exp | 4 +- gdb/testsuite/gdb.cp/koenig.cc | 14 + gdb/testsuite/gdb.cp/koenig.exp | 11 + gdb/testsuite/gdb.cp/templates.cc | 32 ++- gdb/testsuite/gdb.cp/templates.exp | 11 + gdb/testsuite/gdb.java/jv-print.exp | 17 +- gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c | 54 ++++ gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c | 40 +++ gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S | 165 ++++++++++ gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp | 77 +++++ gdb/testsuite/gdb.objc/print.exp | 17 +- gdb/testsuite/gdb.pascal/print.exp | 17 +- gdb/testsuite/gdb.python/python.exp | 6 + gdb/testsuite/gdb.threads/threxit-hop-specific.exp | 2 +- gdb/testsuite/gdb.threads/tls.c | 20 +- gdb/testsuite/gdb.threads/tls.exp | 10 +- gdb/top.c | 13 +- gdb/tui/tui-io.c | 2 + gdb/utils.c | 20 ++ gdb/v850-tdep.c | 2 +- gdb/value.c | 12 +- gdb/version.in | 2 +- gdb/xtensa-tdep.c | 9 +- include/ChangeLog | 4 + include/dwarf2.h | 1 + include/gdb/ChangeLog | 5 + include/gdb/signals.def | 150 +++++----- include/gdb/signals.h | 3 - libdecnumber/ChangeLog | 25 ++ libdecnumber/Makefile.in | 31 +- libdecnumber/configure | 16 +- libdecnumber/configure.ac | 3 + libiberty/ChangeLog | 44 +++ libiberty/Makefile.in | 330 ++++++++++---------- libiberty/configure | 8 +- libiberty/configure.ac | 8 +- libiberty/cp-demangle.c | 1 + libiberty/maint-tool | 4 +- libiberty/testsuite/demangle-expected | 5 + opcodes/ChangeLog | 10 + opcodes/dlx-dis.c | 22 +- opcodes/mips-opc.c | 5 + 109 files changed, 2385 insertions(+), 991 deletions(-) create mode 100644 gdb/gdbserver/lynx-i386-low.c create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 26d45ff..2627e77 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,61 @@ +2010-09-16 Alan Modra + + * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc + sections. + (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and + set dynobj. + (spu_elf_finish_dynamic_sections): New function. + (elf_backend_finish_dynamic_sections): Define. + +2010-09-16 Alan Modra + + * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD. + * elflink.c (elf_link_input_bfd): Likewise. + +2010-09-15 Kai Tietz + + * pei-x86_64.c (pex64_get_unwind_info): Reorgnized. + (pex64_get_scope_entry): Removed. + (find_next_xdata_or_end): New helper. + (pex64_dump_xdata): Reworked. + (pex64_bfd_print_pdata): Add checking for + valid pdata sorting and values. Reworked + output. + +2010-09-15 H.J. Lu + + PR binutils/12004 + * plugin.c (bfd_plugin_object_p): Handle NULL iostream. + +2010-09-14 Kai Tietz + + * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make + .rdata, .data, and .text partial matched section names. + * pei-x86_64.c: Likewise. + + * peXXigen.c (sort_x64_pdata): New helper. + (_bfd_XXi_final_link_postscript): Do pdata sorting. + +2010-09-09 H.J. Lu + + PR ld/11998 + * elf.c (assign_file_positions_for_load_sections): Don't warn + zero LMA adjustment. + +2010-09-09 Bernd Schmidt + + bfd/ + * elflink.c (bfd_elf_final_link): Correct calculation of + max_external_reloc_size. + +2010-09-07 Alan Modra + Marcus Brinkmann + + * peXXigen.c: Whitespace. + (pe_print_idata): Correct section limit calculations. Tidy array + indexing. + (_bfd_XX_print_ce_compressed_pdata): Don't leak memory. + 2010-09-02 Richard Henderson * config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too. diff --git a/bfd/elf.c b/bfd/elf.c index c9e9fab..5ec92e9 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -2452,8 +2452,7 @@ int bfd_elf_get_default_section_type (flagword flags) { if ((flags & SEC_ALLOC) != 0 - && ((flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0 - || (flags & SEC_NEVER_LOAD) != 0)) + && (flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0) return SHT_NOBITS; return SHT_PROGBITS; } @@ -4481,8 +4480,9 @@ assign_file_positions_for_load_sections (bfd *abfd, bfd_vma s_start = sec->lma; bfd_vma adjust = s_start - p_end; - if (s_start < p_end - || p_end < p_start) + if (adjust != 0 + && (s_start < p_end + || p_end < p_start)) { (*_bfd_error_handler) (_("%B: section %A lma %#lx adjusted to %#lx"), abfd, sec, diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 8615e46..b1ea43c 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -602,9 +602,12 @@ spu_elf_create_sections (struct bfd_link_info *info) { asection *s; flagword flags; - ibfd = info->input_bfds; - flags = SEC_LOAD | SEC_ALLOC | SEC_READONLY | SEC_HAS_CONTENTS - | SEC_IN_MEMORY; + + if (htab->elf.dynobj == NULL) + htab->elf.dynobj = ibfd; + ibfd = htab->elf.dynobj; + flags = (SEC_LOAD | SEC_ALLOC | SEC_READONLY | SEC_HAS_CONTENTS + | SEC_IN_MEMORY | SEC_LINKER_CREATED); s = bfd_make_section_anyway_with_flags (ibfd, ".fixup", flags); if (s == NULL || !bfd_set_section_alignment (ibfd, s, 2)) return FALSE; @@ -5096,6 +5099,13 @@ spu_elf_relocate_section (bfd *output_bfd, return ret; } +static bfd_boolean +spu_elf_finish_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, + struct bfd_link_info *info ATTRIBUTE_UNUSED) +{ + return TRUE; +} + /* Adjust _SPUEAR_ syms to point at their overlay stubs. */ static int @@ -5402,7 +5412,8 @@ spu_elf_size_sections (bfd * output_bfd, struct bfd_link_info *info) /* If there aren't any relocs, then there's nothing more to do. */ - if ((isec->flags & SEC_RELOC) == 0 + if ((isec->flags & SEC_ALLOC) == 0 + || (isec->flags & SEC_RELOC) == 0 || isec->reloc_count == 0) continue; @@ -5457,6 +5468,7 @@ spu_elf_size_sections (bfd * output_bfd, struct bfd_link_info *info) #define elf_info_to_howto spu_elf_info_to_howto #define elf_backend_count_relocs spu_elf_count_relocs #define elf_backend_relocate_section spu_elf_relocate_section +#define elf_backend_finish_dynamic_sections spu_elf_finish_dynamic_sections #define elf_backend_symbol_processing spu_elf_backend_symbol_processing #define elf_backend_link_output_symbol_hook spu_elf_output_symbol_hook #define elf_backend_object_p spu_elf_object_p diff --git a/bfd/elflink.c b/bfd/elflink.c index dd48c74..4351e28 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2829,7 +2829,7 @@ _bfd_elf_dynamic_symbol_p (struct elf_link_hash_entry *h, /* Return true if the symbol referred to by H should be considered to resolve local to the current module, and false otherwise. Differs from (the inverse of) _bfd_elf_dynamic_symbol_p in the treatment of - undefined symbols. The two functions are vitually identical except + undefined symbols. The two functions are virtually identical except for the place where forced_local and dynindx == -1 are tested. If either of those tests are true, _bfd_elf_dynamic_symbol_p will say the symbol is local, while _bfd_elf_symbol_refs_local_p will say @@ -9843,7 +9843,6 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) { /* FIXME: octets_per_byte. */ if (! (o->flags & SEC_EXCLUDE) - && ! (o->output_section->flags & SEC_NEVER_LOAD) && ! bfd_set_section_contents (output_bfd, o->output_section, contents, (file_ptr) o->output_offset, @@ -10360,7 +10359,10 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) { size_t ext_size; - ext_size = elf_section_data (sec)->rel_hdr.sh_size; + ext_size = esdi->rel_hdr.sh_size; + if (esdi->rel_hdr2 != NULL) + ext_size += esdi->rel_hdr2->sh_size; + if (ext_size > max_external_reloc_size) max_external_reloc_size = ext_size; if (sec->reloc_count > max_internal_reloc_count) diff --git a/bfd/pe-x86_64.c b/bfd/pe-x86_64.c index 76fc7c7..b739cc4 100644 --- a/bfd/pe-x86_64.c +++ b/bfd/pe-x86_64.c @@ -40,11 +40,11 @@ #define COFF_SECTION_ALIGNMENT_ENTRIES \ { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ -{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \ +{ COFF_SECTION_NAME_PARTIAL_MATCH (".data"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ -{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \ +{ COFF_SECTION_NAME_PARTIAL_MATCH (".rdata"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ -{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \ +{ COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index d023dc8..8f351ba 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -550,7 +550,7 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out) PEAOUTHDR *aouthdr_out = (PEAOUTHDR *) out; bfd_vma sa, fa, ib; IMAGE_DATA_DIRECTORY idata2, idata5, tls; - + sa = extra->SectionAlignment; fa = extra->FileAlignment; ib = extra->ImageBase; @@ -558,7 +558,7 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out) idata2 = pe->pe_opthdr.DataDirectory[PE_IMPORT_TABLE]; idata5 = pe->pe_opthdr.DataDirectory[PE_IMPORT_ADDRESS_TABLE]; tls = pe->pe_opthdr.DataDirectory[PE_TLS_TABLE]; - + if (aouthdr_in->tsize) { aouthdr_in->text_start -= ib; @@ -615,7 +615,7 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out) /* Until other .idata fixes are made (pending patch), the entry for .idata is needed for backwards compatibility. FIXME. */ add_data_entry (abfd, extra, 1, ".idata", ib); - + /* For some reason, the virtual size (which is what's set by add_data_entry) for .reloc is not the same as the size recorded in this slot by MSVC; it doesn't seem to cause problems (so far), @@ -926,7 +926,7 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out) (0x02000000). Also, the resource data should also be read and writable. */ - /* FIXME: Alignment is also encoded in this field, at least on PPC and + /* FIXME: Alignment is also encoded in this field, at least on PPC and ARM-WINCE. Although - how do we get the original alignment field back ? */ @@ -936,7 +936,7 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out) unsigned long must_have; } pe_required_section_flags; - + pe_required_section_flags known_sections [] = { { ".arch", IMAGE_SCN_MEM_READ | IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_MEM_DISCARDABLE | IMAGE_SCN_ALIGN_8BYTES }, @@ -1110,7 +1110,6 @@ pe_print_idata (bfd * abfd, void * vfile) section->name, (unsigned long) addr); dataoff = addr - section->vma; - datasize -= dataoff; #ifdef POWERPC_LE_PE if (rel_section != 0 && rel_section->size != 0) @@ -1183,7 +1182,7 @@ pe_print_idata (bfd * abfd, void * vfile) adj = section->vma - extra->ImageBase; /* Print all image import descriptors. */ - for (i = 0; i < datasize; i += onaline) + for (i = dataoff; i + onaline <= datasize; i += onaline) { bfd_vma hint_addr; bfd_vma time_stamp; @@ -1195,12 +1194,12 @@ pe_print_idata (bfd * abfd, void * vfile) char *dll; /* Print (i + extra->DataDirectory[PE_IMPORT_TABLE].VirtualAddress). */ - fprintf (file, " %08lx\t", (unsigned long) (i + adj + dataoff)); - hint_addr = bfd_get_32 (abfd, data + i + dataoff); - time_stamp = bfd_get_32 (abfd, data + i + 4 + dataoff); - forward_chain = bfd_get_32 (abfd, data + i + 8 + dataoff); - dll_name = bfd_get_32 (abfd, data + i + 12 + dataoff); - first_thunk = bfd_get_32 (abfd, data + i + 16 + dataoff); + fprintf (file, " %08lx\t", (unsigned long) (i + adj)); + hint_addr = bfd_get_32 (abfd, data + i); + time_stamp = bfd_get_32 (abfd, data + i + 4); + forward_chain = bfd_get_32 (abfd, data + i + 8); + dll_name = bfd_get_32 (abfd, data + i + 12); + first_thunk = bfd_get_32 (abfd, data + i + 16); fprintf (file, "%08lx %08lx %08lx %08lx %08lx\n", (unsigned long) hint_addr, @@ -1225,16 +1224,17 @@ pe_print_idata (bfd * abfd, void * vfile) bfd_vma ft_addr; bfd_size_type ft_datasize; int ft_idx; - int ft_allocated = 0; + int ft_allocated; fprintf (file, _("\tvma: Hint/Ord Member-Name Bound-To\n")); idx = hint_addr - adj; - + ft_addr = first_thunk + extra->ImageBase; - ft_data = data; ft_idx = first_thunk - adj; - ft_allocated = 0; + ft_data = data + ft_idx; + ft_datasize = datasize - ft_idx; + ft_allocated = 0; if (first_thunk != hint_addr) { @@ -1243,9 +1243,8 @@ pe_print_idata (bfd * abfd, void * vfile) ft_section != NULL; ft_section = ft_section->next) { - ft_datasize = ft_section->size; if (ft_addr >= ft_section->vma - && ft_addr < ft_section->vma + ft_datasize) + && ft_addr < ft_section->vma + ft_section->size) break; } @@ -1258,34 +1257,28 @@ pe_print_idata (bfd * abfd, void * vfile) /* Now check to see if this section is the same as our current section. If it is not then we will have to load its data in. */ - if (ft_section == section) - { - ft_data = data; - ft_idx = first_thunk - adj; - } - else + if (ft_section != section) { ft_idx = first_thunk - (ft_section->vma - extra->ImageBase); - ft_data = (bfd_byte *) bfd_malloc (datasize); + ft_datasize = ft_section->size - ft_idx; + ft_data = (bfd_byte *) bfd_malloc (ft_datasize); if (ft_data == NULL) continue; - /* Read datasize bfd_bytes starting at offset ft_idx. */ - if (! bfd_get_section_contents - (abfd, ft_section, ft_data, (bfd_vma) ft_idx, datasize)) + /* Read ft_datasize bytes starting at offset ft_idx. */ + if (!bfd_get_section_contents (abfd, ft_section, ft_data, + (bfd_vma) ft_idx, ft_datasize)) { free (ft_data); continue; } - - ft_idx = 0; ft_allocated = 1; } } /* Print HintName vector entries. */ #ifdef COFF_WITH_pex64 - for (j = 0; j < datasize; j += 8) + for (j = 0; idx + j + 8 <= datasize; j += 8) { unsigned long member = bfd_get_32 (abfd, data + idx + j); unsigned long member_high = bfd_get_32 (abfd, data + idx + j + 4); @@ -1310,17 +1303,18 @@ pe_print_idata (bfd * abfd, void * vfile) table holds actual addresses. */ if (time_stamp != 0 && first_thunk != 0 - && first_thunk != hint_addr) + && first_thunk != hint_addr + && j + 4 <= ft_datasize) fprintf (file, "\t%04lx", - (unsigned long) bfd_get_32 (abfd, ft_data + ft_idx + j)); + (unsigned long) bfd_get_32 (abfd, ft_data + j)); fprintf (file, "\n"); } #else - for (j = 0; j < datasize; j += 4) + for (j = 0; idx + j + 4 <= datasize; j += 4) { unsigned long member = bfd_get_32 (abfd, data + idx + j); - /* Print single IMAGE_IMPORT_BY_NAME vector. */ + /* Print single IMAGE_IMPORT_BY_NAME vector. */ if (member == 0) break; @@ -1342,9 +1336,10 @@ pe_print_idata (bfd * abfd, void * vfile) table holds actual addresses. */ if (time_stamp != 0 && first_thunk != 0 - && first_thunk != hint_addr) + && first_thunk != hint_addr + && j + 4 <= ft_datasize) fprintf (file, "\t%04lx", - (unsigned long) bfd_get_32 (abfd, ft_data + ft_idx + j)); + (unsigned long) bfd_get_32 (abfd, ft_data + j)); fprintf (file, "\n"); } @@ -1583,7 +1578,7 @@ pe_print_edata (bfd * abfd, void * vfile) /* This really is architecture dependent. On IA-64, a .pdata entry consists of three dwords containing relative virtual addresses that specify the start and end address of the code range the entry - covers and the address of the corresponding unwind info data. + covers and the address of the corresponding unwind info data. On ARM and SH-4, a compressed PDATA structure is used : _IMAGE_CE_RUNTIME_FUNCTION_ENTRY, whereas MIPS is documented to use @@ -1828,7 +1823,6 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile) bfd_vma other_data; bfd_vma prolog_length, function_length; int flag32bit, exception_flag; - bfd_byte *tdata = 0; asection *tsection; if (i + PDATA_ROW_SIZE > stop) @@ -1860,12 +1854,13 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile) if (tsection && coff_section_data (abfd, tsection) && pei_section_data (abfd, tsection)) { - if (bfd_malloc_and_get_section (abfd, tsection, & tdata)) - { - int xx = (begin_addr - 8) - tsection->vma; + bfd_vma eh_off = (begin_addr - 8) - tsection->vma; + bfd_byte *tdata; - tdata = (bfd_byte *) bfd_malloc (8); - if (bfd_get_section_contents (abfd, tsection, tdata, (bfd_vma) xx, 8)) + tdata = (bfd_byte *) bfd_malloc (8); + if (tdata) + { + if (bfd_get_section_contents (abfd, tsection, tdata, eh_off, 8)) { bfd_vma eh, eh_data; @@ -1883,11 +1878,6 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile) } free (tdata); } - else - { - if (tdata) - free (tdata); - } } fprintf (file, "\n"); @@ -2194,7 +2184,7 @@ _bfd_XX_bfd_copy_private_bfd_data_common (bfd * ibfd, bfd * obfd) ipe = pe_data (ibfd); ope = pe_data (obfd); - + /* pe_opthdr is copied in copy_object. */ ope->dll = ipe->dll; @@ -2266,6 +2256,21 @@ _bfd_XX_get_symbol_info (bfd * abfd, asymbol *symbol, symbol_info *ret) coff_get_symbol_info (abfd, symbol, ret); } +#if !defined(COFF_WITH_pep) && defined(COFF_WITH_pex64) +static int +sort_x64_pdata (const void *l, const void *r) +{ + const char *lp = (const char *) l; + const char *rp = (const char *) r; + bfd_vma vl, vr; + vl = bfd_getl32 (lp); vr = bfd_getl32 (rp); + if (vl != vr) + return (vl < vr ? -1 : 1); + /* We compare just begin address. */ + return 0; +} +#endif + /* Handle the .idata section and other things that need symbol table access. */ @@ -2288,7 +2293,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo) ".idata$2", FALSE, FALSE, TRUE); if (h1 != NULL) { - /* PR ld/2729: We cannot rely upon all the output sections having been + /* PR ld/2729: We cannot rely upon all the output sections having been created properly, so check before referencing them. Issue a warning message for any sections tht could not be found. */ if ((h1->root.type == bfd_link_hash_defined @@ -2302,7 +2307,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo) else { _bfd_error_handler - (_("%B: unable to fill in DataDictionary[1] because .idata$2 is missing"), + (_("%B: unable to fill in DataDictionary[1] because .idata$2 is missing"), abfd); result = FALSE; } @@ -2322,7 +2327,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo) else { _bfd_error_handler - (_("%B: unable to fill in DataDictionary[1] because .idata$4 is missing"), + (_("%B: unable to fill in DataDictionary[1] because .idata$4 is missing"), abfd); result = FALSE; } @@ -2343,7 +2348,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo) else hooks/post-receive -- Repository for Project Archer.