Richard Sandiford [Wed, 28 Mar 2007 14:42:28 +0000 (14:42 +0000)]
ld/
* ld.h (ld_config_type): Add rpath_separator.
* ldmain.c (main): Initialize it.
* lexsup.c (parse_args): Honor config.rpath_separator.
* emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
(gld${EMULATION_NAME}_add_sysroot): Likewise.
(gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
rather than ':' when building the path.
* emultempl/vxworks.em (vxworks_before_parse): New function.
Override config.rpath_separator.
(LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
set to gld${EMULATION_NAME}_after_open; #define that identifier
to vxworks_foo instead.
(LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
ld/testsuite/
* ld-vxworks/rpath-1.s, ld-vxworks/rpath-1.d,
* ld-vxworks/vxworks.exp: New files.
Richard Sandiford [Wed, 28 Mar 2007 14:39:10 +0000 (14:39 +0000)]
bfd/
* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
* elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
Merge into...
(sparc_elf_append_rela): ...this new function.
(SPARC_ELF_APPEND_RELA): Delete.
(_bfd_sparc_elf_link_hash_table_create): Don't initialize
the deleted append_rela field.
(_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
instead of SPARC_ELF_APPEND_RELA.
(_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
elf_size_info structure to find the size of a RELA entry and
the associated swap-out function.
(sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
(sparc_finish_dyn): ...this new function.
(_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
Richard Sandiford [Wed, 28 Mar 2007 09:08:53 +0000 (09:08 +0000)]
bfd/
200x-xx-xx Richard Sandiford <richard@codesourcery.com>
Phil Edwards <phil@codesourcery.com>
* doc/bfd.texinfo: Put the contents after the title page rather
than at the end of the document.
binutils/
200x-xx-xx Richard Sandiford <richard@codesourcery.com>
Phil Edwards <phil@codesourcery.com>
* doc/binutils.texi: Put the contents after the title page rather
than at the end of the document.
gas/
200x-xx-xx Richard Sandiford <richard@codesourcery.com>
Phil Edwards <phil@codesourcery.com>
* doc/as.texinfo: Put the contents after the title page rather
than at the end of the document.
gprof/
200x-xx-xx Richard Sandiford <richard@codesourcery.com>
Phil Edwards <phil@codesourcery.com>
* gprof.texi: Put the contents after the title page rather
than at the end of the document.
ld/
200x-xx-xx Richard Sandiford <richard@codesourcery.com>
Phil Edwards <phil@codesourcery.com>
* ld.texinfo: Put the contents after the title page rather
than at the end of the document.
Nick Clifton [Wed, 28 Mar 2007 08:09:25 +0000 (08:09 +0000)]
Add ChangeLog entry for delta 1.361->1.362 to readelf.c accidentally checked in with a previous commit.
Alan Modra [Wed, 28 Mar 2007 05:09:42 +0000 (05:09 +0000)]
* MAINTAINERS: Update mailing list addresses. Add myself
as PPC maintainer.
Pedro Alves [Wed, 28 Mar 2007 00:32:41 +0000 (00:32 +0000)]
* gdb.cp/method2.cc: New test.
* gdb.cp/method2.exp: New test.
* gdb.cp/Makefile.in (EXECUTABLES): Add method2.
Pedro Alves [Wed, 28 Mar 2007 00:12:15 +0000 (00:12 +0000)]
* linespec.c: Include language.h.
(find_methods): Add language parameter. Call
lookup_symbol_in_language. Pass language down.
(add_matching_methods): Likewise. Call
lookup_symbol_in_language.
(add_constructors): Likewise.
(find_method): Pass sym_class to collect_methods.
(collect_methods): Add sym_class parameter. Pass language
down.
* symtab.c (lookup_symbol): Rename to ...
(lookup_symbol_in_language): ... this. Add language
parameter. Use passed language instead of current_language.
(lookup_symbol): New as wrapper around
lookup_symbol_in_language.
(lookup_symbol_aux): Add language parameter. Use passed
language instead of current_language.
(search_symbols): Indent.
* symtab.h (enum language): Forward declare.
(lookup_symbol_in_language): Declare.
(lookup_symbol): Update description.
* ada-lang.h (lookup_symbol_in_language): Remove declaration.
* ada-lang.c (restore_language): Remove.
(lookup_symbol_in_language): Remove.
Alan Modra [Wed, 28 Mar 2007 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 28 Mar 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Pedro Alves [Tue, 27 Mar 2007 23:01:00 +0000 (23:01 +0000)]
* breakpoint.c (bpstat_num): Add int *num parameter.
* breakpoint.h (bpstat_num): Likewise.
* infcmd.c (continue_command): Adjust to new bpstat_num
interface.
(program_info): Likewise.
Pedro Alves [Tue, 27 Mar 2007 22:46:08 +0000 (22:46 +0000)]
* remote-utils.c (monitor_output): Constify msg parameter.
* server.h (monitor_output): Likewise.
* win32-i386-low.c (handle_output_debug_string): New.
(win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
handle_output_debug_string.
(get_child_debug_event): Likewise.
H.J. Lu [Tue, 27 Mar 2007 22:45:19 +0000 (22:45 +0000)]
Fix year.
Paul Brook [Tue, 27 Mar 2007 21:09:53 +0000 (21:09 +0000)]
2006-03-27 Paul Brook <paul@codesourcery.com>
opcodes/
* arm-dis.c (thumb_opcodes): Add entry for undefined insns (0xbe??).
Ulrich Weigand [Tue, 27 Mar 2007 19:37:08 +0000 (19:37 +0000)]
* config/sh/tm-sh.h: Remove file.
* config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
* config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
* config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
* config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
Ulrich Weigand [Tue, 27 Mar 2007 19:11:11 +0000 (19:11 +0000)]
* config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
* remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
* sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
sequence if target_shortname is "remote".
doc/ChangeLog:
* gdbint.texinfo (Target Conditionals): Remove mention of
DEPRECATED_REMOTE_BREAKPOINT, DEPRECATED_BIG_REMOTE_BREAKPOINT,
and DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
Daniel Jacobowitz [Tue, 27 Mar 2007 19:10:16 +0000 (19:10 +0000)]
2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
* server.c (main): Correct strtoul check.
Daniel Jacobowitz [Tue, 27 Mar 2007 19:04:37 +0000 (19:04 +0000)]
2007-03-27 Anton Blanchard <anton@samba.org>
* rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
instead of wordsize when looking for the LR in a stack frame.
Daniel Jacobowitz [Tue, 27 Mar 2007 19:02:42 +0000 (19:02 +0000)]
* dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
(dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
argument. Update all callers.
(struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
(dwarf2_frame_set_eh_frame_regnum): Rename to...
(dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
* dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
(dwarf2_frame_set_adjust_regnum): ...this.
(dwarf2_frame_eh_frame_regnum): Delete prototype.
* rs6000-tdep.c: Include "dwarf2-frame.h".
(rs6000_adjust_frame_regnum): Define.
(rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
Register rs6000_adjust_frame_regnum.
* Makefile.in (rs6000-tdep.o): Update dependencies.
Daniel Jacobowitz [Tue, 27 Mar 2007 18:47:58 +0000 (18:47 +0000)]
* gdb.ada/exec_changed.exp: Avoid "set confirm off".
Daniel Jacobowitz [Tue, 27 Mar 2007 18:32:01 +0000 (18:32 +0000)]
2007-03-27 Jon Ringle <jon@ringle.org>
* linux-low.c: Check __ARCH_HAS_MMU__ also.
Daniel Jacobowitz [Tue, 27 Mar 2007 18:09:36 +0000 (18:09 +0000)]
Add "make pdf" and "make install-pdf", from Brooks Moses
<brooks.moses@codesourcery.com>.
Daniel Jacobowitz [Tue, 27 Mar 2007 17:59:38 +0000 (17:59 +0000)]
* config/gdbserver.exp (gdbserver_gdb_load): Update argument list.
(gdb_load): Delete, replace with...
(gdb_reload): ...this.
* gdb.server/server-run.exp: Use gdb_load and gdbserver_run.
* gdb.server/server-mon.exp: Likewise.
* lib/gdb.exp (gdb_run_cmd): Use gdb_reload.
(gdb_start_cmd): New.
(gdb_file_cmd): Save the last loaded file.
(gdb_reload): New.
(gdb_gnu_strip_debug): Use transform.
* lib/gdbserver-support.exp (gdbserver_spawn): Move file download
support here. Use new $last_loaded_file. Check mtime.
(gdb_target_cmd): Handle ObjC failure case.
(infer_host_exec): Delete.
(gdbserver_load): Rename to...
(gdbserver_run): ...this. Simplify.
* lib/mi-support.exp (mi_gdb_file_cmd): Set last_loaded_file.
(mi_gdb_load): Move most contents to a new function...
(mi_gdb_target_load): ...here. Simplify call to gdbserver_gdb_load.
(mi_run_cmd): Use mi_gdb_target_load.
* gdb.base/break.exp, gdb.base/ending-run.exp, gdb.base/pending.exp,
gdb.base/sepdebug.exp, gdb.base/unload.exp, gdb.objc/objcdecode.exp:
Use gdb_run_cmd.
* gdb.base/charsign.exp: Remove incorrect comment.
* gdb.base/dbx.exp (gdb_file_cmd): Set last_loaded_file.
* gdb.ada/exec_changed.exp, gdb.ada/null_record.exp, gdb.ada/start.exp,
gdb.base/start.exp: Use gdb_start_cmd.
Daniel Jacobowitz [Tue, 27 Mar 2007 15:31:35 +0000 (15:31 +0000)]
* amd64-tdep.c (amd64_init_frame_cache): New function.
(amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
Alan Modra [Tue, 27 Mar 2007 14:14:19 +0000 (14:14 +0000)]
* ld-elf/note-1.s: Increase .foo size.
Alan Modra [Tue, 27 Mar 2007 08:36:27 +0000 (08:36 +0000)]
* ld-spu/spu.exp (embed_test): New.
* ld-spu/ear.s: New.
* ld-spu/ear.d: New.
* ld-spu/embed.rd: New.
* ld-spu/ovl2.s: New.
* ld-spu/ovl2.d: New.
Alan Modra [Tue, 27 Mar 2007 08:34:53 +0000 (08:34 +0000)]
New test
Alan Modra [Tue, 27 Mar 2007 08:33:47 +0000 (08:33 +0000)]
* NEWS: Mention ".reloc".
Alan Modra [Tue, 27 Mar 2007 02:10:58 +0000 (02:10 +0000)]
* embedspu.sh: Correct toe_addr quoting.
gdbadmin [Tue, 27 Mar 2007 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 27 Mar 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Mon, 26 Mar 2007 23:56:40 +0000 (23:56 +0000)]
* embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns. Tighten
.toe section and .toe address checks. Use .reloc for _EAR*
symbols defined in non-BSS sections. Build table for _SPUEAR_
symbols.
Andreas Schwab [Mon, 26 Mar 2007 23:35:34 +0000 (23:35 +0000)]
* elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
Bob Wilson [Mon, 26 Mar 2007 23:01:46 +0000 (23:01 +0000)]
* config/tc-xtensa.c (xg_translate_idioms): Allow assembly idioms
in FLIX instructions.
Bob Wilson [Mon, 26 Mar 2007 21:28:20 +0000 (21:28 +0000)]
* gdb.texinfo (Omissions from Ada, Additions to Ada): Wrap long lines.
Bob Wilson [Mon, 26 Mar 2007 15:51:17 +0000 (15:51 +0000)]
* gdb.texinfo (Invoking GDB): Use @value{GDBP}.
(Source Path, Character Sets, Macros, Define)
(GDB/MI Result Records, GDB/MI Simple Examples)
(GDB/MI Program Execution, GDB/MI File Commands)
(Maintenance Commands, Packets, File-I/O Overview): Use @value{GDBN}.
(Bug Reporting): Use @value{GCC}.
Bob Wilson [Mon, 26 Mar 2007 15:49:46 +0000 (15:49 +0000)]
* gdb.texinfo (Help): Fix formatting of examples.
(Variables): Use @ifnotinfo instead of @iftex.
(Non-debug DLL symbols): Use @ref instead of @pxref.
(Sparclet File): Use @samp instead of quotes.
H.J. Lu [Mon, 26 Mar 2007 15:44:43 +0000 (15:44 +0000)]
Mention PR ld/4208 in ChangeLog entry.
Bob Wilson [Mon, 26 Mar 2007 15:43:40 +0000 (15:43 +0000)]
* gdb.texinfo (Variables, C): Update cross reference to GCC docs.
Bob Wilson [Mon, 26 Mar 2007 15:41:43 +0000 (15:41 +0000)]
* gdb.texinfo (Top): Move TUI and Annotations menu entries to match
the order of the nodes.
(C Operators, C Constants, Debugging C): Remove extra menus.
(Method Names in Commands): Do not specify next/prev/up nodes.
H.J. Lu [Mon, 26 Mar 2007 15:40:00 +0000 (15:40 +0000)]
2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
* acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first
when setting REPORT_BUGS_TEXI.
Bob Wilson [Mon, 26 Mar 2007 15:39:15 +0000 (15:39 +0000)]
* gdb.texinfo (File Options): Add missing parenthesis.
(Breakpoints, Special Fortran commands, PowerPC): Fix typos.
Julian Brown [Mon, 26 Mar 2007 14:43:29 +0000 (14:43 +0000)]
* config/tc-arm.c (arm_it): Add immisfloat field.
(parse_qfloat_immediate): Disallow integer syntax for floating-point
immediates. Fix hex immediates, handle 0.0 and -0.0 specially.
(parse_neon_mov): Set immisfloat bit for operand if it parsed as a
float.
(neon_cmode_for_move_imm): Reject non-float immediates for float
operands.
(neon_move_immediate): Pass immisfloat bit to neon_cmode_for_move_imm.
Julian Brown [Mon, 26 Mar 2007 14:43:08 +0000 (14:43 +0000)]
* gas/arm/neon-const.s: Use FP syntax for 0/-0.
* gas/arm/vfp-neon-syntax-inc.s: Likewise, for 1.
* gas/arm/neon-cov.s: Use float syntax for FP immediate.
Julian Brown [Mon, 26 Mar 2007 14:39:35 +0000 (14:39 +0000)]
gas/
* doc/c-arm.texi: Add documentation for .dn/.qn directives.
Maciej W. Rozycki [Mon, 26 Mar 2007 13:54:30 +0000 (13:54 +0000)]
* ui-out.c (ui_out_field_core_addr): Truncate address to
TARGET_ADDR_BIT size before printing.
Alan Modra [Mon, 26 Mar 2007 12:50:09 +0000 (12:50 +0000)]
* elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
(allocate_spuear_stubs): New function.
(spu_elf_size_stubs): Call allocate_spuear_stubs.
Alan Modra [Mon, 26 Mar 2007 12:23:48 +0000 (12:23 +0000)]
* doc/as.texinfo (Reloc): Document.
* read.c (potable): Add "reloc".
(s_reloc): New function.
* write.c (reloc_list): New global var.
(resolve_reloc_expr_symbols): New function.
(write_object_file): Call it.
(write_relocs): Process reloc_list.
* write.h (struct reloc_list): New.
(reloc_list): Declare.
Alan Modra [Mon, 26 Mar 2007 12:23:03 +0000 (12:23 +0000)]
* aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
* aout-arm.c (MY_bfd_reloc_name_lookup): Define.
(MY (bfd_reloc_name_lookup)): New function.
* aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
* aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
(MY_bfd_reloc_name_lookup): Define.
* aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
(MY_bfd_reloc_name_lookup): Define.
* aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
(NAME (aout, reloc_name_lookup)): New function.
* bout.c (b_out_bfd_reloc_name_lookup): New function.
* coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
(_bfd_ecoff_bfd_reloc_name_lookup): Define.
* coff-arm.c (coff_arm_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-i386.c (coff_bfd_reloc_name_lookup): Define.
(coff_i386_reloc_name_lookup): New function.
* coff-i860.c (coff_i860_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-i960.c (coff_i960_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-m68k.c (m68k_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-maxq.c (maxq_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-mips.c (mips_bfd_reloc_name_lookup): New function.
(_bfd_ecoff_bfd_reloc_name_lookup): Define.
* coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
(_bfd_xcoff_reloc_name_lookup): New function.
(rs6000coff_vec, pmac_xcoff_vec): Init new field.
* coff-sh.c (coff_bfd_reloc_name_lookup): Define.
(sh_coff_reloc_name_lookup): New function.
* coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
(tic30_coff_reloc_name_lookup): New function.
* coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
(tic4x_coff_reloc_name_lookup): New function.
* coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
(tic54x_coff_reloc_name_lookup): New function.
* coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
(coff_amd64_reloc_name_lookup): New function.
* coff-z80.c (coff_z80_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
(xcoff64_reloc_name_lookup): New function.
(rs6000coff64_vec, aix5coff64_vec): Init new field.
* coffcode.h (coff_bfd_reloc_name_lookup): Define.
* elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
* elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-cris.c (cris_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-crx.c (elf_crx_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-fr30.c (fr30_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-frv.c (frv_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-i370.c (i370_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-i386.c (elf_i386_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-m32c.c (m32c_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-m68k.c (reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-mep.c (mep_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
(mips_vxworks_bfd_reloc_name_lookup): Likewise.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-mt.c (mt_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elf32-pj.c (pj_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-s390.c (elf_s390_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-score.c (elf32_score_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-sh.c (sh_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-spu.c (spu_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-v850.c (v850_elf_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-vax.c (reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
(bfd_elf32_bfd_reloc_name_lookup): Define.
* elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
(bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
* elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
* elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
(bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-s390.c (elf_s390_reloc_name_lookup): New function.
(bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
(bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
* elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
(bfd_elf64_bfd_reloc_name_lookup): Define.
* elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
* elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
(bfd_elfNN_bfd_reloc_name_lookup): Define.
* elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
* elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
* i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
* i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
* ieee.c (ieee_bfd_reloc_name_lookup): Define.
* libaout.h (NAME (aout, reloc_name_lookup)): Declare.
* libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
* mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
(MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
(MY(reloc_name_lookup)): New function.
* nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
* oasys.c (oasys_bfd_reloc_name_lookup): Define.
* pdp11.c (NAME (aout, reloc_name_lookup)): New function.
* pe-mips.c (coff_mips_reloc_name_lookup): New function.
(coff_bfd_reloc_name_lookup): Define.
* reloc.c (bfd_reloc_name_lookup): New function.
* riscix.c (riscix_reloc_name_lookup): New function.
(MY_bfd_reloc_name_lookup): Define.
* som.c (som_bfd_reloc_name_lookup): New function.
* targets.c (struct bfd_target): Add reloc_name_lookup.
(BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
* versados.c (versados_bfd_reloc_name_lookup): Define.
* vms.c (vms_bfd_reloc_name_lookup): New function.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
Alan Modra [Mon, 26 Mar 2007 11:22:08 +0000 (11:22 +0000)]
missed entry
Alan Modra [Mon, 26 Mar 2007 11:10:44 +0000 (11:10 +0000)]
* Makefile.am: Add dependency on ldemul-list.h for powerpc and
spu target emul files.
* configure.in: Check for mkstemp and waitpid.
* Makefile.in: Regenerate.
* configure: Regenerate.
* config.in: Regenerate.
* ldlang.c (input_file_chain): Make global.
(lang_add_input_file): Don't set lang_has_input_file here.
* ldlang.h (input_file_chain): Declare.
* emultempl/ppc32elf.em (ppc_recognized_file): New function.
(LDEMUL_RECOGNIZED_FILE): Define.
* emultempl/ppc64elf.em (ppc64_recognized_file): New function.
(LDEMUL_RECOGNIZED_FILE): Define.
* emultempl/spuelf.em (struct tflist): New.
(tmp_file_list): New var.
Thiemo Seufer [Mon, 26 Mar 2007 10:29:35 +0000 (10:29 +0000)]
* elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
matching relocation is found.
(_bfd_mips_elf_relocate_section): Only warn about missing relocations.
Alan Modra [Mon, 26 Mar 2007 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 26 Mar 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
gdbadmin [Sun, 25 Mar 2007 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 25 Mar 2007 00:00:08 +0000 (00:00 +0000)]
daily update
Paul Brook [Sat, 24 Mar 2007 21:29:45 +0000 (21:29 +0000)]
2007-03-24 Paul Brook <paul@codesourcery.com>
Mark Shinwell <shinwell@codesourcery.com>
gas/
* config/tc-arm.c (operand_parse_code): Add OP_oRRw.
(parse_operands): Don't expect comma if first operand missing.
Handle OP_oRRw.
(do_srs): Encode register number, checking it is r13. Update comment.
(insns): Update SRS entries to take a register.
gas/testsuite/
* gas/arm/archv6.s: Add new SRS tests.
* gas/arm/archv6.d: Update expected output.
* gas/arm/thumb32.s: Add new SRS tests.
* gas/arm/thumb32.d: Update expected output.
* gas/arm/srs-t2.d: New.
* gas/arm/srs-t2.l: New.
* gas/arm/srs-t2.s: New.
* gas/arm/srs-arm.d: New.
* gas/arm/srs-arm.l: New.
* gas/arm/srs-arm.s: New.
opcodes/
* arm-dis.c (arm_opcodes): Print SRS base register.
Paul Brook [Sat, 24 Mar 2007 16:09:16 +0000 (16:09 +0000)]
2007-03-24 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
Alan Modra [Sat, 24 Mar 2007 06:49:03 +0000 (06:49 +0000)]
ld/
* ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
rather than defining unconditionally.
(lang_leave_overlay_section): Likewise.
* ld.texinfo (Overlay Description): Update description and examples
for start/stop syms.
ld/testsuite/
* ld-elf/overlay.d: -u symbols we want to see in the output.
Paul Brook [Sat, 24 Mar 2007 02:51:28 +0000 (02:51 +0000)]
2007-03-24 Paul Brook <paul@codesourcery.com>
opcodes/
* arm-dis.c (coprocessor_opcodes): Remove superfluous 0x.
(print_insn_coprocessor): Handle %<bitfield>x.
Paul Brook [Sat, 24 Mar 2007 01:29:00 +0000 (01:29 +0000)]
2007-03-24 Paul Brook <paul@codesourcery.com>
Mark Shinwell <shinwell@codesourcery.com>
gas/
* config/tc-arm.c (operand_parse_code): Add OP_oRRw.
(parse_operands): Don't expect comma if first operand missing.
Handle OP_oRRw.
(do_srs): Encode register number, checking it is r13. Update comment.
(insns): Update SRS entries to take a register.
gas/testsuite/
* gas/arm/archv6.s: Add new SRS tests.
* gas/arm/archv6.d: Update expected output.
* gas/arm/thumb32.s: Add new SRS tests.
* gas/arm/thumb32.d: Update expected output.
* gas/arm/srs-t2.d: New.
* gas/arm/srs-t2.l: New.
* gas/arm/srs-t2.s: New.
* gas/arm/srs-arm.d: New.
* gas/arm/srs-arm.l: New.
* gas/arm/srs-arm.s: New.
opcodes/
* arm-dis.c (arm_opcodes): Print SRS base register.
gdbadmin [Sat, 24 Mar 2007 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 23 Mar 2007 23:00:07 +0000 (23:00 +0000)]
daily update
Kaz Kojima [Fri, 23 Mar 2007 21:26:23 +0000 (21:26 +0000)]
PR gas/3811
* readelf.c (debug_apply_rela_addends): Do nothing for SH.
H.J. Lu [Fri, 23 Mar 2007 17:14:08 +0000 (17:14 +0000)]
2003-03-23 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
H.J. Lu [Fri, 23 Mar 2007 17:11:54 +0000 (17:11 +0000)]
2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
* acx.m4 (ACX_BUGURL): Replace "@" with "@@" for
REPORT_BUGS_TEXI.
H.J. Lu [Fri, 23 Mar 2007 16:17:21 +0000 (16:17 +0000)]
gas/
2003-03-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_begin): Allow '.' in mnemonic.
gas/testsuite/
2003-03-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/rex.s: Add tests for rex.WRXB.
* gas/i386/rex.d: Updated.
* gas/i386/rex.d: Replace rex64XYZ with rex.WRXB.
* gas/i386/x86-64-io-intel.d : Likewise.
* gas/i386/x86-64-io-suffix.d: Likewise.
* gas/i386/x86-64-io.d: Likewise.
* gas/i386/x86-64-opcode.d: Likewise.
opcodes/
2003-03-23 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (prefix_name): Replace rex64XYZ with rex.WRXB.
* i386-opc.c (i386_optab): Add rex.wrxb.
Maciej W. Rozycki [Fri, 23 Mar 2007 12:41:18 +0000 (12:41 +0000)]
* gdb.base/sigbpt.exp: Fix the message when skipping test.
* gdb.base/signull.exp: Similarly.
Mark Shinwell [Fri, 23 Mar 2007 10:44:08 +0000 (10:44 +0000)]
Typo correction.
Mark Shinwell [Fri, 23 Mar 2007 10:43:35 +0000 (10:43 +0000)]
gas/
* config/tc-arm.c (md_apply_fix): Turn CZB instructions that
attempt to jump to the next instruction into NOPs.
Joseph Myers [Fri, 23 Mar 2007 02:51:30 +0000 (02:51 +0000)]
bfd:
* configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
* configure: Regenerate.
config:
* acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define.
Alan Modra [Fri, 23 Mar 2007 00:48:05 +0000 (00:48 +0000)]
* ld-spu/ovl.s (f4_a2): Tail call.
* ld-spu/ovl.d: Add --emit-relocs to ld options, -r to objdump.
Update expected results.
Alan Modra [Fri, 23 Mar 2007 00:42:26 +0000 (00:42 +0000)]
* config/tc-spu.c: Don't include opcode/spu.h.
(md_assemble): Set tc_fix_data.insn_tag and arg_format.
(md_apply_fix): Adjust.
* config/tc-spu.h: Include opcode/spu.h.
(struct tc_fix_info): New.
(TC_FIX_TYPE, TC_INIT_FIX_DATA): Adjust.
(TC_FORCE_RELOCATION): Define.
Alan Modra [Fri, 23 Mar 2007 00:42:00 +0000 (00:42 +0000)]
* elf32-spu.c (spu_stub_name): Don't put input section in stub name.
Remove input_sec param. Adjust all calls.
(write_one_stub): Adjust stub symbol.
(needs_ovl_stub): New function, extracted from..
(spu_elf_size_stubs): ..here.
(spu_elf_relocate_section): Use needs_ovl_stub.
gdbadmin [Fri, 23 Mar 2007 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***
Kaz Kojima [Fri, 23 Mar 2007 00:00:23 +0000 (00:00 +0000)]
* ld-sh/ld-r-1.d: Update.
* ld-sh/shared-1.d: Likewise.
Alan Modra [Thu, 22 Mar 2007 23:44:00 +0000 (23:44 +0000)]
* ld-elf/elf.exp: Add "--local-store 0:0" to LDFLAGS for spu.
Alan Modra [Thu, 22 Mar 2007 23:00:09 +0000 (23:00 +0000)]
daily update
Joseph Myers [Thu, 22 Mar 2007 21:18:34 +0000 (21:18 +0000)]
bfd:
* Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
if nonempty.
* configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
* Makefile.in, configure, doc/Makefile.in: Regenerate.
binutils:
* doc/binutils.texi: Include VERSION_PACKAGE when reporting
version.
gas:
* doc/as.texinfo: Include VERSION_PACKAGE when reporting version.
gprof:
* Makefile.am (TEXI2POD): Include $(AM_MAKEINFOFLAGS).
(AM_MAKEINFOFLAGS, TEXI2DVI): Define with -I ../bfd/doc.
* Makefile.in: Regenerate.
* gprof.texi: Include bfdver.texi. Report both VERSION_PACKAGE
and VERSION.
ld:
* ld.texinfo: Include VERSION_PACKAGE when reporting version.
H.J. Lu [Thu, 22 Mar 2007 16:02:56 +0000 (16:02 +0000)]
Move gdb ChangeLog entry to gdb/ChangeLog.
H.J. Lu [Thu, 22 Mar 2007 15:52:29 +0000 (15:52 +0000)]
bfd/
2003-03-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4210
* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
address and virtual size of the last section for the image
size.
ld/testsuite/
2003-03-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4210
* ld-pe/image_size.d: New file.
* ld-pe/image_size.s: Likewise.
* ld-pe/image_size.t: Likewise.
* ld-pe/pe.exp: Run image_size.
H.J. Lu [Thu, 22 Mar 2007 15:50:38 +0000 (15:50 +0000)]
bfd/
2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4007
* elf.c (assign_file_positions_for_load_sections): Check if
all sections are in the segment.
ld/testsuite/
2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4007
* ld-elf/note-1.d: New file.
* ld-elf/note-1.s: Likewise.
* ld-elf/note-1.t: Likewise.
* ld-i386/alloc.d: Likewise.
* ld-i386/alloc.s: Likewise.
* ld-i386/alloc.t: Likewise.
* ld-i386/i386.exp: Run "alloc".
Maciej W. Rozycki [Thu, 22 Mar 2007 14:21:02 +0000 (14:21 +0000)]
* remote-mips.c (mips_xfer_memory): Update prototype.
Joel Brobecker [Thu, 22 Mar 2007 13:35:05 +0000 (13:35 +0000)]
* symfile.h: #include "symtab.h"
Denis Pilat [Thu, 22 Mar 2007 09:58:53 +0000 (09:58 +0000)]
2007-03-22 Denis Pilat <denis.pilat@st.com>
* utils.c (pagination_on_command, pagination_off_command):
Remove useless prototypes.
H.J. Lu [Thu, 22 Mar 2007 00:27:14 +0000 (00:27 +0000)]
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (process_suffix): Check 0x90 instead of
xchg for xchg %rax,%rax.
gdbadmin [Thu, 22 Mar 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Pierre Muller [Wed, 21 Mar 2007 23:57:14 +0000 (23:57 +0000)]
* fix PR2232 according to patch submitted
Alan Modra [Wed, 21 Mar 2007 23:00:10 +0000 (23:00 +0000)]
daily update
H.J. Lu [Wed, 21 Mar 2007 21:23:44 +0000 (21:23 +0000)]
gas/
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c: Replace REX_MODE64, REX_EXTX, REX_EXTY
and REX_EXTZ with REX_W, REX_R, REX_X and REX_B respectively.
include/opcode/
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
* i386.h (REX_MODE64): Renamed to ...
(REX_W): This.
(REX_EXTX): Renamed to ...
(REX_R): This.
(REX_EXTY): Renamed to ...
(REX_X): This.
(REX_EXTZ): Renamed to ...
(REX_B): This.
opcodes/
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (REX_MODE64): Remove definition.
(REX_EXTX): Likewise.
(REX_EXTY): Likewise.
(REX_EXTZ): Likewise.
(USED_REX): Use REX_OPCODE instead of 0x40.
Replace REX_MODE64, REX_EXTX, REX_EXTY and REX_EXTZ with REX_W,
REX_R, REX_X and REX_B respectively.
H.J. Lu [Wed, 21 Mar 2007 20:45:14 +0000 (20:45 +0000)]
gas/
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4218
* config/tc-i386.c (match_template): Properly handle 64bit mode
"xchg %eax, %eax".
gas/testsuite/
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4218
* gas/i386/nops.s: Add testcases for nop r/m.
* gas/i386/x86-64-nops.s: Likewise.
* gas/i386/x86-64-opcode.s: Add testcases for xchg with %ax,
%eax and %rax.
* gas/i386/nops.d: Updated.
* gas/i386/x86-64-nops.d: Likewise.
* gas/i386/x86-64-opcode.d: Likewise.
opcodes/
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4218
* i386-dis.c (PREGRP38): New.
(dis386): Use PREGRP38 for 0x90.
(prefix_user_table): Add PREGRP38.
(print_insn): Set uses_REPZ_prefix to 1 for pause.
(NOP_Fixup1): Properly handle REX bits.
(NOP_Fixup2): Likewise.
* i386-opc.c (i386_optab): Allow %eax with xchg in 64bit.
Allow register with nop.
Richard Sandiford [Wed, 21 Mar 2007 20:11:06 +0000 (20:11 +0000)]
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix m4 quoting
of glob. Quote arguments with single quotes too.
* configure: Regenerate.
H.J. Lu [Wed, 21 Mar 2007 19:33:06 +0000 (19:33 +0000)]
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run nops-3.
* gas/i386/nops-3.d: New file.
* gas/i386/nops-3.s: Likewise.
Nick Clifton [Wed, 21 Mar 2007 16:08:14 +0000 (16:08 +0000)]
PR gas/4124
* config/tc-alpha.c (emit_ustX): Fix ustq code generation.
H.J. Lu [Wed, 21 Mar 2007 15:37:21 +0000 (15:37 +0000)]
2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am: Run dep-am.
* Makefile.in: Regenerated.
* config/tc-i386.c: Don't include "opcodes/i386-opc.h".
* config/tc-i386.h: Include "opcodes/i386-opc.h".
(NOP_OPCODE): Removed.
(template): Likewise.
Andreas Schwab [Wed, 21 Mar 2007 10:26:15 +0000 (10:26 +0000)]
* config/tc-i386.h (NOP_OPCODE): Restore.
H.J. Lu [Wed, 21 Mar 2007 04:03:09 +0000 (04:03 +0000)]
2003-03-19 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4208
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
matching LO16 relocation for HI16 relocation.
DJ Delorie [Wed, 21 Mar 2007 02:53:50 +0000 (02:53 +0000)]
* m32c.cpu (f-dsp-40-u20, f-dsp-48-u20, Dsp-40-u20, Dsp-40-u20,
mem20): New.
(src16-16-20-An-relative-*): New.
(dst16-*-20-An-relative-*): New.
(dst16-16-16sa-*): New
(dst16-16-16ar-*): New
(dst32-16-16sa-Unprefixed-*): New
(jsri): Fix operands.
(setzx): Fix encoding.
* m32c-asm.c: Regenerate.
* m32c-desc.c: Regenerate.
* m32c-desc.h: Regenerate.
* m32c-dis.h: Regenerate.
* m32c-ibld.c: Regenerate.
* m32c-opc.c: Regenerate.
* m32c-opc.h: Regenerate.
gdbadmin [Wed, 21 Mar 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 20 Mar 2007 23:00:06 +0000 (23:00 +0000)]
daily update
Paul Brook [Tue, 20 Mar 2007 20:19:07 +0000 (20:19 +0000)]
2007-03-20 Paul Brook <paul@codesourcery.com>
ld/
* emultempl/armelf.em (pic_veneer): New variable.
(PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
(PARSE_AND_LIST_ARGS_CASES): Ditto.
(PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
(PARSE_AND_LIST_OPTIONS): Ditto.
* ld.texinfo: Document --pic-veneer.
ld/testsuite/
* ld-arm/arm-elf.exp (ld-arm/arm-elf.exp): Add arm-pic-veneer.
* ld-arm/arm-pic-veneer.d: New test.
* ld-arm/arm-pic-veneer.s: New test.
bfd/
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
* bfd-in2.h: Regenerate.
* elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
(record_arm_to_thumb_glue): Use globals->pic_veneer.
(elf32_arm_create_thumb_stub): Ditto.
(bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.