OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years agoopcodes: blackfin: decode all ASTAT bits
vapier [Wed, 22 Sep 2010 21:39:08 +0000 (21:39 +0000)]
opcodes: blackfin: decode all ASTAT bits

All ASTAT bits work in the hardware even though they aren't part of the
official Blackfin ISA.  So decode every ASTAT field to make the output
a bit nicer when working with hand generated opcodes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoopcodes: blackfin: decode insns with invalid register as illegal
vapier [Wed, 22 Sep 2010 21:38:20 +0000 (21:38 +0000)]
opcodes: blackfin: decode insns with invalid register as illegal

Sometimes the encoding in the opcode is a 4 bit field which defines a
register number.  However, register numbers are only 0-7, so make sure
we call illegal for when the opcode register number is greater than 8.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoMAINTAINERS: add myself for Blackfin parts
vapier [Wed, 22 Sep 2010 21:36:09 +0000 (21:36 +0000)]
MAINTAINERS: add myself for Blackfin parts

I know a thing or two about Blackfin parts, and if I can't find the
answer, I can usually locate someone who does.  Especially since Jie
and Bernd no longer work for ADI :(.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoMAINTAINERS: add myself for Blackfin parts
vapier [Wed, 22 Sep 2010 21:35:44 +0000 (21:35 +0000)]
MAINTAINERS: add myself for Blackfin parts

I know a thing or two about Blackfin parts, and if I can't find the
answer, I can usually locate someone who does.  Especially since Jie
and Bernd no longer work for ADI :(.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: fix typo in BYTEOP16P comment
vapier [Wed, 22 Sep 2010 21:34:09 +0000 (21:34 +0000)]
gas: blackfin: fix typo in BYTEOP16P comment

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: reject multiple store insns in parallel insns
vapier [Wed, 22 Sep 2010 21:31:18 +0000 (21:31 +0000)]
gas: blackfin: reject multiple store insns in parallel insns

Check for & reject attempts to use multiple store insns in a single
parallel insn combination.  These are illegal per the Blackfin ISA.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: add missing register move insns
vapier [Wed, 22 Sep 2010 21:30:34 +0000 (21:30 +0000)]
gas: blackfin: add missing register move insns

The Blackfin ISA supports moving just about anything to/from EMUDAT, so
make sure the assembler accepts these insns too.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: clarify some errors with register usage in insns
vapier [Wed, 22 Sep 2010 21:29:40 +0000 (21:29 +0000)]
gas: blackfin: clarify some errors with register usage in insns

Using "Register mismatch" everywhere can be a bit vague, so clarify
why exactly we're barfing on these unsupported insns.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: fix DBG/DBGCMPLX insn encoding
vapier [Wed, 22 Sep 2010 21:26:11 +0000 (21:26 +0000)]
gas: blackfin: fix DBG/DBGCMPLX insn encoding

Some extended registers when given to the DBG/DBGCMPLX pseudo insns are
not encoded properly.  So fix them, fix the display of them when being
disassembled, and add testcases.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: handle multibyte symbols
vapier [Wed, 22 Sep 2010 21:08:31 +0000 (21:08 +0000)]
gas: blackfin: handle multibyte symbols

Accept any 8bit char with the high bit set so as to support multibyte
characters.  Also use the locale safe regular expressions to match
chars/digits.  This brings the Blackfin assembler inline with the
behavior of other assemblers.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoopcodes/gas: blackfin: handle more ASTAT flags
vapier [Wed, 22 Sep 2010 21:05:02 +0000 (21:05 +0000)]
opcodes/gas: blackfin: handle more ASTAT flags

Support a few more ASTAT bits with the standard insns that operate on
ASTAT bits directly.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoopcodes/gas: blackfin: support OUTC debug insn
vapier [Wed, 22 Sep 2010 20:58:59 +0000 (20:58 +0000)]
opcodes/gas: blackfin: support OUTC debug insn

The disassembler has partial (but incomplete/broken) support already for
the pseudo debug insn OUTC, so let's fix it up and finish it.  And now
that the disassembler can handle it, make sure our assembler can output
it too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoopcodes: blackfin: fix decoding of LSHIFT insns
vapier [Wed, 22 Sep 2010 20:37:23 +0000 (20:37 +0000)]
opcodes: blackfin: fix decoding of LSHIFT insns

The Blackfin ISA does not have a "SHIFT" insn, it has either LSHIFT,
ASHIFT, or BXORSHIFT.  So be specific when disassembling.

As fall out of this change, we need to update some assembler tests.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoopcodes: blackfin: constify formatting related structures
vapier [Wed, 22 Sep 2010 20:32:40 +0000 (20:32 +0000)]
opcodes: blackfin: constify formatting related structures

No need for these local structures related to formatting of output to
be writable, so constify the whole shebang.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: support ABORT debug insn
vapier [Wed, 22 Sep 2010 20:21:32 +0000 (20:21 +0000)]
gas: blackfin: support ABORT debug insn

There is a pseudo debug insn named ABORT that is commonly used in
simulation, so support it in the assembler too.  The disassembler
already supports it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: add support for BF51x-0.2 processors
vapier [Wed, 22 Sep 2010 20:19:53 +0000 (20:19 +0000)]
gas: blackfin: add support for BF51x-0.2 processors

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: add support for BF592 processors
vapier [Wed, 22 Sep 2010 20:17:48 +0000 (20:17 +0000)]
gas: blackfin: add support for BF592 processors

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoFix order of ChangeLog entries.
brobecke [Wed, 22 Sep 2010 20:08:04 +0000 (20:08 +0000)]
Fix order of ChangeLog entries.

(entry added at wrong location by patch).

13 years agopreserve columnar alignment.
brobecke [Wed, 22 Sep 2010 20:06:58 +0000 (20:06 +0000)]
preserve columnar alignment.

gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-const.S: Minor (space) reformatting.

13 years agogdb/
jkratoch [Wed, 22 Sep 2010 20:00:52 +0000 (20:00 +0000)]
gdb/
Code cleanup.
* objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
(free_objfile) <objfile->name != NULL>: Remove the conditional around
xfree.
* objfiles.h (struct objfile) <name>: New comment it is never NULL.
* python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
Remove.
* python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
Remove the conditional.
* python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.

13 years agogdb/
jkratoch [Wed, 22 Sep 2010 19:59:11 +0000 (19:59 +0000)]
gdb/
* main.c: Include objfiles.h.
(captured_main): New variable objfile.  Call
load_auto_scripts_for_objfile for ALL_OBJFILES.

13 years agogdb/
jkratoch [Wed, 22 Sep 2010 19:22:43 +0000 (19:22 +0000)]
gdb/
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
DW_TAG_constant.

gdb/testsuite/
* gdb.fortran/module.exp (fully qualified name of DW_TAG_constant):
New test.
* gdb.fortran/module.f90 (mod1) <var_const>: New constant.

13 years agogas: blackfin: allow end-of-line comments via #
vapier [Wed, 22 Sep 2010 19:17:18 +0000 (19:17 +0000)]
gas: blackfin: allow end-of-line comments via #

We don't use the # character in the Blackfin assembly language, so let it
start end-of-line comments like most other assemblers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago[testsuite] dw2-const.S: fix type reference size on 64bit platforms.
brobecke [Wed, 22 Sep 2010 19:13:40 +0000 (19:13 +0000)]
[testsuite] dw2-const.S: fix type reference size on 64bit platforms.

The testcase was failing on various 64bit platforms, because the
debugging info said that the target type for a const type is a
4-byte reference.  In the asm file, I used a .long directive, but
the size of .long is of course dependent on the platform.  This
replaces this .long by a .4byte directive.

gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-const.S: Use .4byte to reference the target
        type of our const type.

13 years agoDWARF: Add support for DW_TAG_constant DIEs
brobecke [Wed, 22 Sep 2010 16:15:33 +0000 (16:15 +0000)]
DWARF: Add support for DW_TAG_constant DIEs

gdb/ChangeLog:

        * dwarf2read.c (scan_partial_symbols): Add handling of
        DW_TAG_constant DIEs.
        (add_partial_symbol, load_partial_dies, new_symbol): Likewise.

gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-const.S, gdb.dwarf2/dw2-const.exp: New files.

13 years agoAllow disabling of gdbserver build (--enable-gdbserver=yes/no/auto).
brobecke [Wed, 22 Sep 2010 16:14:53 +0000 (16:14 +0000)]
Allow disabling of gdbserver build (--enable-gdbserver=yes/no/auto).

This patch adds a new --enable-gdbserver=yes/no/auto command-line switch
in gdb/configure.  The primary purpose is to allow a user to disable the
build & install of gdbserver when not desired.  It also allows the user
to request gdbserver in which case the configure script will abort if
automatic building of gdbserver is not supported for that configuration.

The default keeps things as is: We automatically build gdbserver if
building for a native configuration and if gdbserver is supported for
that configuration.

gdb/ChangeLog:

        * configure.ac: Add support for --enable-gdbserver.
        * configure: Regenerate.

At AdaCore, this is mostly intended for ia64-linux, where we currently
do not want to distribute gdbserver.  This will be useful in the context
of I417-033, where we are now using "make install" to determine what
needs to be packaged inside the GNAT Pro package.

13 years ago * gdb.texinfo (Values From Inferior): Mention Value.__init__.
tromey [Wed, 22 Sep 2010 15:51:43 +0000 (15:51 +0000)]
* gdb.texinfo (Values From Inferior): Mention Value.__init__.

13 years agoFix PR 12028: "GDB crashes on a double free during overload resolution "
swagiaal [Wed, 22 Sep 2010 15:48:55 +0000 (15:48 +0000)]
Fix PR 12028: "GDB crashes on a double free during overload resolution "

2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>

PR C++/12028
* valops.c (find_oload_champ_namespace_loop): removed incorrect
'old_cleanups' reassignment.

2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/pr12028.cc: New.
* gdb.cp/pr12028.exp: New.

13 years ago2010-09-22 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 22 Sep 2010 14:20:24 +0000 (14:20 +0000)]
2010-09-22  Kai Tietz  <kai.tietz@onevision.com>

        * ldlang.c (lang_add_section): Allow for debugging
        section to be marked as noload but to keep content.
        (IGNORE_SECTION): Likewise.
        (lang_check_section_addresses): Likewise.
        * ldwrite.c (build_link_order): Likewise.

13 years ago2010-09-22 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 22 Sep 2010 14:19:34 +0000 (14:19 +0000)]
2010-09-22  Kai Tietz  <kai.tietz@onevision.com>

        * coffcode.h (sec_to_styp_flags): Adjust debug
        sections to be conform to pe-coff specification
        and avoid marking them as excluded.
        (styp_to_sec_flags): Doing reverse mapping.

13 years ago gdb.texinfo (Values From Inferior): Clarify that
eliz [Wed, 22 Sep 2010 09:13:30 +0000 (09:13 +0000)]
 gdb.texinfo (Values From Inferior): Clarify that
 value.dynamic_type works only in C++ programs with RTTI.

13 years ago2010-09-22 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 22 Sep 2010 08:03:41 +0000 (08:03 +0000)]
2010-09-22  Kai Tietz  <kai.tietz@onevision.com>

        * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
        idata to orphan set.
        * emultempl/pep.em: Likewise.
        * scripttempl/armcoff.sc: Separate idata
        and add __IAT_start__ and __IAT_end__ labels.
        * scripttempl/pe.sc: Likewise.
        * scripttempl/pep.sc: Likewise.

13 years ago2010-09-22 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 22 Sep 2010 08:01:54 +0000 (08:01 +0000)]
2010-09-22  Kai Tietz  <kai.tietz@onevision.com>

        * peXXigen.c (_bfd_XXi_final_link_postscript):
        Add handling for setting IAT directory entry.

13 years ago2010-09-21 Craig Howland <howland@LGSInnovations.com>
jjohnstn [Wed, 22 Sep 2010 03:15:07 +0000 (03:15 +0000)]
2010-09-21  Craig Howland <howland@LGSInnovations.com>

        * libc/string/memcpy.c: Do not assign size_t parameter to int.
        Use parameter directly, instead.
        * libc/string/memccpy.c:  Likewise.
        * libc/string/mempcpy.c:  Likewise.
        * libc/string/memmove.c:  Likewise.

13 years ago*** empty log message ***
gdbadmin [Wed, 22 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 22 Sep 2010 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago2010-09-21 Pierre Humblet <Pierre.Humblet@ieee.org>
phumblet [Tue, 21 Sep 2010 21:41:30 +0000 (21:41 +0000)]
2010-09-21  Pierre Humblet <Pierre.Humblet@ieee.org>

        * libc/minires.c (res_nsend): Use the Windows resolver if appropriate.
        (dn_expand): Only set errno in case of error. Delete old comments.
        (dn_skipname): Fix typo in comment.

13 years ago * path.cc (cwdstuff::set): Replace constant 2 with sizeof(WCHAR) where
corinna [Tue, 21 Sep 2010 16:41:16 +0000 (16:41 +0000)]
* path.cc (cwdstuff::set): Replace constant 2 with sizeof(WCHAR) where
appropriate.

13 years ago * mount.h (class fs_info): Add has_buggy_reopen flag and accessor
corinna [Tue, 21 Sep 2010 16:32:21 +0000 (16:32 +0000)]
* mount.h (class fs_info): Add has_buggy_reopen flag and accessor
methods.
* mount.cc (fs_info::update): Set has_buggy_reopen flag for NWFS.
Add comment.
* path.h (path_conv::get_object_attr) Make inline method.
(path_conv::init_reopen_attr): New inline method.
* path.cc (path_conv::get_object_attr): Remove.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Use
path_conv::init_reopen_attr method to initialize OBJECT_ATTRIBUTE for
reopening file.
(fhandler_disk_file::fchmod): Ditto.
(fhandler_base::utimens_fs): Ditto.
(fhandler_disk_file::rewinddir): Ditto.
* syscalls.cc (unlink_nt): Ditto.

13 years ago * fhandler.cc (fhandler_base::open): Always open NFS files with
corinna [Tue, 21 Sep 2010 16:07:19 +0000 (16:07 +0000)]
* fhandler.cc (fhandler_base::open): Always open NFS files with
FILE_READ_EA, even when opening with O_WRONLY to allow fstat.
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Call
FlushFileBuffers if file has been opened for writing.  Explain why.
(fhandler_base::fstat_by_handle): Renew content of pc.fnoi if called
via fstat.  Explain why.  Fix formatting.
* path.cc (symlink_info::check): Try to open file the second time with
FILE_READ_EA permissions since it's needed in later calls to
fhandler_base::fstat_by_nfs_ea.

13 years agoopcodes: blackfin: strip trailing whitespace
vapier [Tue, 21 Sep 2010 06:04:21 +0000 (06:04 +0000)]
opcodes: blackfin: strip trailing whitespace

13 years ago*** empty log message ***
gdbadmin [Tue, 21 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 21 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago* include/sys/cygwin.h (PID_NOTCYGWIN): New enum.
cgf [Mon, 20 Sep 2010 22:28:55 +0000 (22:28 +0000)]
* include/sys/cygwin.h (PID_NOTCYGWIN): New enum.
* spawn.cc (spawn_guts): Set a flag when a process is not a cygwin process.
* fhandler_tty.cc (fhandler_tty_slave::init): Remove previous change.  Try a
different method to determine when we should become the process group owner.
* signal.cc (kill0): Remove archaic code which dealt with never-set flag.

13 years ago* fhandler_tty.cc (fhandler_tty_slave::init): Add additional checks to
cgf [Mon, 20 Sep 2010 20:25:45 +0000 (20:25 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Add additional checks to
determine when a process should grab control of a tty's pgid.  Use
being_debugged() for consistency.
* debug.h (being_debugged): Remove vestige of win9x accommodation.

13 years ago * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
davem [Mon, 20 Sep 2010 18:41:14 +0000 (18:41 +0000)]
* emulparams/elf32_sparc.sh: Set NOP to 0x01000000

13 years ago * gas/config/tc-arm.c (arm_cpus): Correct canonical names for Cortex CPUs.
mgretton [Mon, 20 Sep 2010 16:33:22 +0000 (16:33 +0000)]
* gas/config/tc-arm.c (arm_cpus): Correct canonical names for Cortex CPUs.
* gas/testsuite/gas/arm/attr-cpu-directive.d: Update test for change in canonical
CPU name.
* gas/testsuite/gas/arm/attr-mcpu.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-6.attr: Update tests for change in canonical
CPU name.
* ld/testsuite/ld-arm/attr-merge-7.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-2.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-arch-2.attr: Likewise.

13 years ago * ld/testsuite/ld-arm/script-type.ld: Update to generate symbols in a section.
mgretton [Mon, 20 Sep 2010 16:26:53 +0000 (16:26 +0000)]
* ld/testsuite/ld-arm/script-type.ld: Update to generate symbols in a section.

13 years agoUse bfd_elf_generic_reloc for alpha-elf.
rth [Mon, 20 Sep 2010 16:08:59 +0000 (16:08 +0000)]
Use bfd_elf_generic_reloc for alpha-elf.

13 years ago * gas/elf/elf.exp: Disable symtab test for alpha.
rth [Mon, 20 Sep 2010 16:07:26 +0000 (16:07 +0000)]
* gas/elf/elf.exp: Disable symtab test for alpha.

13 years ago*** empty log message ***
gdbadmin [Mon, 20 Sep 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 20 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago* wincap.h (wincaps::has_buggy_thread_startup): Declare.
cgf [Sun, 19 Sep 2010 20:18:35 +0000 (20:18 +0000)]
* wincap.h (wincaps::has_buggy_thread_startup): Declare.
(wincapc::has_buggy_thread_startup): Ditto.
* wincap.cc::wincap_*): Accommodate has_buggy_thread_startup.
(wincapc::init): Explicitly turn off has_buggy_thread_startup if not WOW64.
* cygthread.h (cygthread::thread_handle): Declare/define new method.
* dcrt0.cc (_dll_crt0): Don't call __sinit here.
(dll_crt0_0): Don't call sigproc_init during initialization if
wincap.has_buggy_thread_startup().
(dll_crt0_1): Defer sigproc_init to here when
wincap.has_buggy_thread_startup().  Call __sinit after we've determined that
we're not forking.
(__main): Rework comments.  Add potential future reminder.

13 years agobfd/
rsandifo [Sun, 19 Sep 2010 10:52:17 +0000 (10:52 +0000)]
bfd/
* elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
(mips_elf_link_hash_newfunc): Initialize it.
(mips_elf_record_global_got_symbol): Add a for_call parameter.
(mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
Try to remove .got entries in favour of .got.plt entries on VxWorks.
(_bfd_mips_elf_check_relocs): Do not try to avoid allocating
a global GOT entry for VxWorks calls.  Update uses of
mips_elf_record_global_got_symbol.
(allocate_dynrelocs): Set got_only_for_calls to false if the GOT
entry is used for dynamic relocations.

13 years agobfd/
rsandifo [Sun, 19 Sep 2010 10:26:27 +0000 (10:26 +0000)]
bfd/
* elfxx-mips.c (mips_got_entry): Adjust commentary.
(mips_elf_create_local_got_entry): If given a symbol, check that it
has been assigned to the local part of the GOT.
(mips_elf_count_got_symbols): Take the bfd_link_info as argument
instead of the master GOT.  Put all locally-binding symbols in
the local area.
(mips_elf_make_got_per_bfd): Use global_got_area to decide whether
a symbol lives in the local or global area.
(mips_elf_local_relocation_p): Remove check_forced argument and
retain only the !check_forced behavior.
(mips_elf_calculate_relocation): Adjust call accordingly.
Use global_got_area to decide whether an output relocation
should be local or global.  Explicitly decay R_MIPS_GOT_PAGE
into R_MIPS_GOT_DISP where appropriate.  Fix selection of
local vs. global semantics for R_MIPS*_26.  Remove redundant
reevaluation of what is stored in was_local_p.
(mips_elf_create_dynamic_relocation): Use global_got_area to decide
whether the relocation should be against a global or local symbol.
(mips_elf_lay_out_got): Update the GOT traversal after the above
change to mips_elf_count_got_symbols.
(mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
(_bfd_mips_elf_relocate_section): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
whether the symbol has a global got entry.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.

ld/testsuite/
* ld-mips-elf/elf-rel-got-n32.d: Swap two local GOT entries
and remove some duplication between the global and local GOT
entries.  Adjust GP offsets accordingly.
* ld-mips-elf/elf-rel-got-n64-linux.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n32.d: Reorder GOT entries and update
GP offsets accordingly.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
* ld-mips-elf/mips16-pic-1.gd: Move all global GOT entries to
the local GOT.
* ld-mips-elf/mips16-pic-1.dd: Update GP offsets accordingly.
* ld-mips-elf/multi-got-no-shared.d: Adjust GP setup for
smaller GOT sizes.

13 years agobfd/
rsandifo [Sun, 19 Sep 2010 10:07:30 +0000 (10:07 +0000)]
bfd/
* elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
to the global GOT on VxWorks.

13 years agobfd/
rsandifo [Sun, 19 Sep 2010 10:03:28 +0000 (10:03 +0000)]
bfd/
* elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
about HI/LO relocations in shared objects.

13 years ago*** empty log message ***
gdbadmin [Sun, 19 Sep 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sun, 19 Sep 2010 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago* overview2.sgml: Remove cheerful paragraph which implied that it was ok to
cgf [Sat, 18 Sep 2010 15:58:46 +0000 (15:58 +0000)]
* overview2.sgml: Remove cheerful paragraph which implied that it was ok to
casually mix Windows and POSIX.  Add more words about mixing POSIX/Windows.

13 years ago * setup2.sgml (setup-locale-how): Fix typo.
corinna [Sat, 18 Sep 2010 11:29:06 +0000 (11:29 +0000)]
* setup2.sgml (setup-locale-how): Fix typo.

13 years ago * lib/ld-lib.exp (check_gc_sections_available): Fail more targets.
amodra [Sat, 18 Sep 2010 02:30:40 +0000 (02:30 +0000)]
* lib/ld-lib.exp (check_gc_sections_available): Fail more targets.
* ld-discard/discard.exp: Move xfails from here..
* ld-discard/extern.d: ..to here.
* ld-discard/start.d: ..and here.
* ld-discard/static.d: ..and here.
* ld-elf/binutils.exp: Don't run tbss1 and tbss2 tests on hppa64.
* ld-elf/empty2.d: Remove xfails.
* ld-elf/flags1.d: xfail hppa64.
* ld-elf/group1.d: Add comment.
* ld-elf/group2.d: xfail cr16 and crx.
* ld-elf/group3b.d: Correct xfail and add comment.
* ld-elf/group4.d: xfail cr16 and crx.
* ld-elf/group5.d: Likewise.
* ld-elf/group6.d: Likewise.
* ld-elf/group7.d: Likewise.
* ld-elf/group8a.d: Add more notarget and xfail entries.  Comment.
* ld-elf/group8b.d: Likewise.
* ld-elf/group9a.d: Likewise.
* ld-elf/group9b.d: Likewise.
* ld-elf/linkonce2.d: Correct notarget and comment.
* ld-elf/merge2.d: Remove iq2000 from xfail.
* ld-elf/multibss1.d: xfail hppa64.
* ld-elf/nobits-1.d: Likewise.
* ld-elf/note-1.d: Likewise.
* ld-elf/note-2.d: Likewise.
* ld-elf/orphan-region.d: Add xfails.
* ld-elf/orphan-region.ld: Discard some sections.
* ld-elf/orphan.d: Add xfails.
* ld-elf/orphan.ld: Discard some sections.
* ld-elf/orphan3.d: Replace xfail frv-*-* with frv-*-elf.  Remove
cr16, crx and d10v.
* ld-elf/pr349.d: Add xfails.
* ld-elf/warn2.d: Add xfails.  Tweak symbol section for hppa64.
* ld-scripts/rgn-at5.t: Discard .reginfo.

13 years agoFix date.
hjl [Sat, 18 Sep 2010 00:43:39 +0000 (00:43 +0000)]
Fix date.

13 years agoAdd a target argument.
hjl [Sat, 18 Sep 2010 00:42:25 +0000 (00:42 +0000)]
Add a target argument.

2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* emul_aix.c (ar_emul_aix_append): Add a target argument
and ignore it if it is set.
(ar_emul_aix5_append): Likewise.
(ar_emul_aix_replace): Likewise.
(ar_emul_aix5_replace): Likewise.

13 years ago * testsuite/Makefile.am (memory_test.o): New target.
ian [Sat, 18 Sep 2010 00:34:57 +0000 (00:34 +0000)]
* testsuite/Makefile.am (memory_test.o): New target.
(memory_test): Depend on memory_test.o, gcctestdir/ld, and
memory_test.t.
* testsuite/Makefile.in: Rebuild.

13 years ago * testsuite/memory_test.sh: Adjust for change of 2010-09-10.
ian [Sat, 18 Sep 2010 00:31:01 +0000 (00:31 +0000)]
* testsuite/memory_test.sh: Adjust for change of 2010-09-10.

13 years agodaily update
amodra [Sat, 18 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 18 Sep 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago2010-09-17 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 17 Sep 2010 23:51:42 +0000 (23:51 +0000)]
2010-09-17  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::Relocate::relocate): Ignore symbol type and
defintion if relocation uses GOT entries of the symbol.
* testsuite/icf_safe_test.sh: Fix test.
* testsuite/icf_safe_so_test.sh: Fix test.

13 years ago2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
mgretton [Fri, 17 Sep 2010 15:19:10 +0000 (15:19 +0000)]
2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* config/tc-arm.c (do_t_ldmstm): Add logic to handle single-register
list for ldm/stm.

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* gas/arm/thumb2_ldmstm.d: Change single-register stmia to use 16-bit
str encoding instead of str.w.  Likewise for ldmia.
* gas/arm/thumb2_ldmstm.s: Change stmia comment.  Add tests for T1
ldmia-to-ldr.

13 years ago2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
mgretton [Fri, 17 Sep 2010 10:42:02 +0000 (10:42 +0000)]
2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* config/tc-arm.c (parse_psr): Add condition for matching "APSR" on
non-M-arch cpus.
(psrs): Add entry for PSR flags, g, nzcvq, nzcvqg.

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* gas/arm/msr-reg.s: New file.
* gas/arm/msr-reg.d: Likewise.
* gas/arm/msr-imm.s: Likewise.
* gas/arm/msr-imm.d: Likewise.
* gas/arm/msr-imm-bad.d: Likewise.
* gas/arm/msr-imm-bad.l: Likewise.
* gas/arm/msr-reg-bad.d: Likewise.
* gas/arm/msr-imm-bad.d: Likewise.
* gas/arm/msr-reg-thumb.d: Likewise.
* gas/arm/arch7.s: Add tests for xpsr.
* gas/arm/arch7.d: Likewise.

13 years ago2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
mgretton [Fri, 17 Sep 2010 10:13:39 +0000 (10:13 +0000)]
2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* config/tc-arm.c (insns): Change MRC entry to accept APSR_RR instead
of just RR.

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* gas/arm/copro.s: Add test for APSR_nzcv as a MRC operand.
* gas/arm/copro.d: Change pc in MRC to disassemble as APSR_nzcv.  Also
add disassembly for test added in copro.s

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* arm_dis.c (coprocessor_opcodes): Add MRC entry for APSR_nzcv.

13 years ago*** empty log message ***
gdbadmin [Fri, 17 Sep 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Fri, 17 Sep 2010 00:00:04 +0000 (00:00 +0000)]
daily update

13 years ago PR gas/12011
amodra [Thu, 16 Sep 2010 23:55:08 +0000 (23:55 +0000)]
PR gas/12011
* config/obj-elf.c (obj_elf_parse_section_letters): Correct test
for error return from md_elf_section_letter.
* config/tc-alpha.c (alpha_elf_section_letter): Correct error message.
* config/tc-i386.c (x86_64_section_letter): Likewise.
* config/tc-ia64.c (ia64_elf_section_letter): Likewise.
* config/tc-mep.c (mep_elf_section_letter): Likewise.
* gas/elf/bad-section-flag.d, * gas/elf/bad-section-flag.err,
* gas/elf/bad-section-flag.s: New test.
* gas/elf/elf.exp: Run it.

13 years agogdb/
jkratoch [Thu, 16 Sep 2010 19:20:50 +0000 (19:20 +0000)]
gdb/
* charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
characters.

13 years ago * script_sections.cc (class Memory_region): Remove "NULL" from
ccoutant [Thu, 16 Sep 2010 15:52:15 +0000 (15:52 +0000)]
* script_sections.cc (class Memory_region): Remove "NULL" from
vector initializations.

13 years ago2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Thu, 16 Sep 2010 13:47:51 +0000 (13:47 +0000)]
2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>

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  <pmuldoon@redhat.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>

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.

13 years ago * ld-elf/orphan-region.d: xfail for spu.
amodra [Thu, 16 Sep 2010 10:51:40 +0000 (10:51 +0000)]
* ld-elf/orphan-region.d: xfail for spu.
* ld-elf/relocatable.d: xfail for hppa.

13 years ago * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
amodra [Thu, 16 Sep 2010 10:35:58 +0000 (10:35 +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.

13 years ago * binutils-all/i386/i386.exp: Don't run on linuxaout.
amodra [Thu, 16 Sep 2010 00:41:59 +0000 (00:41 +0000)]
* binutils-all/i386/i386.exp: Don't run on linuxaout.

13 years ago * gas/all/redef3.d: Don't run on arc.
amodra [Thu, 16 Sep 2010 00:39:10 +0000 (00:39 +0000)]
* gas/all/redef3.d: Don't run on arc.
* gas/i386/i386.exp: Don't run intel-got32 on linuxaout.  Move
x86_64 mingw exclusions to equivalent elf only block of tests.

13 years ago * ld-elf/group3b.d: Disable for generic linker targets.
amodra [Thu, 16 Sep 2010 00:28:56 +0000 (00:28 +0000)]
* ld-elf/group3b.d: Disable for generic linker targets.
* ld-elf/linkonce2.d: Likewise.
* ld-scripts/empty-address-2a.d: Disable for frv and aout,oldld.
* ld-scripts/empty-address-2b.d: Likewise.
* ld-scripts/rgn-at5.s: Don't use .word.
* ld-scripts/rgn-at5.d: Update.

13 years agobfd/
amodra [Thu, 16 Sep 2010 00:06:10 +0000 (00:06 +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.

13 years ago*** empty log message ***
gdbadmin [Thu, 16 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Thu, 16 Sep 2010 00:00:04 +0000 (00:00 +0000)]
daily update

13 years agogdb/
jkratoch [Wed, 15 Sep 2010 22:53:53 +0000 (22:53 +0000)]
gdb/
* MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
keep the list in alphabetical order.  Use longer e-mail address.

13 years ago * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
tromey [Wed, 15 Sep 2010 22:26:24 +0000 (22:26 +0000)]
* MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.

13 years ago * charset.c (iconv_open): New define.
tromey [Wed, 15 Sep 2010 20:18:46 +0000 (20:18 +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.

13 years agoFix intend
ktietz [Wed, 15 Sep 2010 19:50:13 +0000 (19:50 +0000)]
Fix intend

13 years agoChangeLog gas
ktietz [Wed, 15 Sep 2010 19:48:52 +0000 (19:48 +0000)]
ChangeLog gas

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

* config/obj-coff-seh.c (seh_validate_seg): New funtion.
(obj_coff_seh_endproc): Add check for segment.
(obj_coff_seh_endprologue): Likewise.
(obj_coff_seh_pushreg): Likewise.
(obj_coff_seh_pushframe): Likewise.
(obj_coff_seh_save): Likewise.
(obj_coff_seh_setframe): Likewise.

ChangeLog gas/testsuite

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

* gas/pe/pe.exp: Add new test.
* gas/pe/seh-x64-err-1.l: New.
* gas/pe/seh-x64-err-1.s: New.

13 years agoChangeLog gas
ktietz [Wed, 15 Sep 2010 19:43:54 +0000 (19:43 +0000)]
ChangeLog gas

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

       * config/obj-coff-seh.h (seh_context): New member code_seg.
       * config/obj-coff-seh.c: Implementing xdata/pdata section cloning
       for link-once code-segment.

ChangeLog ld

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

       * scripttempl/pep.sc: Add .xdata segment and
       put into .pdata all segments beginning with .pdata.

ChangeLog gas/testsuite
2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

       * gas/pe/pe.exp: Add peseh-x64-4,5,6 tests.
       * gas/pe/peseh-x64-4.s: New.
       * gas/pe/peseh-x64-4.d: New.
       * gas/pe/peseh-x64-5.d: New.
       * gas/pe/peseh-x64-6.d: New.

13 years ago2010-09-15 Paul Bolle <pebolle@tiscali.nl>
tromey [Wed, 15 Sep 2010 19:31:59 +0000 (19:31 +0000)]
2010-09-15  Paul Bolle  <pebolle@tiscali.nl>

* gdb.texinfo (Character Sets): Correctly reference host-charset
in example.

13 years ago * dwarf2read.c (struct die_info): Fix comment.
devans [Wed, 15 Sep 2010 18:14:45 +0000 (18:14 +0000)]
* dwarf2read.c (struct die_info): Fix comment.

13 years ago * incremental.cc (Output_section_incremental_inputs::write_info_blocks):
ccoutant [Wed, 15 Sep 2010 18:10:31 +0000 (18:10 +0000)]
* incremental.cc (Output_section_incremental_inputs::write_info_blocks):
Resolve forwarding symbols.

13 years ago2010-09-15 Doug Kwan <dougkwan@google.com>
dougkwan [Wed, 15 Sep 2010 17:39:56 +0000 (17:39 +0000)]
2010-09-15  Doug Kwan  <dougkwan@google.com>

* gold/testsuite/script_test_3.t: Add ARM special sections.
* gold/testsuite/script_test_4.t: Same.
* gold/testsuite/script_test_5.t: Same.
* gold/testsuite/script_test_6.t: Same.
* gold/testsuite/script_test_7.t: Same.
* gold/testsuite/script_test_7.t: Same.
* gold/testsuite/thumb_blx_out_of_range.s: Fix instruction alignment.

13 years ago2010-09-15 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 15 Sep 2010 17:27:27 +0000 (17:27 +0000)]
2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

        * 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.

13 years agoHandle NULL iostream in bfd_plugin_object_p.
hjl [Wed, 15 Sep 2010 17:12:53 +0000 (17:12 +0000)]
Handle NULL iostream in bfd_plugin_object_p.

2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/12004
* plugin.c (bfd_plugin_object_p): Handle NULL iostream.

13 years agoPass "plugin" as target for "ar --plugin" when opening a BFD file.
hjl [Wed, 15 Sep 2010 17:10:15 +0000 (17:10 +0000)]
Pass "plugin" as target for "ar --plugin" when opening a BFD file.

2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* ar.c (plugin_target): New.
(main): Set plugin_target to "plugin" for --plugin.
(open_inarch): Initialize target to plugin_target.
(replace_members): Pass plugin_target to ar_emul_replace
and ar_emul_append.

* binemul.h (ar_emul_append): Add a target argument.
(ar_emul_default_append): Likewise.
(ar_emul_replace): Likewise.
(ar_emul_default_replace): Likewise.
(bin_emulation_xfer_struct): Add a target argument to
ar_append and ar_replace.

* binemul.c (ar_emul_append): Updated.  Pass target to bfd_openr.
(do_ar_emul_default_append): Likewise.
(ar_emul_default_append): Likewise.
(ar_emul_replace): Likewise.
(ar_emul_default_replace): Likewise.

13 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch number
corinna [Wed, 15 Sep 2010 11:26:09 +0000 (11:26 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch number
of links and inode number only if path has good inodes.
(fhandler_base::fstat_by_name): Fetch inode number only if path has
good inodes.