Hans-Peter Nilsson [Wed, 11 Mar 2009 03:22:44 +0000 (03:22 +0000)]
* config/tc-cris.c (cris_create_short_jump): Remove prototype.
Rename, changing all callers, to...
(md_create_short_jump): Adjust head comment. Assert
word-sized-branch distance for v32. Bail out calling as_fatal for
compatibility mode here.
(md_create_long_jump): ...not here.
* config/tc-cris.h (md_create_short_jump): Do not define.
Hans-Peter Nilsson [Wed, 11 Mar 2009 03:17:32 +0000 (03:17 +0000)]
* gas/cris/rd-bkw5.d, gas/cris/rd-bkw5.s, gas/cris/rd-bkw5b.d,
gas/cris/rd-bkw5bpic.d, gas/cris/rd-bkw5bv32.d,
gas/cris/rd-bkw5bv32pic.d, gas/cris/rd-bkw5pic.d,
gas/cris/rd-bkw5v32.d, gas/cris/rd-bkw5v32pic.d: New tests.
Ulrich Weigand [Wed, 11 Mar 2009 00:18:02 +0000 (00:18 +0000)]
* elf32-spu.c (find_function_stack_adjust): Handle sf instruction
used to update stack pointer.
gdbadmin [Wed, 11 Mar 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 11 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
Hans-Peter Nilsson [Tue, 10 Mar 2009 14:40:36 +0000 (14:40 +0000)]
* gas/cris/rd-bkw4.d, gas/cris/rd-bkw4v32.d, gas/cris/rd-bkw4.s:
New test.
Hans-Peter Nilsson [Tue, 10 Mar 2009 14:38:03 +0000 (14:38 +0000)]
* write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
the jump table for multiple overflowing entries with the same
target, handle base symbols being different.
(relax_segment) <case rs_broken_word, second loop>: Whenever a
single entry overflows, arrange to redirect all entries with the
same target.
Nick Clifton [Tue, 10 Mar 2009 09:21:01 +0000 (09:21 +0000)]
Add Spanish translation to gold.
Update Indonesian translation for opcodes.
Hui Zhu [Tue, 10 Mar 2009 08:53:53 +0000 (08:53 +0000)]
* disasm.c (gdb_disassembly): Remove unused argument
"line_num".
* disasm.h (gdb_disassembly): Ditto.
* cli/cli-cmds.c (print_disassembly): Ditto.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
Alan Modra [Tue, 10 Mar 2009 06:53:46 +0000 (06:53 +0000)]
include/opcode/
* ppc.h (ppc_parse_cpu): Declare.
opcodes/
* ppc-dis.c: Include "opintl.h".
(struct ppc_mopt, ppc_opts): New.
(ppc_parse_cpu): New function.
(powerpc_init_dialect): Use it.
(print_ppc_disassembler_options): Dump options from ppc_opts.
Internationalize message.
gas/
* config/tc-ppc.c (parse_cpu): Delete.
(md_parse_option, ppc_machine): Use ppc_parse_cpu.
gas/testsuite/
* gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec.
* gas/ppc/common.d: Adjust for -Mcom not including -Mppc.
H.J. Lu [Tue, 10 Mar 2009 00:48:10 +0000 (00:48 +0000)]
binutils/
2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/9933
* objcopy.c (filter_symbols): Properly handle common symbols
in relocatable file.
binutils/testsuite/
2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/9933
* binutils-all/copy-4.d: New.
* binutils-all/objcopy.exp: Run copy-4.
gdbadmin [Tue, 10 Mar 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 10 Mar 2009 00:00:08 +0000 (00:00 +0000)]
daily update
Paul Pluzhnikov [Mon, 9 Mar 2009 22:38:37 +0000 (22:38 +0000)]
2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib.c (solib_contains_address_p): New function.
(solib_name_from_address): Use it.
* printcmd.c (display_uses_solib_p): Use it.
* solib.h (solib_contains_address_p): Declare it.
Jan Kratochvil [Mon, 9 Mar 2009 22:35:44 +0000 (22:35 +0000)]
* varobj.c (free_variable): Call value_free.
Jan Kratochvil [Mon, 9 Mar 2009 18:53:48 +0000 (18:53 +0000)]
PR gdb/9873:
* dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
Move the variable `macinfo_type' out of the loop. Create a new
processing pass before the current one to pre-create `current_file'.
New complaint on misplaced zero/non-zero definitions/includes.
Skip first DW_MACINFO_start_file with `at_commandline' set.
H.J. Lu [Mon, 9 Mar 2009 18:33:42 +0000 (18:33 +0000)]
2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
PR gas/9915
* config/tc-i386.h (LOCAL_LABELS_DOLLAR): New. Defined as 0.
(LOCAL_LABELS_FB): Undefine befoe define.
Vladimir Prus [Mon, 9 Mar 2009 13:19:19 +0000 (13:19 +0000)]
* solib.c (reload_shared_libraries): Give
inferior a chance to reset solib breakpoint.
Reinit frame cache.
Christopher Faylor [Mon, 9 Mar 2009 05:35:56 +0000 (05:35 +0000)]
Minor formatting change
gdbadmin [Mon, 9 Mar 2009 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 9 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
Christopher Faylor [Sun, 8 Mar 2009 21:01:52 +0000 (21:01 +0000)]
* windows-nat.c (dr): Redefine to use largest possible integer which holds a
pointer.
(cygwin_set_dr): Avoid coercion.
* windows-nat.c (windows_create_inferior): implement --tty handling on
non-cygwin.
Alan Modra [Sun, 8 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 8 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Dave Anglin [Sat, 7 Mar 2009 23:42:28 +0000 (23:42 +0000)]
* ld-elf/empty2.d: Remove xfail for hppa*-*-*.
* ld-elf/merge.d: Change xfail for hppa to hppa*64*-*-*.
Dave Anglin [Sat, 7 Mar 2009 23:38:13 +0000 (23:38 +0000)]
PR binutils/9921
* som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
for unknown symbols in absolute section.
Alan Modra [Sat, 7 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 7 Mar 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Cary Coutant [Fri, 6 Mar 2009 23:12:37 +0000 (23:12 +0000)]
* options.cc (parse_short_option): Keep dash_z from registering itself.
Paul Pluzhnikov [Fri, 6 Mar 2009 18:51:05 +0000 (18:51 +0000)]
2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
Rename solib_address to solib_name_from_address.
* breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
(disable_breakpoints_in_unloaded_shlib): Update.
* printcmd.c (display_uses_solib_p): Likewise.
* stack.c (print_frame): Likewise.
* solib.c: Rename.
* solib.h: Rename.
Nick Clifton [Fri, 6 Mar 2009 12:14:40 +0000 (12:14 +0000)]
Updated Spanish translations.
Christophe Lyon [Fri, 6 Mar 2009 08:57:58 +0000 (08:57 +0000)]
09-03-05 Christophe Lyon <christophe.lyon@st.com>
bfd/
* elf32-arm.c (group_sections): Take next section size into
account before accepting to group it.
testsuite/
* ld-arm/arm-elf.exp: Add new farcall-group-limit test.
* ld-arm/farcall-group-limit.d: New file.
* ld-arm/farcall-group3.s: New file.
* ld-arm/farcall-group4.s: New file.
gdbadmin [Fri, 6 Mar 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 6 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
Paul Pluzhnikov [Thu, 5 Mar 2009 23:45:14 +0000 (23:45 +0000)]
2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
* printcmd.c (do_one_display): Reparse exp_string.
(display_uses_solib_p): New function.
(clear_dangling_display_expressions): New function.
(_initialize_printcmd): Add observer.
* solib.c (no_shared_libraries): Swap order of calls to
clear_solib and objfile_purge_solibs.
Joel Brobecker [Thu, 5 Mar 2009 23:42:32 +0000 (23:42 +0000)]
Implement the target-specific part of Ada tasking support
on Tru64.
* dec-thread.c (dec_thread_get_ada_task_ptid): New function.
(init_dec_thread_ops): Set the to_get_ada_task_ptid method.
Joel Brobecker [Thu, 5 Mar 2009 23:37:20 +0000 (23:37 +0000)]
Get rid of the global "base_target" and use "find_target_beneath"
to find the underlying target.
* dec-thread.c (base_target): Delete.
(enable_dec_thread): Remove assignement to base_target.
(dec_thread_detach, dec_thread_wait, dec_thread_wait)
(dec_thread_fetch_registers, dec_thread_store_registers)
(dec_thread_mourn_inferior, dec_thread_pid_to_str):
Update the function profile if necessary.
Use find_target_beneath to call the same method but from
the underlying target, removing the need for "base_target".
* dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
Fix a copy/paste error in a few debug traces...
* solib-osf.c (init_so): Use a simpler method for computing
the size of lm_info structure. This also gets rid of warning
emitted by the compiler.
Pedro Alves [Thu, 5 Mar 2009 23:11:11 +0000 (23:11 +0000)]
* gdb.texinfo (Background Execution): Better describe the set
target-async command.
(Maintenance Commands): Delete description of the `maint set/show
linux-async' and `maint set/show remote-async' commands.
Pedro Alves [Thu, 5 Mar 2009 22:37:11 +0000 (22:37 +0000)]
gdb/
2009-03-05 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (check_duplicates_for): Skip permanent breakpoints
duplicates of permanent breakpoints.
gdb/testsuite/
2009-03-05 Pedro Alves <pedro@codesourcery.com>
* gdb.arch/i386-permbkpt.S, gdb.arch/i386-permbkpt.exp: New.
Christophe Lyon [Thu, 5 Mar 2009 17:28:21 +0000 (17:28 +0000)]
2009-03-05 Christophe Lyon <christophe.lyon@st.com>
bfd/
* elf32-arm.c (arm_type_of_stub): Handle long branches targetting
PLT entries.
(elf32_arm_final_link_relocate): Likewise.
testsuite/
* ld-arm/arm-elf.exp: Add 2 more tests to check long branch stubs
in PLT context.
* ld-arm/farcall-mixed-app-v5.d: New file.
* ld-arm/farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-app.r: Likewise.
* ld-arm/farcall-mixed-app.s: Likewise.
* ld-arm/farcall-mixed-app.sym: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
* ld-arm/farcall-mixed-lib.r: Likewise.
Nick Clifton [Thu, 5 Mar 2009 16:31:50 +0000 (16:31 +0000)]
* objdump.c (disassemble_section): If the computed next offset is
not beyond the current offset then just continue to the end.
Joseph Myers [Thu, 5 Mar 2009 15:27:59 +0000 (15:27 +0000)]
gas:
* read.c (s_fill, s_space, s_float_space, float_cons, stringer,
s_incbin): Call md_cons_align (1).
gas/testsuite:
* gas/arm/mapmisc.d, gas/arm/mapmisc.dat, gas/arm/mapmisc.s: New.
Alan Modra [Thu, 5 Mar 2009 01:04:56 +0000 (01:04 +0000)]
PR 9923
* peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
gdbadmin [Thu, 5 Mar 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 5 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
Pedro Alves [Wed, 4 Mar 2009 22:52:00 +0000 (22:52 +0000)]
Wrap long line.
Pedro Alves [Wed, 4 Mar 2009 22:50:59 +0000 (22:50 +0000)]
* inferior.h (notice_new_inferior): Declare.
* infcmd.c (notice_new_inferior): New.
* remote.c (remote_add_inferior, remote_add_thread): New.
(notice_new_inferiors): Rename to...
(remote_notice_new_inferior): ... this. Add RUNNING argument.
Use remote_add_thread instead of add_thread, passing it the
RUNNING argument. Add an inferior with remote_add_inferior. If
we just learned about an inferior, call notice_new_inferior.
(record_currthread): Adjust.
(remote_threads_info): Adjust to use remote_notice_new_inferior.
(remote_start_remote, extended_remote_attach_1): Use remote_add_inferior.
(process_stop_reply): Adjust. Call remote_notice_new_inferior
after handling expedited registers and watchpoint state.
(extended_remote_create_inferior_1): Use remote_add_inferior.
Aleksandar Ristovski [Wed, 4 Mar 2009 17:58:34 +0000 (17:58 +0000)]
* infcmd.c (registers_info): Remove register number case.
Nick Clifton [Wed, 4 Mar 2009 16:15:43 +0000 (16:15 +0000)]
* config/tc-alpha.c (alpha_prologue_label): Only define for ELF
based targets.
(s_alpha_comm): Only define "temp" and "log_align" local variables
for EVAX targets.
Tristan Gingold [Wed, 4 Mar 2009 15:18:41 +0000 (15:18 +0000)]
2009-03-04 Tristan Gingold <gingold@adacore.com>
* MAINTAINERS: Add myself as VMS maintainer.
Ian Lance Taylor [Wed, 4 Mar 2009 06:46:27 +0000 (06:46 +0000)]
PR 9918
* target-reloc.h (relocate_section): Pass output_section to
relocate.
* i386.cc (Target_i386::should_apply_static_reloc): Add
output_section parameter. Change all callers.
(Target_i386::Relocate::relocate): Add output_section parameter.
* x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
* sparc.cc (Target_sparc::Relocate::relocate): Likewise.
* powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
* testsuite/two_file_shared.sh: New script.
* testsuite/Makefile.am (check_SCRIPTS): Add two_file_shared.sh.
(check_DATA): Add two_file_shared.dbg.
(two_file_shared.dbg): New target.
* testsuite/Makefile.in: Rebuild.
Alan Modra [Wed, 4 Mar 2009 05:50:50 +0000 (05:50 +0000)]
include/elf/
* ppc.h (R_PPC_TLSGD, R_PPC_TLSLD): Add new relocs.
* ppc64.h (R_PPC64_TLSGD, R_PPC64_TLSLD): Add new relocs.
bfd/
* reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
* section.c (struct bfd_section): Add has_tls_get_addr_call.
(BFD_FAKE_SECTION): Init new flag.
* ecoff.c (bfd_debug_section): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
(ppc_elf_reloc_type_lookup): Handle new relocs.
(ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.
(ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
(ppc64_elf_reloc_type_lookup): Handle new relocs.
(ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls. Set toc_ref for new relocs as
appropriate.
(ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
gas/
* config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
have non-zero addend.
(md_assemble): Parse args of __tls_get_addr calls.
(md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
ld/testsuite/
* ld-powerpc/tlsmark.s, * ld-powerpc/tlsmark.d: New test.
* ld-powerpc/tlsmark32.s, * ld-powerpc/tlsmark32.d: New test.
* ld-powerpc/powerpc.exp: Run them.
Alan Modra [Wed, 4 Mar 2009 02:10:34 +0000 (02:10 +0000)]
bfd/
PR 6768
* configure.in: Test for ld --as-needed support. Link shared
libbfd against libm.
* configure: Regenerate.
opcodes/
PR 6768
* configure.in: Test for ld --as-needed support. Link shared
libopcodes against libm.
* configure: Regenerate.
Alan Modra [Wed, 4 Mar 2009 01:16:15 +0000 (01:16 +0000)]
missing from make dep-am commit
Peter Bergner [Wed, 4 Mar 2009 01:00:53 +0000 (01:00 +0000)]
opcodes/
* ppc-opc.c (powerpc_opcodes): Reorder the opcode table so that
instructions from newer processors are listed before older ones.
gdbadmin [Wed, 4 Mar 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 4 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update
Dave Anglin [Tue, 3 Mar 2009 23:27:13 +0000 (23:27 +0000)]
* config/hppa.sed: Fix spelling.
Dave Anglin [Tue, 3 Mar 2009 23:21:52 +0000 (23:21 +0000)]
binutils/3807
* config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
local scope for ELF targets.
Alan Modra [Tue, 3 Mar 2009 23:15:04 +0000 (23:15 +0000)]
* config/tc-ppc.c (md_assemble): APUinfo only for e500.
Dave Korn [Tue, 3 Mar 2009 18:22:11 +0000 (18:22 +0000)]
* emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
(gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
of all input BFDs, looking for debug info. Enable long section names
if any found.
* emultempl/pe.em (debug_section_p): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* NEWS: Retrospectively adjust news announcement.
* ld.texinfo: Update documentation to mention new behaviour.
Pedro Alves [Tue, 3 Mar 2009 13:35:24 +0000 (13:35 +0000)]
* top.c (quit_target): Check for target_has_execution before
killing or detaching from inferiors.
Tristan Gingold [Tue, 3 Mar 2009 10:04:58 +0000 (10:04 +0000)]
2009-03-03 Tristan Gingold <gingold@adacore.com>
Eric Botcazou <ebotcazou@adacore.com>
Douglas B Rupp <rupp@gnat.com>
* doc/as.texinfo (Overview): Mention -replace/-noreplace options
for Alpha.
* doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
* config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
(OBJ_SYMFIELD_TYPE): Remove.
(tc_canonicalize_symbol_name): Define to evax_shorten_name.
(TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
(tc_frob_file_before_fix): Do not defined on evax.
* config/tc-alpha.c: Always includes dwarf2dbg.h.
Include vms.h if OBJ_EVAX.
(struct alpha_fixup): Add xtrasym and procsym (evax only).
(enum alpha_macro_arg): Remove trailing comma.
(md_longopts): Add replace and noreplace arguments (evax only).
(alpha_evax_proc_hash): New variable.
(alpha_link_section): Make it global.
(alpha_ctors_section, alpha_dtors_section): Removed.
(alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
(alpha_lit8_section): Ifndef'ed on evax.
(alpha_lit8_symbol): Ditto.
(alpha_prologue_label): New variable.
(alpha_linkage_symbol): New variable (evax only).
(alpha_flag_replace): Ditto.
(struct alpha_evax_procs): Add handler and handler_data field.
(alpha_evax_proc): Now of type pointer.
(alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
(struct alpha_reloc_tag): Add sym and psym fields (evax only).
(get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
(alpha_adjust_relocs): Ifndef'ed on evax.
(load_expression): Add opname argument.
Implement LDA/BSR optimization for evax.
(emit_lda): Adjust for new prototype of load_expression.
(emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
(emit_loadstore): Likewise.
(emit_ldXu): Likewise.
(emit_stX): Likewise.
(emit_jsrjmp): Likewise. Implement LDA/BSR optimization for evax.
(emit_ldgp): Avoid warning in evax case.
(add_to_link_pool): Make it static. Return symbolic expression rather
than number expression for the offset.
(s_alpha_text): Create .text symbol for evax if not already created.
(s_alpha_comm): Do not create specific section for common symbol.
Fill common area with zeros for evax.
(s_alpha_prologue): Create alpha_prologue_label.
(s_alpha_section_name): New function (evax).
(s_alpha_section_word): Likewise.
(section_name): New static variabke moved out from ...
(s_alpha_section): ... here. Create new sections on demand.
(s_alpha_literals): New function (evax).
(s_alpha_ent): Create alpha_evax_proc instance and insert it in the
alpha_evax_proc_hash table.
(s_alpha_handler): New function (evax).
(s_alpha_frame): Adjust for new type of alpha_evax_proc.
(s_alpha_prologue): New function (evax).
(s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
handling of procedures with hash table.
Add support for condition handlers.
(s_alpha_linkage): Create linkage_fixup instance and chain it.
(s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
(s_alpha_mask): Likewise.
(s_alpha_fmask): Likewise.
(s_alpha_end): Clear alpha_evax_proc.
(s_alpha_align): Increase max_alignment to 16.
(alpha_print_token): Call print_expr_1 instead of print_expr.
(md_pseudo_table): Add "section", "literals", "handler" and
"handler_data" (evax). Do not ignore "prologue" on evax.
Fix indentation.
(md_begin): Create hash table for alpha_evax_proc_hash.
(md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
(md_show_usage): Mention -replace/-noreplace for evax.
(md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
(alpha_force_relocation): Likewise.
(alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
(tc_gen_reloc): Likewise. Add BFD_RELOC_ALPHA_LINKAGE for evax.
(emit_insn): New cases for evax specific relocs.
(assemble_insn): Fix indentation.
Take care of -MDISP in operand table.
* config/obj-evax.h (struct alpha_linkage_fixups): New struct.
(OBJ_SYMFIELD_TYPE): New macro.
(obj_symbol_new_hook): Define.
(obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
(obj_frob_file_before_fix): Ditto.
(PDSC_S_M_HANDLER_VALID): New macro.
(PDSC_S_M_HANDLER_DATA_VALID): Ditto.
(TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
Add prototypes for functions declared in obj-evax.c
* config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
(s_evax_weak): Convert to ansi-C.
(evax_symbol_new_hook): New function.
(evax_frob_symbol): Ditto.
(evax_frob_file_before_adjust): Ditto.
(evax_frob_file_before_fix): Ditto.
(evax_shorten_name): Ditto.
(crc32): Ditto.
(encode_32): Ditto.
(encode_16): Ditto.
(decode_16): Ditto.
(shorten_identifier): Ditto.
(is_truncated_identifier): Ditto.
* dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
* as.c (close_output_file): Remove #ifndef OBJ_VMS.
(main): Ditto.
Nick Clifton [Tue, 3 Mar 2009 08:30:33 +0000 (08:30 +0000)]
Update formatting.
Alan Modra [Tue, 3 Mar 2009 02:41:14 +0000 (02:41 +0000)]
make dep-am and regen
opcodes/
* Makefile.am (HFILES): Move lm32-desc.h and lm32-opc.h from..
(CFILES): ..here.
Joel Brobecker [Tue, 3 Mar 2009 02:10:08 +0000 (02:10 +0000)]
Remove some unused routines.
* ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
Delete.
* ada-lang.c (ada_task_list_iterator_ftype)
(iterate_over_live_ada_tasks): Delete.
* ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
Delete.
Alan Modra [Tue, 3 Mar 2009 01:27:15 +0000 (01:27 +0000)]
* objdump.c (disassemble_section): Mask address before sign extending.
Alan Modra [Tue, 3 Mar 2009 00:00:07 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 3 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Dave Anglin [Mon, 2 Mar 2009 23:33:02 +0000 (23:33 +0000)]
* binutils-all/localize-hidden-1.s: Change .equ to .set.
* binutils-all/localize-hidden-2.s: Likewise.
Doug Evans [Mon, 2 Mar 2009 22:39:44 +0000 (22:39 +0000)]
Clean up last entry.
Nick Clifton [Mon, 2 Mar 2009 17:27:36 +0000 (17:27 +0000)]
* ldgram.y: Add support for REGION_ALIAS operator.
* ldlang.c: Likewise.
* ldlang.h: Likewise.
* ldlex.l: Likewise.
* NEWS: Mention the new feature.
* ld.texinfo: Document the new feature.
* ld-scripts/regions-alias-1.t: New file.
* ld-scripts/regions-alias-2.t: New file.
* ld-scripts/regions-alias-3.t: New file.
* ld-scripts/regions-alias-4.t: New file.
* ld-scripts/script.exp: Run region alias tests.
Nick Clifton [Mon, 2 Mar 2009 16:18:54 +0000 (16:18 +0000)]
* ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.
(parse_ieee_bb): Set the filename if it has not already been
discovered.
Nick Clifton [Mon, 2 Mar 2009 16:06:50 +0000 (16:06 +0000)]
* readelf.c (adjust_relative_path): New function.
(struct archive_info): New type.
(setup_archive): New function.
(release_archive): New function.
(setup_nested_archive): New function.
(get_archive_member_name): New function.
(get_archive_member_name_at): New function.
(make_qualified_name): New function.
(process_archive): Factor out code for reading archive index and
long filename table to setup_archive. Add support for thin archives.
Nick Clifton [Mon, 2 Mar 2009 14:47:38 +0000 (14:47 +0000)]
PR 9874
* config/tc-ia64.c (fix_insn): Fix warning reported by
-Wformat-security.
Nick Clifton [Mon, 2 Mar 2009 14:42:47 +0000 (14:42 +0000)]
* po/sk.po: Updated Slovak translation.
Nick Clifton [Mon, 2 Mar 2009 10:33:08 +0000 (10:33 +0000)]
Add support for Score7 architecture.
Doug Evans [Mon, 2 Mar 2009 06:33:24 +0000 (06:33 +0000)]
* symtab.c: Remove trailing whitespace throughout the file.
(expand_line_sal): Fix some typos and whitespace.
Ian Lance Taylor [Mon, 2 Mar 2009 02:45:29 +0000 (02:45 +0000)]
elfcpp:/
* elfcpp_swap.h: #include "config.h". Only #include <byteswap.h>
if HAVE_BYTESWAP_H is defined; if not, provide definitions for
bswap_{16,32,64}. For gcc 4.3 and later, use the builtin bswap
functions. Check WORDS_BIGENDIAN rather than __BYTE_ORDER.
gold:/
* configure.ac: Check for byteswap.h.
* configure: Rebuild.
* config.in: Rebuild.
Doug Evans [Mon, 2 Mar 2009 01:27:35 +0000 (01:27 +0000)]
* Makefile.in (clean): rm -f $(DEPDIR)/*.
Doug Evans [Mon, 2 Mar 2009 00:45:13 +0000 (00:45 +0000)]
* Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
(init.c): signals/ -> common/.
(signals.o): Update.
* target.h (target_signal_to_string,target_signal_to_string)
(target_signal_from_name,target_signal_to_host_p)
(target_signal_from_host,target_signal_to_host): Move to ...
* common/gdb_signals.h: ... here. New file.
* common/signals.c: Moved here from signals/signals.c.
#include gdb_signals.h, remove #include of target.h in gdb case.
(target_signal_from_command,default_target_signal_to_host)
(default_target_signal_from_host): Move inside #ifndef GDBSERVER.
* gdbserver/Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
(server_h): Add gdb_signals.h.
(signals.o): Update.
* server.h (target_signal_from_host,target_signal_to_host_p)
(target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
Mark Mitchell [Mon, 2 Mar 2009 00:29:23 +0000 (00:29 +0000)]
* config/tc-arm.c (md_assemble): Allow barrier instructions on
ARMv6-M cores.
* gas/arm/archv6m.s: Add dmb, dsb, and isb.
* gas/arm/archv6m.d: Likewise.
Alan Modra [Mon, 2 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 2 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Doug Evans [Sun, 1 Mar 2009 23:18:36 +0000 (23:18 +0000)]
Include thread ID in target_wait debugging output.
* infrun.c (print_target_wait_results): New function.
(wait_for_inferior,fetch_inferior_event): Call it.
Ian Lance Taylor [Sun, 1 Mar 2009 22:22:02 +0000 (22:22 +0000)]
* layout.cc (Layout::find_or_add_kept_section): New function.
(Layout::add_comdat): Removed.
* layout.h (struct Kept_section): Move out of class Layout.
Remove trailing underscores from field names. Add group_sections
field. Rename group_ field to is_group. Change all uses.
(class Layout): Declare find_or_add_kept_section, not add_comdat.
* object.cc (Sized_relobj::Sized_relobj): Don't initialize
comdat_groups_ field.
(Sized_relobj::include_section_group): Use
find_or_add_kept_section and Kept_section::group_sections.
(Sized_relobj::include_linkonce_section): Likewise.
* object.cc (class Sized_relobj): Don't define Comdat_group or
Comdat_group_table. Remove find_comdat_group and
add_comdat_group. Remove comdat_groups_ field.
* plugin.cc (include_comdat_group): Use
Layout::find_or_add_kept_section.
Dave Anglin [Sun, 1 Mar 2009 22:10:36 +0000 (22:10 +0000)]
* configure.tgt: Only use elf64hppa target emulation for hpux.
* emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
(SCRIPT_NAME): Use new script elf64hppa.
(SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
TEXT_DYNAMIC): Define.
* emulparams/hppa64linux.sh: Adjust comments.
* scripttempl/elf64hppa.sc: New file.
Ralf Wildenhues [Sun, 1 Mar 2009 18:57:19 +0000 (18:57 +0000)]
Backport from git Libtool:
2009-01-19 Robert Millan <rmh@aybabtu.com>
Support GNU/kOpenSolaris.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
GNU/kOpenSolaris.
binutils/
* configure: Regenerate.
opcodes/
* configure: Regenerate.
bfd/
* configure: Regenerate.
gas/
* configure: Regenerate.
gprof/
* configure: Regenerate.
ld/
* configure: Regenerate.
Dave Anglin [Sun, 1 Mar 2009 18:15:53 +0000 (18:15 +0000)]
* elf32-hppa.c (hppa32_elf_local_refcounts): New function.
(elf32_hppa_check_relocs): Use it.
Dave Anglin [Sun, 1 Mar 2009 17:08:54 +0000 (17:08 +0000)]
* elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
elf64-hppa.c.
(elf_hppa_unmark_useless_dynamic_symbols): Likewise.
(elf_hppa_remark_useless_dynamic_symbols): Likewise.
(elf_hppa_is_dynamic_loader_symbol): Likewise.
(elf_hppa_record_segment_addrs): Likewise.
(elf_hppa_final_link): Likewise.
(elf_hppa_relocate_insn): Likewise.
(elf_hppa_final_link_relocate): Likewise.
(elf64_hppa_relocate_section): Likewise.
* elf64-hppa.c: Insert above.
Dave Anglin [Sun, 1 Mar 2009 02:10:49 +0000 (02:10 +0000)]
* elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
(elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
(elf_hppa_relocate_section): Likewise.
* elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
from struct elf_link_hash_entry. Add count field.
(struct elf64_hppa_dyn_hash_table): Delete.
(struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
(elf64_hppa_hash_table): Rename to hppa_link_hash_table.
(hppa_elf_hash_entry, eh_name): Define.
(elf64_hppa_new_dyn_hash_entry): Delete.
(elf64_hppa_dyn_hash_lookup): Delete.
(elf64_hppa_dyn_hash_traverse): Delete.
(get_dyn_name): Delete.
(elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
of struct elf64_hppa_dyn_hash_entry *.
(elf64_hppa_finalize_dlt, llocate_global_data_dlt,
allocate_global_data_plt, allocate_global_data_stub,
allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
Likewise.
(hppa64_link_hash_newfunc): New.
(elf64_hppa_hash_table_create): Rework.
(count_dyn_reloc): Likewise.
(hppa64_elf_local_refcounts): New.
(elf64_hppa_check_relocs): Rework using standard technique for recording
local DLT, PLT and OPD reference counts.
(elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
elf_link_hash_entry *.
(elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
allocate_global_data_plt, allocate_global_data_stub,
allocate_global_data_opd, allocate_dynrel_entries,
elf64_hppa_adjust_dynamic_symbol,
elf64_hppa_mark_milli_and_exported_functions): Likewise.
(elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
Use hppa_link_hash_table. Rework.
(elf64_hppa_link_output_symbol_hook): Rework.
(elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
elf64_hppa_finish_dynamic_sections): Likewise.
Alan Modra [Sun, 1 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 1 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Ian Lance Taylor [Sat, 28 Feb 2009 18:08:30 +0000 (18:08 +0000)]
* README: --gc-sections and map files are now supported. Document
some build requirements.
Ian Lance Taylor [Sat, 28 Feb 2009 17:53:16 +0000 (17:53 +0000)]
PR 6992
* symtab.cc (Symbol_table::sized_write_section_symbol): In a
relocatable link set the value of the section symbol to zero.
* object.cc (Sized_relobj::do_finalize_local_symbols): In a
relocatable link don't include the section address in the local
symbol value.
Ian Lance Taylor [Sat, 28 Feb 2009 04:39:57 +0000 (04:39 +0000)]
PR 6811
* options.h (class Search_directory): Add is_system_directory.
(class General_options): Declare is_in_system_directory.
* options.cc (get_relative_sysroot): Make static.
(get_default_sysroot): Make static.
(General_optoins::is_in_system_directory): New function.
* fileread.cc (Input_file::is_in_system_directory): New function.
* fileread.h (class Input_file): Declare is_in_system_directory.
* object.h (class Object): Add is_in_system_directory.
(class Input_objects): Remove system_library_directory_ field.
* object.cc (Input_objects::add_object): Don't set
system_library_directory_.
(input_objects::found_in_system_library_directory): Remove.
* symtab.cc (Symbol_table::write_globals): Remove input_objects
parameter. Change all callers.
(Symbol_table::sized_write_globals): Likewise.
(Symbol_table::warn_about_undefined_dynobj_symbol): Likewise.
Call Object::is_in_system_directory.
* symtab.h (class Symbol_table): Update declarations.
Ian Lance Taylor [Sat, 28 Feb 2009 03:05:08 +0000 (03:05 +0000)]
PR 5990
* descriptors.h (Open_descriptor): Add is_on_stack field.
* descriptors.cc (Descriptors::open): If the descriptor is on the
top of the stack, remove it. Initialize is_on_stack field.
(Descriptors::release): Only add pod to stack if it is not on the
stack already.
(Descriptors::close_some_descriptor): Clear stack_next and
is_on_stack fields.
Ian Lance Taylor [Sat, 28 Feb 2009 00:12:26 +0000 (00:12 +0000)]
PR 7091
* output.cc (Output_section::find_starting_output_address): Rename
from starting_output_address; add PADDR parameter; change return
type.
* output.h (class Output_section): Declare
find_starting_output_address instead of starting_output_address.
* object.cc (Sized_relobj::do_finalize_local_symbols): Handle a
section symbol for which we can't find a merge section.
gdbadmin [Sat, 28 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 28 Feb 2009 00:00:05 +0000 (00:00 +0000)]
daily update