syncup with Metaware tools w.r.t. new relocations

(this commit it actually from binutils - needing gdb propagation)

* include/elf/arc.h: Add new relocations to syncup with Metaware tools

* bfd/elf32-arc.c (elf_arc_reloc_type): Add new relocations to syncup
  with Metaware tools

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Simon Cook <simon.cook@embecosm.com>
Cc: Francois Bedard <Francois.Bedard@synopsys.com>
Cc: jeremy.bennett@embecosm.com <jeremy.bennett@embecosm.com>
Cc: Anton Kolesov <Anton.Kolesov@synopsys.com>
Cc: Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
Cc: Joern Rennecke  <joern.rennecke@embecosm.com>
ARC: Disable --gc-sections

It is a known problem (see STAR 9000656506) that ld option --gc-sections
cause failed assertions for ARC. Until the root cause will be resolved,
disable --gc-sections.

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>
Add link-time error to stop relocations that can't be resolved from ending up in shared libraries.

        * elf32-arc.c (elf_arc_check_relocs): Add error when relocs appear that
        shouldn't in read-only memory for shared libraries.
testsuite: update expected output

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>
testsuite: Fix for error in monitor.exp

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>
testsuite: Fix gdb.base/bang.exp for remote stubs without exit

Some remote stubs do not have a proper exit() function implementation.
gdb.base/bang.exp was failing on those targets due to timeout. With this
patch bang.exp uses already defined library procedures to handle this
situation gracefully without breaking native targets.

Tested with x86_64 (unix, native-gdbserver) and with arc-*-elf32.

gdb/testsuite/ChangeLog:

2013-10-08  Anton Kolesov <Anton.Kolesov@synopsys.com>

	* gdb.base/bang.exp: Use gdb_continue_to_end to properly support
	remote stubs where exit() behaviour is unreliable.

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>