The branch, archer-jankratochvil-ifunc has been updated via e4ba56060c812b574652769ff1bd2b8ee689c6a3 (commit) via 0e61b8f8c05ad048c8a8b389a95e028c9a1bb2e5 (commit) via 5846c255b9683569db7b190a1e2fff0bc2b7daa5 (commit) via bfff092af698385a31a2971eb0a4e8bdfa8da851 (commit) via 481758f36a72666fba2f51c5acba5041552692da (commit) via 27aa34020b6d476f37354412c7771f51b080362f (commit) via 12c8f5d59208eb2ca1a2a89b72c6c235fcefce16 (commit) via 33d7c71c396a43d88802bbfc9fba2fb50569343a (commit) via 6049824f83bbc989e5ae525bbfb9d24c2193391c (commit) via aeb63b0c576869873a05f61ef95f6b7aa31bcf96 (commit) via bcd9cefd95ef10bdff092ab45d4b86cced145546 (commit) via 74091bda99cd6a5787f35f8f794318dd9da1a87d (commit) via 14c4542acf3ea5f188f337896038f62bbff7d5b5 (commit) via b94e1f54604f46b3abd2e89a70039a9b46bee59d (commit) via 25479224fe5afb23760e221b64b7861be340b37e (commit) via 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739 (commit) via 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef (commit) via afcf4b3b52e4f176adf703654c23521339664c7a (commit) via 5a6141003c1f04b7838ee99530f89055af9796ca (commit) via 2df921352070c2c0f7f17158819b1bb1fd1a1705 (commit) via 4a606a5869bee8d22173d97b6812522ab5ecb05d (commit) via e57f43f7c336779d0fd6f4ce392e1db12b9ac85a (commit) via 06633d67db82063034e3cc105fa8b5ffdacce9a2 (commit) via 37bde896562679ba37be73037ed6472d8979c992 (commit) via 85043749c0d9c48a1df339c2abec34666372b926 (commit) via 3dc6acc440f2f2f7591725745d722084af67c4a3 (commit) via f6ead6fc0a658a7afd05ef4ef3a7e87205acb35b (commit) via 5dd9099a78c68ed7236d05bc68577a5add112a94 (commit) via 74b9a75634ec6c99954a12193f069ecc0ae5f0b8 (commit) via 6377a17b8a49ab4b605ba9a2cc98a5d1a2d21554 (commit) via 7a3d60970ab30647c9c764c592cb37f075aef1e6 (commit) via 575d4a276cceae9dca086aced83dece6146a5fe6 (commit) via 9104dec90808466c32a1ad779f5a5f245f37c0aa (commit) via a278b5cd359951f2b3253a959030e0bbf3665c75 (commit) via 7216983b2d30504b9a96a17ace0ea4fee6e1db47 (commit) via 84c6de3ee39304d76c68e1ea88bc6d75b34f8daf (commit) via 20df578ed9d61cc5cd9113f72285e139974a344f (commit) via 33498f80a3a279dce0dbfd724289199ed23e63b8 (commit) via eeadbabcf77257ae60f84ce3184ee0b7b34536a0 (commit) via b649aae600aaf20eeb32a09db2c82b53bb98d1f5 (commit) via cc6120f6a3bc5173c88d544c8a4d0d69dfbb046d (commit) via 11509856353904812db40b3b79c006eb1cf9a96e (commit) via a238042dde756b1fb3b48d9e3c34ce55abd17aed (commit) via 2a0ec0ef8651f86bf287cae14d8c54479e66712a (commit) via 2bf340a2b512ce113adfff5896bd1038d5ea3010 (commit) via 4e426a44169aa4bdeb083df41b2c796aa4983d1a (commit) via ed72348da877003a79bfa638c04afed888ce045e (commit) via 68f6d79556b69b7fa29d45def7e1c0698d15b0d8 (commit) via db503edb0afb52d8968e311c899584c360310195 (commit) via 79f1ed6698822a05df34c50f17b6f5a005d36814 (commit) via 283d3048b8104c73aa26c9043f9060e76b4ff76a (commit) via eca44a2f60590f2f3b4f260bdbda3f8a33c63445 (commit) via d6dcd8053a4e62bdaf8a61a09f32e121381a6f9e (commit) via c00272d0efed928c7d50cda09807ac3950398221 (commit) via 4246390fbd284b2e517ed4763f9d45d72c1a0f06 (commit) via cfc9023d2133cce960a6d681bf7723ae8038e2b7 (commit) via 42e4390712b62485ea24731a206383262afa2d6b (commit) via db68a0fa32ddaffadeeb85f95c79946cb7fd377d (commit) via 5e4c906eb6cce993924868d595dc00c33995ad9d (commit) via 9cc1d8196b09ecdc06dba8d9789f8444ce7e11cc (commit) via 1563e18c9a4f8722d29859d93472e8ef0ef027ec (commit) via 46d5c6c7c1e84e848900c48bcefeae63d1069918 (commit) via 8cde78c90e6a3e6414fe6f1d2d571ee31c84323c (commit) via a550e1ac51b0b7b8ef007f1b91c832e42f4fe653 (commit) via c33426511d186177d3e2560a34ef22ae6c661e55 (commit) via da31dd735d1717c9dd27f624b1eb6c4d520172ad (commit) via d4f0e7b2b5be782c12064e999e134803d20f5f17 (commit) via cf374bc0a80aa48c596cfdd4195aa9f16a2ab494 (commit) via f761eed640331f50f36d4abf7fce2d9db7a6a73f (commit) via a27fecec8210aa17ba10d1ac88c095557d4ca747 (commit) via d5365e849582d34d45cc8b1e66dde6c8ff73013f (commit) via 3ab54415dd0f60d361f17b6496a679f358628560 (commit) via b7311588e483130ae4294d614ba4f89125d9986b (commit) via 1acf3d3f05f0ec7d3d387e7044a4f9ba7fcf5c23 (commit) via cf82aa90a05326869c819880c2dd11f80c70223a (commit) from d2236f7c0c3e8aa6d8b0ea987612f94b5f72a08b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit e4ba56060c812b574652769ff1bd2b8ee689c6a3 Merge: d2236f7c0c3e8aa6d8b0ea987612f94b5f72a08b 0e61b8f8c05ad048c8a8b389a95e028c9a1bb2e5 Author: Jan Kratochvil Date: Sun Dec 6 18:44:37 2009 +0100 Merge remote branch 'origin/master' into archer-jankratochvil-ifunc ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 36 +- bfd/acinclude.m4 | 2 + bfd/coff-i386.c | 12 +- bfd/configure | 54 +- bfd/configure.in | 2 +- bfd/elf32-ppc.c | 10 +- bfd/elf64-ppc.c | 9 +- bfd/mach-o.c | 9 +- bfd/plugin.c | 1 + bfd/version.h | 2 +- config/ChangeLog | 9 + config/largefile.m4 | 5 + config/zlib.m4 | 18 + gdb/ChangeLog | 128 + gdb/acinclude.m4 | 2 + gdb/ada-lang.c | 111 +- gdb/breakpoint.c | 37 +- gdb/c-exp.y | 18 + gdb/charset.c | 5 +- gdb/coffread.c | 3 +- gdb/configure | 269 +- gdb/configure.ac | 2 +- gdb/dbxread.c | 13 +- gdb/defs.h | 1 - gdb/doc/ChangeLog | 23 + gdb/doc/gdb.texinfo | 25 +- gdb/doc/observer.texi | 5 + gdb/dwarf2read.c | 18 +- gdb/elfread.c | 3 +- gdb/gcore.c | 3 +- gdb/gdbserver/ChangeLog | 18 + gdb/gdbserver/win32-low.c | 38 +- gdb/interps.c | 1 - gdb/linux-thread-db.c | 6 +- gdb/machoread.c | 9 +- gdb/python/py-type.c | 8 + gdb/python/python.c | 25 + gdb/s390-nat.c | 2 +- gdb/solib-svr4.c | 45 + gdb/solib.c | 17 + gdb/solib.h | 8 + gdb/solist.h | 8 + gdb/somread.c | 2 +- gdb/stabsread.h | 7 +- gdb/symfile.h | 2 +- gdb/target.c | 6 +- gdb/testsuite/ChangeLog | 58 + gdb/testsuite/gdb.base/bigcore.exp | 2 +- gdb/testsuite/gdb.base/condbreak.exp | 31 +- gdb/testsuite/gdb.base/foll-fork.c | 3 +- gdb/testsuite/gdb.base/foll-fork.exp | 3 +- gdb/testsuite/gdb.base/hbreak.exp | 2 +- gdb/testsuite/gdb.base/pr11022.c | 32 + gdb/testsuite/gdb.base/pr11022.exp | 58 + gdb/testsuite/gdb.base/structs.c | 6 + gdb/testsuite/gdb.base/structs.exp | 60 +- gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp | 2 +- gdb/testsuite/gdb.cp/extern-c.cc | 38 + gdb/testsuite/gdb.cp/extern-c.exp | 47 + gdb/testsuite/gdb.python/Makefile.in | 2 +- gdb/testsuite/gdb.python/py-type.c | 56 + gdb/testsuite/gdb.python/py-type.exp | 114 + gdb/testsuite/gdb.python/py-value.exp | 12 + gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +- gdb/top.c | 3 - gdb/valops.c | 34 +- gdb/version.in | 2 +- include/ChangeLog | 5 + include/coff/ChangeLog | 6 + include/coff/i386.h | 28 +- include/coff/x86_64.h | 4 +- include/elf/ChangeLog | 6 + include/elf/common.h | 8 +- include/elf/mips.h | 1 + libdecnumber/ChangeLog | 5 + libdecnumber/decContext.c | 4 +- libiberty/ChangeLog | 15 + libiberty/README | 10 +- libiberty/configure | 25 +- libiberty/configure.ac | 25 +- libiberty/functions.texi | 25 +- libiberty/gather-docs | 2 +- opcodes/ChangeLog | 30 + opcodes/arm-dis.c | 8 +- opcodes/i386-dis.c | 55 +- opcodes/i386-opc.tbl | 2 + opcodes/i386-tbl.h | 20 + opcodes/m68k-opc.c | 2 +- sim/ChangeLog | 13 + sim/arm/configure | 26 +- sim/avr/configure | 26 +- sim/common/ChangeLog | 4 + sim/common/aclocal.m4 | 1 + sim/common/cgen-engine.h | 12 - sim/common/common.m4 | 2 +- sim/common/configure | 21 +- sim/cr16/configure | 26 +- sim/cris/configure | 26 +- sim/d10v/configure | 26 +- sim/erc32/configure | 26 +- sim/frv/configure | 26 +- sim/h8300/configure | 26 +- sim/iq2000/configure | 26 +- sim/lm32/configure | 26 +- sim/m32c/configure | 26 +- sim/m32r/configure | 26 +- sim/m68hc11/configure | 26 +- sim/mcore/configure | 26 +- sim/microblaze/configure | 3748 +++++++------------- sim/mips/configure | 26 +- sim/mn10300/configure | 26 +- sim/moxie/configure | 36 +- sim/ppc/configure | 21 +- sim/ppc/configure.ac | 2 +- sim/rx/ChangeLog | 4 + sim/rx/rx.c | 6 +- sim/sh/configure | 26 +- sim/sh64/configure | 26 +- sim/v850/configure | 26 +- 119 files changed, 3391 insertions(+), 2863 deletions(-) create mode 100644 config/zlib.m4 create mode 100644 gdb/testsuite/gdb.base/pr11022.c create mode 100644 gdb/testsuite/gdb.base/pr11022.exp create mode 100644 gdb/testsuite/gdb.cp/extern-c.cc create mode 100644 gdb/testsuite/gdb.cp/extern-c.exp create mode 100644 gdb/testsuite/gdb.python/py-type.c create mode 100644 gdb/testsuite/gdb.python/py-type.exp First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2f7a85d..00ae4cf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,35 @@ +2009-12-03 Tristan Gingold + + * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for + all sections of the __DWARF segment. + +2009-12-03 Alan Modra + + PR ld/11047 + * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr + symbol reference from relocs belonging to calls that are + optimized away. + * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. + +2009-12-02 Jerker Bäck + + PR binutils/11017 + * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h + +2009-11-30 Joseph Myers + + * configure: Regenerate. + +2009-11-26 Per Øyvind Karlsen + + * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define. + +2009-11-24 Joel Brobecker + + * acinclude.m4: Add include of ../config/zlib.m4. + * configure.in: AM_ZLIB to check for zlib support. + * configure: Regenerate. + 2009-11-23 Paul Brook * libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add @@ -7,9 +39,9 @@ * elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function. * targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add _copy_link_hash_symbol_type. - * bfd/coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add + * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add _bfd_generic_copy_link_hash_symbol_type. - * bfd/coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add + * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add _bfd_generic_copy_link_hash_symbol_type. * aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define. * aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define. diff --git a/bfd/acinclude.m4 b/bfd/acinclude.m4 index aaa147e..d9813bd 100644 --- a/bfd/acinclude.m4 +++ b/bfd/acinclude.m4 @@ -1,3 +1,5 @@ +sinclude([../config/zlib.m4]) + dnl See whether we need to use fopen-bin.h rather than fopen-same.h. AC_DEFUN([BFD_BINARY_FOPEN], [AC_REQUIRE([AC_CANONICAL_TARGET]) diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c index 9a763d5..e512b3f 100644 --- a/bfd/coff-i386.c +++ b/bfd/coff-i386.c @@ -1,6 +1,6 @@ /* BFD back-end for Intel 386 COFF files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 + 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. Written by Cygnus Support. @@ -44,13 +44,13 @@ #include "libcoff.h" static bfd_reloc_status_type coff_i386_reloc - PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **)); + (bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **); static reloc_howto_type *coff_i386_rtype_to_howto - PARAMS ((bfd *, asection *, struct internal_reloc *, - struct coff_link_hash_entry *, struct internal_syment *, - bfd_vma *)); + (bfd *, asection *, struct internal_reloc *, + struct coff_link_hash_entry *, struct internal_syment *, + bfd_vma *); static reloc_howto_type *coff_i386_reloc_type_lookup - PARAMS ((bfd *, bfd_reloc_code_real_type)); + (bfd *, bfd_reloc_code_real_type); #define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2) /* The page size is a guess based on ELF. */ diff --git a/bfd/configure b/bfd/configure index bef4a39..d5c3426 100755 --- a/bfd/configure +++ b/bfd/configure @@ -934,6 +934,7 @@ enable_build_warnings enable_maintainer_mode enable_install_libbfd enable_nls +with_zlib ' ac_precious_vars='build_alias host_alias @@ -1595,6 +1596,7 @@ Optional Packages: --with-pkgversion=PKG Use PKG in the version string in place of "GNU Binutils" --with-bugurl=URL Direct users to URL to report a bug + --with-zlib include zlib support (auto/yes/no) default=auto Some influential environment variables: CC C compiler command @@ -5982,13 +5984,13 @@ if test "${lt_cv_nm_interface+set}" = set; then : else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:5985: $ac_compile\"" >&5) + (eval echo "\"\$as_me:5987: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:5988: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:5991: output\"" >&5) + (eval echo "\"\$as_me:5993: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -7193,7 +7195,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 7196 "configure"' > conftest.$ac_ext + echo '#line 7198 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8424,11 +8426,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8427: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8429: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8431: \$? = $ac_status" >&5 + echo "$as_me:8433: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8763,11 +8765,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8766: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8768: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8770: \$? = $ac_status" >&5 + echo "$as_me:8772: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8868,11 +8870,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8871: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8873: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8875: \$? = $ac_status" >&5 + echo "$as_me:8877: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -8923,11 +8925,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8926: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8928: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8930: \$? = $ac_status" >&5 + echo "$as_me:8932: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11305,7 +11307,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11308 "configure" +#line 11310 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11401,7 +11403,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11404 "configure" +#line 11406 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11631,6 +11633,11 @@ CC="$lt_save_CC" # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. +# The tests for host and target for $enable_largefile require +# canonical names. + + + # As the $enable_largefile decision depends on --enable-plugins we must set it # even in directories otherwise not depending on the $plugins option. @@ -13588,7 +13595,19 @@ _ACEOF # Link in zlib if we can. This allows us to read compressed debug sections. # This is used only by compress.c. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 + + # See if the user specified whether he wants zlib support or not. + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; +else + with_zlib=auto +fi + + + if test "$with_zlib" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 $as_echo_n "checking for library containing zlibVersion... " >&6; } if test "${ac_cv_search_zlibVersion+set}" = set; then : $as_echo_n "(cached) " >&6 @@ -13655,6 +13674,11 @@ done fi + if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then + as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 + fi + fi + # If we are configured native, pick a core file support file. COREFILE= diff --git a/bfd/configure.in b/bfd/configure.in index f96128e..d2d12bd 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -206,7 +206,7 @@ AC_CHECK_DECLS(vsnprintf) # Link in zlib if we can. This allows us to read compressed debug sections. # This is used only by compress.c. -AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) +AM_ZLIB # If we are configured native, pick a core file support file. COREFILE= diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index e4fdc1e..976dd37 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -6929,9 +6929,7 @@ ppc_elf_relocate_section (bfd *output_bfd, insn1 |= 32 << 26; /* lwz */ if (offset != (bfd_vma) -1) { - rel[1].r_info - = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info), - R_PPC_NONE); + rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE); insn2 = 0x7c631214; /* add 3,3,2 */ bfd_put_32 (output_bfd, insn2, contents + offset); } @@ -7005,8 +7003,7 @@ ppc_elf_relocate_section (bfd *output_bfd, bfd_put_32 (output_bfd, insn2, contents + offset); /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (offset == rel[1].r_offset); - rel[1].r_info = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info), - R_PPC_NONE); + rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE); } break; @@ -7035,8 +7032,7 @@ ppc_elf_relocate_section (bfd *output_bfd, contents + rel->r_offset - d_offset); /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (rel->r_offset - d_offset == rel[1].r_offset); - rel[1].r_info = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info), - R_PPC_NONE); + rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE); rel--; continue; } diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index e748a41..94f89c5 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -11102,8 +11102,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, insn1 |= 58 << 26; /* ld */ insn2 = 0x7c636a14; /* add 3,3,13 */ if (offset != (bfd_vma) -1) - rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info), - R_PPC64_NONE); + rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE); if ((tls_mask & TLS_EXPLICIT) == 0) r_type = (((r_type - (R_PPC64_GOT_TLSGD16 & 3)) & 3) + R_PPC64_GOT_TPREL16_DS); @@ -11202,8 +11201,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, rel->r_info = ELF64_R_INFO (r_symndx, r_type); /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (offset == rel[1].r_offset); - rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info), - R_PPC64_NONE); + rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE); insn3 = bfd_get_32 (output_bfd, contents + offset + 4); if (insn3 == NOP @@ -11248,8 +11246,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, rel->r_offset = offset + d_offset; /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (offset == rel[1].r_offset); - rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info), - R_PPC64_NONE); + rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE); insn2 = 0x38630000; /* addi 3,3,0 */ insn3 = bfd_get_32 (output_bfd, contents + offset + 4); diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 641fd9b..766fb3d 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -1480,8 +1480,13 @@ bfd_mach_o_make_bfd_section (bfd *abfd, bfd_mach_o_section *section, if (sname == NULL) return NULL; - if (section->flags & BFD_MACH_O_S_ATTR_DEBUG) - flags = SEC_HAS_CONTENTS | SEC_DEBUGGING; + if ((section->flags & BFD_MACH_O_S_ATTR_DEBUG) + || !strcmp (section->segname, "__DWARF")) + { + /* Force flags for dwarf sections. This looks weird but dsym files + have no flags for them and this is important for gdb. */ + flags = SEC_HAS_CONTENTS | SEC_DEBUGGING; + } else { flags = SEC_ALLOC; diff --git a/bfd/plugin.c b/bfd/plugin.c index 2874fa6..8cdc7ae 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -68,6 +68,7 @@ #define bfd_plugin_bfd_discard_group bfd_generic_discard_group #define bfd_plugin_section_already_linked _bfd_generic_section_already_linked #define bfd_plugin_bfd_define_common_symbol bfd_generic_define_common_symbol +#define bfd_plugin_bfd_copy_link_hash_symbol_type _bfd_generic_copy_link_hash_symbol_type static enum ld_plugin_status message (int level ATTRIBUTE_UNUSED, diff --git a/bfd/version.h b/bfd/version.h index 60d9c6e..2e2917e 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20091123 +#define BFD_VERSION_DATE 20091206 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/config/ChangeLog b/config/ChangeLog index 7b6ded0..9e524fc 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,12 @@ +2009-11-30 Joseph Myers + + * largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and + AC_CANONICAL_TARGET. + +2009-11-24 Joel Brobecker + + * zlib.m4: New file. + 2009-11-09 Jan Kratochvil * largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS. diff --git a/config/largefile.m4 b/config/largefile.m4 index 9449b12..4a88fd7 100644 --- a/config/largefile.m4 +++ b/config/largefile.m4 @@ -5,6 +5,11 @@ AC_DEFUN([ACX_LARGEFILE],[dnl +# The tests for host and target for $enable_largefile require +# canonical names. +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_CANONICAL_TARGET]) + # As the $enable_largefile decision depends on --enable-plugins we must set it # even in directories otherwise not depending on the $plugins option. diff --git a/config/zlib.m4 b/config/zlib.m4 new file mode 100644 index 0000000..b017499 --- /dev/null +++ b/config/zlib.m4 @@ -0,0 +1,18 @@ +dnl A function to check for zlib availability. zlib is used by default +dnl unless the user configured with --disable-nls. + +AC_DEFUN([AM_ZLIB], +[ + # See if the user specified whether he wants zlib support or not. + AC_ARG_WITH(zlib, + [ --with-zlib include zlib support (auto/yes/no) [default=auto]], + [], [with_zlib=auto]) + + if test "$with_zlib" != "no"; then + AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) + if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then + AC_MSG_ERROR([zlib (libz) library was explicitly requested but not found]) + fi + fi +]) + diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 71a5bd4..375f968 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,131 @@ +2009-12-04 Daniel Jacobowitz + + * valops.c (value_struct_elt_for_reference): Do not rely on + field order. + +2009-12-03 Richard Ward + + * python/py-type.c (convert_field): New attribute "is_base_class". + +2009-12-03 Tom Tromey + + * python/python.c (gdbpy_parse_and_eval): New function. + (GdbMethods): Add "parse_and_eval". + +2009-12-03 Jan Kratochvil + + * linux-thread-db.c (find_new_threads_once): Change errp and err types + to td_err_e. + (thread_db_find_new_threads_2): Change err type to td_err_e. + +2009-12-03 Paul Pluzhnikov + + PR gdb/11022 + + * breakpoint.c (invalidate_bp_value_on_memory_change): + New function. + (_initialize_breakpoint): Add it as memory change observer. + +2009-12-03 Tristan Gingold + + * machoread.c (macho_sym_fns): Set sym_segment routine. + +2009-12-02 Paul Pluzhnikov + + * ada-lang.c (ada_value_assign): Use observer_notify_memory_changed. + * valops.c (value_assign): Likewise. + * defs.h (deprecated_memory_changed_hook): Remove. + * top.c (deprecated_memory_changed_hook): Likewise. + * interps.c (clear_interpreter_hooks): Adjust. + +2009-12-02 Tristan Gingold + + * symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in + prototype. + * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in + definition, simplify code assuming it is always 0. + * coffread.c (coff_symfile_read): Adjust call. + * elfread.c (elf_symfile_read): Ditto. + * machoread.c (macho_symfile_read): Explicitely calls + init_psymbol_list if mainline is set. + +2009-12-02 Tristan Gingold + + * dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter. + (dwarf2_build_psymtabs_hard): Ditto. + (dwarf2_build_psymtabs): Ajust calls. hooks/post-receive -- Repository for Project Archer.