This is the mail archive of the archer-commits@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount


The branch, archer-jankratochvil-type-refcount has been updated
       via  4351eee77e1db8d68c939b25f58dfd66c3a8172e (commit)
       via  9a699cf8afd57133b773c4a9361a0f690af5c58f (commit)
       via  7d17e2337401bb302a22f9c7fdad73cd7a914a87 (commit)
       via  a224e6ccc94981b8a0828be3c3d21f4541d52128 (commit)
       via  26d4ef2df7a76cd289b89889169daa7911881672 (commit)
       via  3c767f84e128752bae02a1d74d3fb09e5b1c9d7c (commit)
       via  ec69b3c41eb9a1f3167e4551a05d27bd6be027c3 (commit)
       via  c5bb7e969b994edce20267a63ee04f36e8f9620d (commit)
       via  8899d4331cfc4aee5a6edd360e76f191b903f071 (commit)
       via  da4bf6986d6653797ce70d5b7066a8067cc53dfe (commit)
       via  4134335ba0d9d44095d86a22231651c718fd32ce (commit)
       via  24113834628253bfe036c4fe9d23ea4d53c235d6 (commit)
       via  e8891fa40b3f73f1152032f62aba8b1b411849a4 (commit)
       via  e04510d64f511214faefa919ad8c9a42159419aa (commit)
       via  35f32120ad15a76ef2b14a33f969125d322e6184 (commit)
       via  b26ec9faecb98fe4bd3999b873037036508f6b02 (commit)
       via  2ef39d9944a919946a2fdbf42f004e77ae19ade4 (commit)
       via  b2fe62372a27119ef2284a92c445914a28990477 (commit)
       via  1307cd2ae0a523ceb73ec390d8362a757f94a660 (commit)
       via  6865e2736c985c987d818e25208d6d63b3460d45 (commit)
       via  e6b0c1ad0917384d1260865e7b20c6f9cb10f117 (commit)
       via  841d691fed9a8fc9db1949ecb229b384e41bef15 (commit)
       via  d4e5cee56a2738ae504562fec162bb3819279d51 (commit)
       via  acf186171ca3ebd5961e994bdb9e71360c714e35 (commit)
       via  d33bf9563716b425558fec32234086b9f9d7d1eb (commit)
       via  948bf30c312ce74bf7f515ad95b0f783efd84fdf (commit)
       via  9ed41d50e43895863854bde267ab1842e4dc477c (commit)
       via  8ecc6922cac67b2bee18e162cfcdc69d5938ffd5 (commit)
       via  0ebbe3ae9e562b5039b4323e61d44df41fc915db (commit)
       via  ac4b4de77049be06aa3ee102a79af90bd77fffd5 (commit)
       via  d5d17740486ad1e5324beceeba57f59941d7bbed (commit)
       via  9a2eeb81a22edf6760efb1389cb58b8ea7bf8ff7 (commit)
       via  2b75ea4b9590089a7a907ef88c5e8a1d75a56d3c (commit)
       via  da573d42232a05b5ca86048af6e08784158791c4 (commit)
       via  39ee73fab9f2e8f3fa03642a2d2622b7c49b312b (commit)
       via  bfa964f289df99884e9cb623e955f6281df67c7a (commit)
       via  0db0b83dcabe31eb1b62a382906daf3bd4516931 (commit)
       via  648da326b4f6154d38d6b33467cc59995910b017 (commit)
       via  7eeead7a420178296192d6f68ab3f5801f37b72a (commit)
       via  b589d11dd7dbe4f6b003b89b5775af7351be0cce (commit)
       via  8995495e350f6e655aa317f3575927be901c021d (commit)
       via  1d0d42a6ee9d864a760f8845ab3106c027fc8ada (commit)
       via  baa72fa0d5ac0f8d080211e32f53a94721756473 (commit)
       via  db5a5859b593fe205b9cba3a059f55a44d1a2a63 (commit)
       via  033e719dfdb4b493bfd695d6160b8bbf769bcd50 (commit)
       via  9313292cc01b0b0a837c35184a7c4db427ceae27 (commit)
       via  3e226ec735dd1bfd775183462870e6d771f8f82d (commit)
       via  66ba0837d6c589b2e6cac11d7b9748aeec2adaa1 (commit)
       via  551bf58597015fed8ae48576b4569a1c60b6c865 (commit)
       via  d75e82657af0bb09d60974367fa8920daf220461 (commit)
       via  8e119381fedf5fe17122d8b04d902389867eb5d8 (commit)
       via  fd6d1d677c9fcdac98da7e1a535e96391677048d (commit)
       via  f76c85a6b66b32d852962627a92cfac16a0528b7 (commit)
      from  224991c247553118d391a66362e0ce39149b8c84 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 4351eee77e1db8d68c939b25f58dfd66c3a8172e
Merge: 224991c247553118d391a66362e0ce39149b8c84 9a699cf8afd57133b773c4a9361a0f690af5c58f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 19 18:56:26 2009 +0200

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                 |    9 +
 bfd/ChangeLog                             |   79 ++++++
 bfd/Makefile.am                           |   10 +
 bfd/Makefile.in                           |   10 +
 bfd/aout-adobe.c                          |    1 +
 bfd/aout-target.h                         |    3 +
 bfd/aout-tic30.c                          |    3 +
 bfd/archures.c                            |    4 +
 bfd/bfd-in2.h                             |   16 ++-
 bfd/binary.c                              |    1 +
 bfd/bout.c                                |    1 +
 bfd/coff-alpha.c                          |    1 +
 bfd/coff-mips.c                           |    1 +
 bfd/coff-rs6000.c                         |    2 +
 bfd/coff64-rs6000.c                       |    2 +
 bfd/coffcode.h                            |   17 ++-
 bfd/coffgen.c                             |    5 +
 bfd/config.bfd                            |    4 +
 bfd/configure                             |    1 +
 bfd/configure.in                          |    1 +
 bfd/cpu-moxie.c                           |   40 +++
 bfd/elf32-arm.c                           |   34 ++-
 bfd/elf32-moxie.c                         |  378 +++++++++++++++++++++++++++++
 bfd/elfxx-target.h                        |    4 +
 bfd/i386msdos.c                           |    1 +
 bfd/i386os9k.c                            |    1 +
 bfd/ieee.c                                |    1 +
 bfd/ihex.c                                |    1 +
 bfd/libbfd-in.h                           |    3 +
 bfd/libbfd.h                              |    3 +
 bfd/libcoff-in.h                          |    2 +
 bfd/libcoff.h                             |    2 +
 bfd/linker.c                              |   59 +++++
 bfd/mach-o.c                              |    1 +
 bfd/mmo.c                                 |    1 +
 bfd/nlm-target.h                          |    1 +
 bfd/oasys.c                               |    1 +
 bfd/pef.c                                 |    1 +
 bfd/ppcboot.c                             |    1 +
 bfd/som.c                                 |    1 +
 bfd/srec.c                                |    1 +
 bfd/targets.c                             |    9 +-
 bfd/tekhex.c                              |    1 +
 bfd/versados.c                            |    1 +
 bfd/version.h                             |    2 +-
 bfd/vms.c                                 |    1 +
 bfd/xcoff-target.h                        |    1 +
 bfd/xcofflink.c                           |   28 ++-
 bfd/xsym.c                                |    1 +
 config.guess                              |   15 +-
 config.sub                                |   11 +-
 configure                                 |    6 +-
 configure.ac                              |    4 +
 gdb/ChangeLog                             |  116 +++++++++
 gdb/ada-exp.y                             |    2 +-
 gdb/ada-lang.c                            |   93 ++------
 gdb/ada-lang.h                            |   12 -
 gdb/c-lang.c                              |   16 +-
 gdb/charset.c                             |  119 +++++++--
 gdb/config.in                             |    3 +
 gdb/config/djgpp/config.sed               |    1 +
 gdb/config/djgpp/djconfig.sh              |    4 +
 gdb/configure                             |    3 +-
 gdb/configure.ac                          |    2 +-
 gdb/doc/ChangeLog                         |   14 +
 gdb/doc/gdb.texinfo                       |    4 +-
 gdb/doc/gdbint.texinfo                    |   48 ++--
 gdb/gdb_wchar.h                           |   48 +++-
 gdb/go32-nat.c                            |    6 +-
 gdb/infrun.c                              |   47 +++--
 gdb/m68klinux-nat.c                       |   64 +----
 gdb/python/python-frame.c                 |   20 +-
 gdb/remote.c                              |    2 +-
 gdb/target.c                              |    6 +
 gdb/testsuite/ChangeLog                   |   13 +
 gdb/testsuite/gdb.base/charset.exp        |    5 +
 gdb/testsuite/gdb.base/exe-lock.exp       |   63 +++++
 gdb/testsuite/gdb.python/python-frame.exp |    2 +
 gdb/utils.c                               |    2 +-
 gdb/version.in                            |    2 +-
 include/dis-asm.h                         |    1 +
 include/elf/ChangeLog                     |    5 +
 include/elf/common.h                      |    2 +
 include/elf/moxie.h                       |   31 +++
 include/opcode/ChangeLog                  |    4 +
 include/opcode/moxie.h                    |   68 +++++
 libdecnumber/ChangeLog                    |   51 ++++
 libdecnumber/Makefile.in                  |    7 +-
 libdecnumber/bid/bid-dpd.h                |   23 +-
 libdecnumber/bid/bid2dpd_dpd2bid.c        |   25 +--
 libdecnumber/bid/bid2dpd_dpd2bid.h        |   25 +--
 libdecnumber/bid/decimal128.c             |   21 +-
 libdecnumber/bid/decimal32.c              |   21 +-
 libdecnumber/bid/decimal64.c              |   21 +-
 libdecnumber/bid/host-ieee128.c           |   25 +--
 libdecnumber/bid/host-ieee32.c            |   25 +--
 libdecnumber/bid/host-ieee64.c            |   25 +--
 libdecnumber/configure.ac                 |    9 +-
 libdecnumber/dconfig.h                    |   25 +--
 libdecnumber/decBasic.c                   |   25 +--
 libdecnumber/decCommon.c                  |   25 +--
 libdecnumber/decContext.c                 |   25 +--
 libdecnumber/decContext.h                 |   25 +--
 libdecnumber/decDPD.h                     |   25 +--
 libdecnumber/decDouble.c                  |   25 +--
 libdecnumber/decDouble.h                  |   25 +--
 libdecnumber/decExcept.c                  |   25 +--
 libdecnumber/decExcept.h                  |   25 +--
 libdecnumber/decLibrary.c                 |   25 +--
 libdecnumber/decNumber.c                  |   25 +--
 libdecnumber/decNumber.h                  |   25 +--
 libdecnumber/decNumberLocal.h             |   25 +--
 libdecnumber/decPacked.c                  |   25 +--
 libdecnumber/decPacked.h                  |   25 +--
 libdecnumber/decQuad.c                    |   25 +--
 libdecnumber/decQuad.h                    |   25 +--
 libdecnumber/decRound.c                   |   25 +--
 libdecnumber/decRound.h                   |   25 +--
 libdecnumber/decSingle.c                  |   25 +--
 libdecnumber/decSingle.h                  |   25 +--
 libdecnumber/dpd/decimal128.c             |   25 +--
 libdecnumber/dpd/decimal128.h             |   25 +--
 libdecnumber/dpd/decimal128Local.h        |   25 +--
 libdecnumber/dpd/decimal32.c              |   25 +--
 libdecnumber/dpd/decimal32.h              |   25 +--
 libdecnumber/dpd/decimal64.c              |   25 +--
 libdecnumber/dpd/decimal64.h              |   25 +--
 libiberty/ChangeLog                       |   19 ++
 libiberty/configure                       |   73 ++++--
 libiberty/configure.ac                    |   39 ++--
 libiberty/pex-common.c                    |    4 +-
 libiberty/pex-common.h                    |    4 +-
 libiberty/pex-djgpp.c                     |    4 +-
 libiberty/pex-msdos.c                     |    4 +-
 libiberty/pex-win32.c                     |    8 +-
 opcodes/ChangeLog                         |   16 ++
 opcodes/Makefile.am                       |    9 +
 opcodes/Makefile.in                       |    9 +
 opcodes/configure                         |    1 +
 opcodes/configure.in                      |    1 +
 opcodes/i386-opc.tbl                      |   16 +-
 opcodes/i386-tbl.h                        |   16 +-
 opcodes/moxie-dis.c                       |  184 ++++++++++++++
 opcodes/moxie-opc.c                       |  136 +++++++++++
 144 files changed, 2262 insertions(+), 900 deletions(-)
 create mode 100644 bfd/cpu-moxie.c
 create mode 100644 bfd/elf32-moxie.c
 create mode 100644 gdb/testsuite/gdb.base/exe-lock.exp
 create mode 100644 include/elf/moxie.h
 create mode 100644 include/opcode/moxie.h
 create mode 100644 opcodes/moxie-dis.c
 create mode 100644 opcodes/moxie-opc.c

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 7aba867..9df0efa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-04-17  Ben Elliston  <bje@au.ibm.com>
+
+	* config.sub, config.guess: Update from upstream sources.
+
+2009-04-15  Anthony Green  <green@moxielogic.com>
+
+	* configure.ac: Add moxie support.
+	* configure: Rebuilt.
+
 2009-04-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
 	* configure.ac: Bump minimum GMP/MPFR versions to 4.2 and 2.3.1.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 679211b..894c497 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,82 @@
+2009-04-17  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
+	PLT entries to an undefined symbol when generating a shared
+	library.
+
+2009-04-17  Nick Clifton  <nickc@redhat.com>
+
+	PR 9909
+	* coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
+
+2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
+	* aout-target.h (MY_bfd_define_common_symbol): Likewise.
+	* aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
+	* binary.c (binary_bfd_define_common_symbol): Likewise.
+	* bout.c (b_out_bfd_define_common_symbol): Likewise.
+	* coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
+	* coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
+	* coffcode.h (coff_bfd_define_common_symbol): Likewise.
+	* elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
+	* i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
+	* i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
+	* ieee.c (ieee_bfd_define_common_symbol): Likewise.
+	* ihex.c (ihex_bfd_define_common_symbol): Likewise.
+	* libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
+	* mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
+	* mmo.c (mmo_bfd_define_common_symbol): Likewise.
+	* nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
+	* oasys.c (oasys_bfd_define_common_symbol): Likewise.
+	* pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
+	* ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
+	* som.c (som_bfd_define_common_symbol): Likewise.
+	* srec.c (srec_bfd_define_common_symbol): Likewise.
+	* tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
+	* versados.c (versados_bfd_define_common_symbol): Likewise.
+	* vms.c (vms_bfd_define_common_symbol): Likewise.
+	* xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
+	* xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
+	* coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
+	(pmac_xcoff_vec): Likewise.
+	* coff64-rs6000.c (rs6000coff64_vec): Likewise.
+	(aix5coff64_vec): Likewise.
+	* linker.c (bfd_generic_define_common_symbol): New function.
+	* targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
+	(_bfd_define_common_symbol): New field.
+	* libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
+	* xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
+	(xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
+	symbols here.
+	* bfd-in2.h: Regenerate.
+	* libbfd.h: Likewise.
+	* libcoff.h: Likewise.
+
+2009-04-15  Anthony Green  <green@moxielogic.com>
+
+	* targets.c: Add moxie support.
+	* Makefile.am: Ditto.
+	* Makefile.in: Rebuilt.
+	* cpu-moxie.c, elf32-moxie.c: New files.
+	* archures.c: Add moxie support.
+	* configure.in: Add moxie support.
+	* configure: Rebuilt.
+	* config.bfd, archures.c: Add moxie support.
+	* bfd-in2.h: Rebuilt.
+
+2009-04-15  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
+	branch to an undef weak symbol into a jump to next instruction if
+	a PLT entry will be created.
+
+2009-04-14  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+	* coffgen.c (make_a_section_from_file):  Set the backend long
+	section names enable if long section names found on input.
+	* coffcode.h:  Extend long section names documentation to match.
+
 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* elflink.c (elf_link_add_object_symbols): Warn alternate ELF
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index c55450e..683599a 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -74,6 +74,7 @@ ALL_MACHINES = \
 	cpu-dlx.lo \
 	cpu-fr30.lo \
 	cpu-frv.lo \
+	cpu-moxie.lo \
 	cpu-h8300.lo \
 	cpu-h8500.lo \
 	cpu-hppa.lo \
@@ -141,6 +142,7 @@ ALL_MACHINES_CFILES = \
 	cpu-dlx.c \
 	cpu-fr30.c \
 	cpu-frv.c \
+	cpu-moxie.c \
 	cpu-h8300.c \
 	cpu-h8500.c \
 	cpu-hppa.c \
@@ -258,6 +260,7 @@ BFD32_BACKENDS = \
 	elf32-dlx.lo \
 	elf32-fr30.lo \
 	elf32-frv.lo \
+	elf32-moxie.lo \
 	elf32-gen.lo \
 	elf32-h8300.lo \
 	elf32-hppa.lo \
@@ -440,6 +443,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-dlx.c \
 	elf32-fr30.c \
 	elf32-frv.c \
+	elf32-moxie.c \
 	elf32-gen.c \
 	elf32-h8300.c \
 	elf32-hppa.c \
@@ -1119,6 +1123,7 @@ cpu-d30v.lo: cpu-d30v.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-dlx.lo: cpu-dlx.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-fr30.lo: cpu-fr30.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-frv.lo: cpu-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
+cpu-moxie.lo: cpu-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8300.lo: cpu-h8300.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8500.lo: cpu-h8500.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-hppa.lo: cpu-hppa.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
@@ -1421,6 +1426,11 @@ elf32-frv.lo: elf32-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/frv.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
   elf32-target.h
+elf32-moxie.lo: elf32-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/moxie.h \
+  $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
+  elf32-target.h
 elf32-gen.lo: elf32-gen.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h elf32-target.h
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 190888e..24c8ee1 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -340,6 +340,7 @@ ALL_MACHINES = \
 	cpu-dlx.lo \
 	cpu-fr30.lo \
 	cpu-frv.lo \
+	cpu-moxie.lo \
 	cpu-h8300.lo \
 	cpu-h8500.lo \
 	cpu-hppa.lo \
@@ -407,6 +408,7 @@ ALL_MACHINES_CFILES = \
 	cpu-dlx.c \
 	cpu-fr30.c \
 	cpu-frv.c \
+	cpu-moxie.c \
 	cpu-h8300.c \
 	cpu-h8500.c \
 	cpu-hppa.c \
@@ -525,6 +527,7 @@ BFD32_BACKENDS = \
 	elf32-dlx.lo \
 	elf32-fr30.lo \
 	elf32-frv.lo \
+	elf32-moxie.lo \
 	elf32-gen.lo \
 	elf32-h8300.lo \
 	elf32-hppa.lo \
@@ -707,6 +710,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-dlx.c \
 	elf32-fr30.c \
 	elf32-frv.c \
+	elf32-moxie.c \
 	elf32-gen.c \
 	elf32-h8300.c \
 	elf32-hppa.c \
@@ -1716,6 +1720,7 @@ cpu-d30v.lo: cpu-d30v.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-dlx.lo: cpu-dlx.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-fr30.lo: cpu-fr30.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-frv.lo: cpu-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
+cpu-moxie.lo: cpu-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8300.lo: cpu-h8300.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8500.lo: cpu-h8500.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-hppa.lo: cpu-hppa.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
@@ -2018,6 +2023,11 @@ elf32-frv.lo: elf32-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/frv.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
   elf32-target.h
+elf32-moxie.lo: elf32-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/moxie.h \
+  $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
+  elf32-target.h
 elf32-gen.lo: elf32-gen.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h elf32-target.h
diff --git a/bfd/aout-adobe.c b/bfd/aout-adobe.c
index 8ccaf42..a8b13f4 100644
--- a/bfd/aout-adobe.c
+++ b/bfd/aout-adobe.c
@@ -463,6 +463,7 @@ aout_adobe_sizeof_headers (bfd *ignore_abfd ATTRIBUTE_UNUSED,
 #define aout_32_bfd_is_group_section	            bfd_generic_is_group_section
 #define aout_32_bfd_discard_group	            bfd_generic_discard_group
 #define aout_32_section_already_linked              _bfd_generic_section_already_linked
+#define aout_32_bfd_define_common_symbol            bfd_generic_define_common_symbol
 #define aout_32_bfd_link_hash_table_create          _bfd_generic_link_hash_table_create
 #define aout_32_bfd_link_hash_table_free            _bfd_generic_link_hash_table_free
 #define aout_32_bfd_link_add_symbols	            _bfd_generic_link_add_symbols
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index c063d03..07a0870 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -493,6 +493,9 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
 #define MY_section_already_linked \
   _bfd_generic_section_already_linked
 #endif
+#ifndef MY_bfd_define_common_symbol
+#define MY_bfd_define_common_symbol bfd_generic_define_common_symbol
+#endif
 #ifndef MY_bfd_reloc_type_lookup
 #define MY_bfd_reloc_type_lookup NAME (aout, reloc_type_lookup)
 #endif
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index 49815c4..a95bca1 100644
--- a/bfd/aout-tic30.c
+++ b/bfd/aout-tic30.c
@@ -950,6 +950,9 @@ tic30_aout_set_arch_mach (bfd *abfd,
 #define MY_section_already_linked \
   _bfd_generic_section_already_linked
 #endif
+#ifndef MY_bfd_define_common_symbol
+#define MY_bfd_define_common_symbol bfd_generic_define_common_symbol
+#endif
 #ifndef MY_bfd_reloc_type_lookup
 #define MY_bfd_reloc_type_lookup tic30_aout_reloc_type_lookup
 #endif
diff --git a/bfd/archures.c b/bfd/archures.c
index b0bf140..0a78542 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -331,6 +331,8 @@ DESCRIPTION
 .#define bfd_mach_frvtomcat	499	{* fr500 prototype *}
 .#define bfd_mach_fr500		500
 .#define bfd_mach_fr550		550
+.  bfd_arch_moxie,       {* The moxie processor *}
+.#define bfd_mach_moxie		1
 .  bfd_arch_mcore,
 .  bfd_arch_mep,
 .#define bfd_mach_mep		1
@@ -467,6 +469,7 @@ extern const bfd_arch_info_type bfd_d30v_arch;
 extern const bfd_arch_info_type bfd_dlx_arch;
 extern const bfd_arch_info_type bfd_fr30_arch;
 extern const bfd_arch_info_type bfd_frv_arch;
+extern const bfd_arch_info_type bfd_moxie_arch;
 extern const bfd_arch_info_type bfd_h8300_arch;
 extern const bfd_arch_info_type bfd_h8500_arch;
 extern const bfd_arch_info_type bfd_hppa_arch;
@@ -539,6 +542,7 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
     &bfd_dlx_arch,
     &bfd_fr30_arch,
     &bfd_frv_arch,
+    &bfd_moxie_arch,
     &bfd_h8300_arch,
     &bfd_h8500_arch,
     &bfd_hppa_arch,
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 6629ed7..2c6452f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1968,6 +1968,8 @@ enum bfd_architecture
 #define bfd_mach_frvtomcat     499     /* fr500 prototype */
 #define bfd_mach_fr500         500
 #define bfd_mach_fr550         550
+  bfd_arch_moxie,     /* The moxie.  */
+#define bfd_mach_moxie         1
   bfd_arch_mcore,
   bfd_arch_mep,
 #define bfd_mach_mep           1
@@ -5456,7 +5458,8 @@ typedef struct bfd_target
   NAME##_bfd_merge_sections, \
   NAME##_bfd_is_group_section, \
   NAME##_bfd_discard_group, \
-  NAME##_section_already_linked \
+  NAME##_section_already_linked, \
+  NAME##_bfd_define_common_symbol
 
   int         (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
   bfd_byte *  (*_bfd_get_relocated_section_contents)
@@ -5504,6 +5507,10 @@ typedef struct bfd_target
   void (*_section_already_linked) (bfd *, struct bfd_section *,
                                    struct bfd_link_info *);
 
+  /* Define a common symbol.  */
+  bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
+                                            struct bfd_link_hash_entry *);
+
   /* Routines to handle dynamic symbols and relocs.  */
 #define BFD_JUMP_TABLE_DYNAMIC(NAME) \
   NAME##_get_dynamic_symtab_upper_bound, \
@@ -5568,6 +5575,13 @@ void bfd_section_already_linked (bfd *abfd, asection *sec,
 #define bfd_section_already_linked(abfd, sec, info) \
        BFD_SEND (abfd, _section_already_linked, (abfd, sec, info))
 
+bfd_boolean bfd_generic_define_common_symbol
+   (bfd *output_bfd, struct bfd_link_info *info,
+    struct bfd_link_hash_entry *h);
+
+#define bfd_define_common_symbol(output_bfd, info, h) \
+       BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h))
+
 /* Extracted from simple.c.  */
 bfd_byte *bfd_simple_get_relocated_section_contents
    (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
diff --git a/bfd/binary.c b/bfd/binary.c
index c4aec2b..7e9bf10 100644
--- a/bfd/binary.c
+++ b/bfd/binary.c
@@ -316,6 +316,7 @@ binary_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
 #define binary_bfd_is_group_section                bfd_generic_is_group_section
 #define binary_bfd_discard_group                   bfd_generic_discard_group
 #define binary_section_already_linked             _bfd_generic_section_already_linked
+#define binary_bfd_define_common_symbol            bfd_generic_define_common_symbol
 #define binary_bfd_link_hash_table_create         _bfd_generic_link_hash_table_create
 #define binary_bfd_link_hash_table_free           _bfd_generic_link_hash_table_free
 #define binary_bfd_link_just_syms                 _bfd_generic_link_just_syms
diff --git a/bfd/bout.c b/bfd/bout.c
index b6c7106..f4800d5 100644
--- a/bfd/bout.c
+++ b/bfd/bout.c
@@ -1389,6 +1389,7 @@ b_out_bfd_get_relocated_section_contents (bfd *output_bfd,
 #define b_out_bfd_is_group_section             bfd_generic_is_group_section
 #define b_out_bfd_discard_group                bfd_generic_discard_group
 #define b_out_section_already_linked           _bfd_generic_section_already_linked
+#define b_out_bfd_define_common_symbol         bfd_generic_define_common_symbol
 #define aout_32_get_section_contents_in_window _bfd_generic_get_section_contents_in_window
 
 extern const bfd_target b_out_vec_little_host;
diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c
index efe2dd3..cd69043 100644
--- a/bfd/coff-alpha.c
+++ b/bfd/coff-alpha.c
@@ -2398,6 +2398,7 @@ static const struct ecoff_backend_data alpha_ecoff_backend_data =
 #define _bfd_ecoff_bfd_discard_group bfd_generic_discard_group
 #define _bfd_ecoff_section_already_linked \
   _bfd_generic_section_already_linked
+#define _bfd_ecoff_bfd_define_common_symbol bfd_generic_define_common_symbol
 
 const bfd_target ecoffalpha_little_vec =
 {
diff --git a/bfd/coff-mips.c b/bfd/coff-mips.c
index f82c52d..5fd3510 100644
--- a/bfd/coff-mips.c
+++ b/bfd/coff-mips.c
@@ -1417,6 +1417,7 @@ static const struct ecoff_backend_data mips_ecoff_backend_data =
 #define _bfd_ecoff_bfd_discard_group bfd_generic_discard_group
 #define _bfd_ecoff_section_already_linked \
   _bfd_generic_section_already_linked
+#define _bfd_ecoff_bfd_define_common_symbol bfd_generic_define_common_symbol
 
 extern const bfd_target ecoff_big_vec;
 
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index c5a486b..4859f31 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -4233,6 +4233,7 @@ const bfd_target rs6000coff_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
@@ -4485,6 +4486,7 @@ const bfd_target pmac_xcoff_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 1a0ff59..3a27ee0 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2805,6 +2805,7 @@ const bfd_target rs6000coff64_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
@@ -3058,6 +3059,7 @@ const bfd_target aix5coff64_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 484fb6b..11cc457 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -153,6 +153,14 @@ SUBSUBSECTION
 	points to a function that allows the value of the flag to be altered
 	at runtime, on formats that support long section names at all; on
 	other formats it points to a stub that returns an error indication.
+	
+	With input BFDs, the flag is set according to whether any long section
+	names are detected while reading the section headers.  For a completely
+	new BFD, the flag is set to the default for the target format.  This
+	information can be used by a client of the BFD library when deciding
+	what output format to generate, and means that a BFD that is opened
+	for read and subsequently converted to a writeable BFD and modified
+	in-place will retain whatever format it had on input.
 
 	If @code{COFF_LONG_SECTION_NAMES} is simply defined (blank), or is
 	defined to the value "1", then long section names are enabled by
@@ -936,7 +944,8 @@ handle_COMDAT (bfd * abfd,
 		   but there's some checking we can do to be
 		   sure.  */
 
-		if (! (isym.n_sclass == C_STAT
+		if (! ((isym.n_sclass == C_STAT
+			|| isym.n_sclass == C_EXT)
 		       && isym.n_type == T_NULL
 		       && isym.n_value == 0))
 		  abort ();
@@ -946,7 +955,7 @@ handle_COMDAT (bfd * abfd,
 		   names like .text$foo__Fv (in the case of a
 		   function).  See comment above for more.  */
 
-		if (strcmp (name, symname) != 0)
+		if (isym.n_sclass == C_STAT && strcmp (name, symname) != 0)
 		  _bfd_error_handler (_("%B: warning: COMDAT symbol '%s' does not match section name '%s'"),
 				      abfd, symname, name);
 
@@ -5591,6 +5600,10 @@ static bfd_coff_backend_data ticoff1_swap_table =
   _bfd_generic_section_already_linked
 #endif
 
+#ifndef coff_bfd_define_common_symbol
+#define coff_bfd_define_common_symbol	    bfd_generic_define_common_symbol
+#endif
+
 #define CREATE_BIG_COFF_TARGET_VEC(VAR, NAME, EXTRA_O_FLAGS, EXTRA_S_FLAGS, UNDER, ALTERNATIVE, SWAP_TABLE)	\
 const bfd_target VAR =							\
 {									\
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 0faaede..8781557 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -73,6 +73,11 @@ make_a_section_from_file (bfd *abfd,
       char *p;
       const char *strings;
 
+      /* Flag that this BFD uses long names, even though the format might
+         expect them to be off by default.  This won't directly affect the
+         format of any output BFD created from this one, but the information
+         can be used to decide what to do.  */
+      bfd_coff_set_long_section_names (abfd, TRUE);
       memcpy (buf, hdr->s_name + 1, SCNNMLEN - 1);
       buf[SCNNMLEN - 1] = '\0';
       strindex = strtol (buf, &p, 10);
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 9082658..9e9e021 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -413,6 +413,10 @@ case "${targ}" in
     targ_selvecs=bfd_elf32_frv_vec
     ;;
 
+  moxie-*-elf)
+    targ_defvec=bfd_elf32_moxie_vec
+    ;;
+
   h8300*-*-rtemscoff*)
     targ_defvec=h8300coff_vec


hooks/post-receive
--
Repository for Project Archer.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]