deliverable/binutils-gdb.git
15 years ago2008-08-18 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 18 Aug 2008 22:35:17 +0000 (22:35 +0000)] 
2008-08-18  Pedro Alves  <pedro@codesourcery.com>

gdb/doc/
* observer.texi (thread_ptid_changed): New.

gdb/
* gdbthread.h (thread_change_ptid): Declare.
* infrun.c (infrun_thread_ptid_changed): New.
(_initialize_infrun): Attach infrun_thread_ptid_changed to the
thread_ptid_changed observer.
* regcache.c (regcache_thread_ptid_changed): New.
(_initialize_regcache): Attach regcache_thread_ptid_changed to the
thread_ptid_changed observer.
* thread.c (thread_change_ptid): New.

15 years ago * symfile.c (reread_symbols): Update.
Tom Tromey [Mon, 18 Aug 2008 19:44:49 +0000 (19:44 +0000)] 
* symfile.c (reread_symbols): Update.
* solib-sunos.c (allocate_rt_common_objfile): Update.
* objfiles.c (allocate_objfile): Update.
* objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
Remove.

15 years ago * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
Tom Tromey [Mon, 18 Aug 2008 19:41:28 +0000 (19:41 +0000)] 
* gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
obstack.

15 years ago2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 18 Aug 2008 18:21:15 +0000 (18:21 +0000)] 
2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (i386_align_code): Fix a comment typo.

15 years agobfd/
Richard Sandiford [Mon, 18 Aug 2008 18:14:05 +0000 (18:14 +0000)] 
bfd/
* elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Copy MIPS16
stub information.

ld/testsuite/
* ld-mips-elf/mips16-pic-4a.s, ld-mips-elf/mips16-pic-4b.s,
ld-mips-elf/mips16-pic-4.ver, ld-mips-elf/mips16-pic-4a.dd,
ld-mips-elf/mips16-pic-4a.nd, ld-mips-elf/mips16-pic-4a.gd,
ld-mips-elf/mips16-pic-4c.s, ld-mips-elf/mips16-pic-4b.dd: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

15 years ago * doc/gdb.texinfo (PowerPC): Mention Extended FPR's for POWER7.
Luis Machado [Mon, 18 Aug 2008 15:46:08 +0000 (15:46 +0000)] 
* doc/gdb.texinfo (PowerPC): Mention Extended FPR's for POWER7.
(PowerPC features): Mention feature set for VSX registers.

* gdbserver/Makefile.in: Add required vsx dependencies.

* gdbserver/linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
Declare init_registers_powerpc_vsx32l.
Declare init_registers_powerpc_vsx64l.
Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
(ppc_arch_setup): Check for VSX in hwcap.
(ppc_fill_vsxregset): New function.
(ppc_store_vsxregset): New function.
Add new VSX entry in regset_info target_regsets.

* gdbserver/configure.srv: Add new VSX dependencies.

15 years ago * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
Daniel Jacobowitz [Mon, 18 Aug 2008 12:32:47 +0000 (12:32 +0000)] 
* rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
lr_register.
(rs6000_in_function_epilogue_p): Check for bctr.
(skip_prologue): Initialize lr_register.  Set lr_reg to a register
number.  Set gpr_mask and used_bl.  Continue scanning while some
expected registers are not saved.  Set lr_register if LR is not
stored.
(rs6000_frame_cache): Handle gpr_mask and lr_register.

* gdb.arch/powerpc-prologue.exp: Correct saved registers.

15 years ago*** empty log message ***
gdbadmin [Mon, 18 Aug 2008 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 18 Aug 2008 00:00:06 +0000 (00:00 +0000)] 
daily update

15 years ago* elf32-arm.c: Tidy up the code.
Nick Clifton [Sun, 17 Aug 2008 20:48:21 +0000 (20:48 +0000)] 
* elf32-arm.c: Tidy up the code.
  (bfd_elf32_arm_allocate_interworking_sections): Move common code
  into...
  (arm_allocate_glue_section_space): ... New function.
  (bfd_elf32_arm_add_glue_sections_to_bfd): Move common code
  into...
  (arm_make_glue_section): ... New function.

15 years ago * ld-elf/sec-to-seg1.s: Shorten test data to align the section to
Nick Clifton [Sun, 17 Aug 2008 20:42:53 +0000 (20:42 +0000)] 
    * ld-elf/sec-to-seg1.s: Shorten test data to align the section to
        a 4-byte boundary.

15 years ago* elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation
Nick Clifton [Sun, 17 Aug 2008 20:39:34 +0000 (20:39 +0000)] 
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation
  where the sym_hashes are not available.

15 years agogdb:
Tom Tromey [Sun, 17 Aug 2008 16:58:17 +0000 (16:58 +0000)] 
gdb:
PR gdb/1535:
* breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
(ep_find_event_name_end): Remove.
(catch_fork_temporary, catch_vfork_temporary,
catch_fork_permanent, catch_vfork_permanent): New constants.
(catch_vfork, catch_fork): Remove.
(catch_fork_command_1): Add 'command' argument.  Remove
'fork_kind' and 'tempflag'.  Handle NULL 'arg'.  Update switch for
all cases.
(catch_exec_command_1): Add 'command' argument; remove
'tempflag'.  Handle NULL 'arg'.
(catch_load_command_1): Likewise.
(catch_unload_command_1): Likewise.
(catch_ada_exception_command): Likewise.
(catch_assert_command): Likewise.
(catch_catch_command): New function.
(catch_throw_command): Likewise.
(catch_command_1): Remove.
(catch_command): Just call error.
(tcatch_command): Likewise.
(catch_cmdlist): New global.
(tcatch_cmdlist): Likewise.
(add_catch_command): New function.
(_initialize_breakpoint): Create "catch" and "tcatch" as prefix
commands.  Create all catch sub-commands.
gdb/testsuite:
* gdb.base/help.exp (help catch): Rewrite.

15 years agobfd/
Alan Modra [Sun, 17 Aug 2008 03:12:50 +0000 (03:12 +0000)] 
bfd/
* bfd.c (struct _bfd): Correct outsymbols comment.
* bfd-in2.h: Regenerate.
* linker.c (bfd_generic_link_read_symbols): Renamed from..
(generic_link_read_symbols): ..this, and made global.

include/
* bfdlink.h (bfd_generic_link_read_symbols): Declare.
ld/
PR 6478
* ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
Don't free symbol pointer array.
(check_refs): Likewise.
* ldmain.c (warning_callback): Likewise.
* ldmisc.c (vfinfo): Likewise.
* pe-dll.c (process_def_file): Likewise.
(pe_walk_relocs_of_symbol, generate_reloc): Likewise.
* emultempl/pe.em (pe_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* emultempl/pep.em (pep_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
passive_position, closed.
* ldlang.c (new_afile): Don't set asymbols and symbol_count.
* ldmain.c (add_archive_element): xcalloc lang_input_statement_type.

15 years agodaily update
Alan Modra [Sun, 17 Aug 2008 00:00:06 +0000 (00:00 +0000)] 
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 17 Aug 2008 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

15 years ago * gdbthread.h: Add comments.
Pedro Alves [Sat, 16 Aug 2008 23:51:14 +0000 (23:51 +0000)] 
* gdbthread.h: Add comments.
* stack.c (get_selected_block): Return 0 on an exited thread.
* top.c (execute_command): Check for is_stopped, not !is_running.
* event-top.c (command_handler): Likewise.

15 years ago * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
Pedro Alves [Sat, 16 Aug 2008 22:26:19 +0000 (22:26 +0000)] 
* mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
(mi_cmd_exec_step, mi_cmd_exec_step_instruction)
(mi_cmd_exec_finish): Remove "return".

15 years ago * target.h (pop_all_targets): Declare.
Pedro Alves [Sat, 16 Aug 2008 22:12:18 +0000 (22:12 +0000)] 
* target.h (pop_all_targets): Declare.
* target.c (pop_all_targets): New.
* top.c (quit_target): Pop all targets instead of just closing the
current.

15 years agogdb/
Thiago Jung Bauermann [Sat, 16 Aug 2008 20:36:30 +0000 (20:36 +0000)] 
gdb/
2008-08-16  Vladimir Prus  <vladimir@codesourcery.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* cli-script.c (read_next_line): Add parse_commands argument.
(recurse_read_control_structure): Adapt to new read_next_line
signature.
(read_command_lines): Add parse_commands argument.
(define_command): Adapt to new read_command_lines signature.
(document_command): Likewise.
* breakpoint.c (commands_command): Likewise.
* defs.h (read_command_lines): Adjust function prototype.

testsuite/
2008-08-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.base/define.exp: Test indented command documentation.
* gdb.python/python.exp: Test indented multi-line command.

15 years ago(pos_atr): Account for the possibility that the argument may be a reference.
Paul N. Hilfinger [Sat, 16 Aug 2008 09:26:25 +0000 (09:26 +0000)] 
(pos_atr): Account for the possibility that the argument may be a reference.

15 years ago(scan_xcoff_symtab): Do not include global symbols
Paul N. Hilfinger [Sat, 16 Aug 2008 08:49:23 +0000 (08:49 +0000)] 
(scan_xcoff_symtab): Do not include global symbols
 ('F' format) for @FIX names generated by the loader, retaining only
 the minimal symbols (and no partial symbol tables) for these names.
 Fixes warning messages about symbols that are found in partial
 symbol tables, but not full symbol tables.

15 years ago * configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
Richard Sandiford [Sat, 16 Aug 2008 06:47:17 +0000 (06:47 +0000)] 
* configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
* configure: Regenerate.

config/
* mt-mips16-compat: New file, taken from mt-mips-elfoabi.
* mt-mips-elfoabi: Include mt-mips16-compat.
* mt-mips-gnu: New file.

15 years ago * infrun.c (fetch_inferior_event): Only call normal_stop if not
Pedro Alves [Sat, 16 Aug 2008 01:04:16 +0000 (01:04 +0000)] 
* infrun.c (fetch_inferior_event): Only call normal_stop if not
stopping quietly.

15 years ago*** empty log message ***
gdbadmin [Sat, 16 Aug 2008 00:00:34 +0000 (00:00 +0000)] 
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 16 Aug 2008 00:00:05 +0000 (00:00 +0000)] 
daily update

15 years ago * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
Luis Machado [Fri, 15 Aug 2008 15:18:34 +0000 (15:18 +0000)] 
* rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
Include "features/rs6000/powerpc-vsx64.c".
(ppc_supply_vsxregset): New function.
(ppc_collect_vsxregset): New function.
(IS_VSX_PSEUDOREG): New macro.
(IS_EFP_PSEUDOREG): New macro.
(vsx_register_p): New function.
(ppc_vsx_support_p): New function.
(rs6000_builtin_type_vec128): New function.
(rs6000_register_name): Hide upper halves of vs0~vs31.  Return
correct names for VSX registers and EFPR registers.
(rs6000_pseudo_register_type): Return correct types for VSX
and EFPR registers.
(rs6000_pseudo_register_reggroup_p): Return correct group for
VSX and EFPR registers.
(ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
(ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
(vsx_pseudo_register_read): New function.
(vsx_pseudo_register_write): New function.
(efpr_pseudo_register_read): New function.
(efpr_pseudo_register_write): New function.
(rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
(rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
(rs6000_gdbarch_init): Declare have_vsx.
Initialize new upper half VSX registers.
Initialize VSX-related and EFPR-related pseudo-registers variables.
Adjust the number of pseudo registers accordingly.

* ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
and SIZEOF_VSRREGS.
(gdb_vsxregset_t): New type.
(have_ptrace_getsetvsxregs): New variable.
(fetch_vsx_register): New function.
(fetch_register): Handle VSX registers.
(fetch_vsx_registers): New function.
(fetch_ppc_registers): Handle VSX registers.
(store_ppc_registers): Handle VSX registers.
(store_vsx_register): New function.
(store_register): Handle VSX registers.
(store_vsx_registers): New function.
(ppc_linux_read_description): Handle VSX-enabled inferiors.
(gdb_vsxregset_t): New type.
(supply_vsxregset): New function.
(fill_vsxregset): New function.

* ppc-tdep.h (vsx_register_p): New prototype.
(vsx_support_p): New prototype.
(ppc_vsr0_regnum): New variable.
(ppc_vsr0_upper_regnum): Likewise.
(ppc_efpr0_regnum): Likewise.
(ppc_builtin_type_vec128): New type.
(ppc_num_vsrs): New constant.
(ppc_num_vshrs): New constant.
(ppc_num_efprs): Likewise.
Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
(ppc_supply_vsxregset): New prototype.
(ppc_collect_vsxregset): New prototype.

* ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
Include "features/rs6000/powerpc-vsx64l.c".
(_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
(ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
(ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
(ppc_linux_regset_from_core_section): Handle VSX core section.
(ppc_linux_core_read_description): Support VSX-enabled core files.

* ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
Declare tdesc_powerpc_vsx64l

* corelow.c (get_core_register_section): Support VSX-enabled
core files.

* features/rs6000/power-vsx.xml: New VSX descriptions.
* features/rs6000/powerpc-vsx32.xml: New file.
* features/rs6000/powerpc-vsx32l.xml: New file.
* features/rs6000/powerpc-vsx64.xml: New file.
* features/rs6000/powerpc-vsx64l.xml: New file.
* features/rs6000/powerpc-vsx32.c: New file (generated).
* features/rs6000/powerpc-vsx32l.c: New file (generated).
* features/rs6000/powerpc-vsx64.c: New file (generated).
* features/rs6000/powerpc-vsx64l.c: New file (generated).
* features/Makefile: Updated with new descriptions.
* regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
* regformats/rs6000/powerpc-vsx64l.dat: New file (generated).

* testsuite/gdb.arch/vsx-regs.c: New source file.
* testsuite/gdb.arch/vsx-regs.exp: New testcase.
* testsuite/lib/gdb.exp (skip_vsx_tests): New function.

15 years ago2008-08-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 15 Aug 2008 12:10:21 +0000 (12:10 +0000)] 
2008-08-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-opc.c (INSTR_RRF_FFRU, MASK_RRF_FFRU): New instruction format.
* s390-opc.txt (lxr, rrdtr, rrxtr): Fix instruction format.

2008-08-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/esa-g5.d: lxr operands are floating point.
* gas/s390/esa-g5.s: Likewise.
* gas/testsuite/gas/s390/zarch-z9-ec.d: rrdtr, rrxtr third
operands is gpr.
* gas/testsuite/gas/s390/zarch-z9-ec.s: Likewise.

15 years ago PR 6526
Alan Modra [Fri, 15 Aug 2008 08:31:52 +0000 (08:31 +0000)] 
PR 6526
* configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.

15 years ago * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
Vladimir Prus [Fri, 15 Aug 2008 08:08:27 +0000 (08:08 +0000)] 
* ia64-linux.nat (_initialize_ia64_linux_nat): Don't
call linux_target twice.

15 years ago2008-08-14 Cary Coutant <ccoutant@google.com>
Cary Coutant [Fri, 15 Aug 2008 04:57:46 +0000 (04:57 +0000)] 
2008-08-14  Cary Coutant  <ccoutant@google.com>

* x86_64.cc (Target_x86_64::Relocate::relocat_tls):
Use addend for DTPOFF32, DTPOFF64, and TPOFF32 relocs.
* testsuite/tls_test.cc (struct int128): 128-bit struct
for testing TLS relocs with non-zero addend.
(v12): New TLS variable.
(t12): New test.
(t_last): Add check for v12.
* testsuite/tls_test.h (t12): New function.
* testsuite/tls_test_main.cc (thread_routine): Call new test.

15 years ago*** empty log message ***
gdbadmin [Fri, 15 Aug 2008 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

15 years agodaily update
Alan Modra [Fri, 15 Aug 2008 00:00:07 +0000 (00:00 +0000)] 
daily update

15 years ago * nto-tdep.c (lm_info): Updated struct lm_info definition from
Aleksandar Ristovski [Thu, 14 Aug 2008 20:55:21 +0000 (20:55 +0000)] 
* nto-tdep.c (lm_info): Updated struct lm_info definition from
solib-svr4.c
(LM_ADDR): Use l_addr if available; if not, use link map and set l_addr.

15 years agogdb:
Tom Tromey [Thu, 14 Aug 2008 18:03:22 +0000 (18:03 +0000)] 
gdb:
* macrocmd.c (macro_define_command): Check for NULL argument.
(macro_undef_command): Likewise.
gdb/testsuite:
* gdb.base/macscp.exp: Add regression test for "macro define" or
"macro undef" with no arguments.

15 years ago * config/tc-tic4x.c (tic4x_operands_parse): Make static.
Alan Modra [Thu, 14 Aug 2008 14:54:40 +0000 (14:54 +0000)] 
* config/tc-tic4x.c (tic4x_operands_parse): Make static.

15 years ago PR 6825
Alan Modra [Thu, 14 Aug 2008 13:56:00 +0000 (13:56 +0000)] 
PR 6825
* ppc-opc.c (powerpc_opcodes): Enable rfci, mfpmr, mtpmr for e300.

15 years ago * coffgen.c (coff_find_nearest_line): Correct cached line index.
Alan Modra [Thu, 14 Aug 2008 02:38:22 +0000 (02:38 +0000)] 
* coffgen.c (coff_find_nearest_line): Correct cached line index.

15 years ago * gdb.texinfo (Ada Mode Intro): Improve the documentation regarding
Joel Brobecker [Thu, 14 Aug 2008 02:34:08 +0000 (02:34 +0000)] 
    * gdb.texinfo (Ada Mode Intro): Improve the documentation regarding
        the direct visibility of all names in user-written packages.

15 years ago * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
Pedro Alves [Thu, 14 Aug 2008 01:39:24 +0000 (01:39 +0000)] 
* infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.

15 years ago*** empty log message ***
gdbadmin [Thu, 14 Aug 2008 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 14 Aug 2008 00:00:07 +0000 (00:00 +0000)] 
daily update

15 years agogdb/
Pedro Alves [Wed, 13 Aug 2008 13:58:45 +0000 (13:58 +0000)] 
gdb/
* breakpoint.c (always_inserted_auto, always_inserted_on)
(always_inserted_off, always_inserted_enums): New.
(always_inserted_mode): Change type to char* and point to
always_inserted_auto.
(show_always_inserted_mode): In auto mode, also show the current
effect of the option.
(breakpoints_always_inserted_mode): Adjust for the new auto mode.
(_initialize_breakpoint): Make the "set breakpoints
always-inserted" command an enum command.  Extend help to describe
the auto mode.

gdb/doc/
* gdb.texinfo (breakpoint always-inserted) Describe the auto mode
setting, and make it the default.
(Non-Stop Mode): Remove "set breakpoints always-inserted 1" from
non-stop script example.

15 years ago * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
Ulrich Weigand [Wed, 13 Aug 2008 13:38:01 +0000 (13:38 +0000)] 
* spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
query valid) bit.  Ignore bits outside the condition field.
(info_spu_proxydma_command): Ignore bits outside the field.

15 years ago * layout.cc (Layout::attach_allocated_section_to_segment): Don't
Ian Lance Taylor [Wed, 13 Aug 2008 07:37:46 +0000 (07:37 +0000)] 
* layout.cc (Layout::attach_allocated_section_to_segment): Don't
set tls_segment_ or relro_segment_.
(Layout::make_output_segment): Set tls_segment_ and relro_segment_
when appropriate.
* output.h (Output_section::clear_is_relro): New function.
* output.cc (Output_segment::add_output_section): Handle SHF_TLS
sections specially even when output_data_ is empty.
(Output_segment::maximum_alignment): When first section is relro,
only force alignment for PT_LOAD segments.
* script.cc (script_data_segment_align): New function.
(script_data_segment_relro_end): New function.
* script-c.h (script_data_segment_align): Declare.
(script_data_segment_relro_end): Declare.
* script-sections.h (class Script_sections): Declare
data_segment_align and data_segment_relro_end.  Add fields
segment_align_index_ and saw_relro_end_.
* script-sections.cc (class Sections_element): Add set_is_relro
virtual function.  Add new bool* parameter to place_orphan_here.
Add get_output_section virtual function.
(class Output_section_definition): Add set_is_relro.  Add new
bool* parameter to place_orphan_here.  Add get_output_section.
Add is_relro_ field.
(Output_section_definition::Output_section_definition): Initialize
evaluated_address_, evaluated_load_address, evaluated_addralign_,
and is_relro_ fields.
(Output_section_definition::place_orphan_here): Add is_relro
parameter.
(Output_section_definition::set_section_addresses): Set relro for
output section.
(Output_section_definition::alternate_constraint): Likewise.
(class Orphan_output_section): Add new bool* parameter to
place_orphan_here.  Add get_output_section.
(Orphan_output_section::place_orphan_here): Add is_relro
parameter.
(Script_sections::Script_sections): Initialize
data_segment_align_index_ and saw_relro_end_.
(Script_sections::data_segment_align): New function.
(Script_sections::data_segment_relro_end): New function.
(Script_sections::place_orphan): Set or clear is_relro.
(Script_sections::set_section_addresses): Force alignment of first
TLS section.
* yyscript.y (exp): Call script_data_segment_align and
script_data_segment_relro_end.
* testsuite/relro_script_test.t: New file.
* testsuite/relro_test.cc (using_script): Declare.
(t1, t2): Test using_script.
* testsuite/Makefile.am (check_PROGRAMS): Add relro_script_test.
(relro_script_test_SOURCES): Define.
(relro_script_test_DEPENDENCIES): Define.
(relro_script_test_LDFLAGS): Define.
(relro_script_test_LDADD): Define.
(relro_script_test.so): New target.
* testsuite/Makefile.in: Rebuild.

15 years ago * doc/as.texinfo (Align): Document the PowerPC behaviour.
Ben Elliston [Wed, 13 Aug 2008 02:50:41 +0000 (02:50 +0000)] 
* doc/as.texinfo (Align): Document the PowerPC behaviour.

15 years agodaily update
Alan Modra [Wed, 13 Aug 2008 00:00:05 +0000 (00:00 +0000)] 
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 13 Aug 2008 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

15 years agoBanish PARAMS and PTR. Convert to ISO C.
Alan Modra [Tue, 12 Aug 2008 23:39:31 +0000 (23:39 +0000)] 
Banish PARAMS and PTR.  Convert to ISO C.
Delete unnecessary forward declarations.

15 years ago2008-08-12 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Tue, 12 Aug 2008 22:58:02 +0000 (22:58 +0000)] 
2008-08-12  Michael Snyder  <msnyder@vmware.com>

* MAINTAINERS: Update my email address.

15 years agogas/testsuite/
H.J. Lu [Tue, 12 Aug 2008 21:44:56 +0000 (21:44 +0000)] 
gas/testsuite/

2008-08-12  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/amd.s: Add syscall and sysret.  Remove padding.

* gas/i386/amd.d: Updated.
* gas/i386/x86-64-opcode.d: Likewise.

* gas/i386/i386.exp: Run x86-64-intel64.

* gas/i386/x86-64-intel64.d: New.
* gas/i386/x86-64-intel64.s: Likewise.

* gas/i386/x86-64-opcode.s: Add syscall and sysret.

opcodes/

2008-08-12  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Add syscall and sysret for Cpu64.

* i386-tbl.h: Regenerated.

15 years ago * gdbint.texinfo (Raw and Virtual Register Representations): Fix
Thiago Jung Bauermann [Tue, 12 Aug 2008 20:12:04 +0000 (20:12 +0000)] 
* gdbint.texinfo (Raw and Virtual Register Representations): Fix
reference to the "Using Different Register and Memory Data
Representation" section.

15 years ago * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
Ulrich Weigand [Tue, 12 Aug 2008 18:20:14 +0000 (18:20 +0000)] 
* ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.

15 years agogdb/doc/
Sandra Loosemore [Tue, 12 Aug 2008 15:18:31 +0000 (15:18 +0000)] 
gdb/doc/
2008-08-12  Sandra Loosemore  <sandra@codesourcery.com>

* gdb.texinfo (Remote Configuration): Document set remote noack-packet.
(Remote Protocol): Add Packet Acknowledgment to menu.
(Overview): Mention +/- can be disabled, and point to new section
where this is discussed in detail.
(General Query Packets): Document QStartNoAckMode packet, and
corresponding qSupported reply.
(Packet Acknowledgment): New section.

gdb/
2008-08-12  Pedro Alves  <pedro@codesourcery.com>

Add no-ack mode to the remote protocol --- optionally stop ACKing
packets and responses when we have a reliable communication
medium.

Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>

* remote.c (struct remote_state): Add noack_mode field.
(PACKET_QStartNoAckMode): New.
(remote_start_remote): Don't any outstanding packet here.
(remote_open_1): Clear noack_mode.  Ack any outstanding packet
here.  Activate noack mode if requested.
(remote_protocol_features): Add QStartNoAckMode.
(remote_open_1):
(putpkt_binary): Don't send ack in noack mode.
(read_frame): Don't recompute the checksum in noack mode.
(getpkt_sane): Skip sending ack if in noack mode.
(_initialize_remote): Add set/show remote noack mode.
* NEWS:  Note the new features.

gdb/gdbserver/
2008-08-12  Pedro Alves  <pedro@codesourcery.com>

* remote-utils.c (noack_mode, transport_is_reliable): New globals.
(remote_open): Set or clear transport_is_reliable.
(putpkt_binary): Don't expect acks in noack mode.
(getpkt): Don't send ack/nac in noack mode.
* server.c (handle_general_set): Handle QStartNoAckMode.
(handle_query): If connected by tcp pass QStartNoAckMode+ in
qSupported.
(main): Reset noack_mode on every connection.
* server.h (noack_mode): Declare.

15 years ago * elf32-ppc.c (allocate_dynrelocs): Ignore dyn_relocs when
Alan Modra [Tue, 12 Aug 2008 13:12:49 +0000 (13:12 +0000)] 
* elf32-ppc.c (allocate_dynrelocs): Ignore dyn_relocs when
!dynamic_sections_created.  Don't make symbols with got
references dynamic if !dynamic_sections_created.
* elf64-ppc.c (allocate_dynrelocs): Likewise.  Alloc dynamic
relocs on undefined symbols.
(ppc64_elf_relocate_section): Allow dynamic relocs on
undefined symbols.

15 years ago * config/tc-arm.c (s_unreq): Adjust hash_delete call.
Alan Modra [Tue, 12 Aug 2008 09:58:34 +0000 (09:58 +0000)] 
* config/tc-arm.c (s_unreq): Adjust hash_delete call.
* config/tc-ia64.c (dot_rot): Likewise.

15 years ago2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Tue, 12 Aug 2008 01:00:49 +0000 (01:00 +0000)] 
2008-08-11  Sandra Loosemore  <sandra@codesourcery.com>
    Pedro Alves  <pedro@codesourcery.com>

gdb/doc
* gdb.texinfo (Threads): Move paragraph about automatic thread
selection to All-Stop Mode subsection.
(Thread Stops): Reorganize existing material into subsections.
Add introductory blurb and menu.
(Non-Stop Mode): New subsection.
(Background Execution): New subsection.
(Maintenance Commands): Add cross-references from async mode
commands to the new Background Execution section.

15 years ago * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
Kevin Buettner [Tue, 12 Aug 2008 00:29:35 +0000 (00:29 +0000)] 
  * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
  New macros.
  (rs6000_skip_main_prologue): New function.
  (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.

15 years agodaily update
Alan Modra [Tue, 12 Aug 2008 00:00:08 +0000 (00:00 +0000)] 
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 12 Aug 2008 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

15 years ago2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Mon, 11 Aug 2008 23:17:01 +0000 (23:17 +0000)] 
2008-08-11  Sandra Loosemore  <sandra@codesourcery.com>

gdb/
* MAINTAINERS (Write After Approval):  Add self.

15 years ago ARM BE8 support.
Stan Shebs [Mon, 11 Aug 2008 19:00:25 +0000 (19:00 +0000)] 
ARM BE8 support.
* disasm.c (gdb_disassemble_info): Set endian_code.
* gdbarch.sh (gdbarch_info): New field byte_order_for_code.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (initialize_current_architecture): Set the
default byte_order_for_code.
(gdbarch_info_init): Ditto.
(gdbarch_info_fill): Ditto.
* arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
(thumb_analyze_prologue): Swap halfword if code endianness is
different from general endianness.
(arm_skip_prologue): Similarly.
(arm_scan_prologue): Ditto.
(thumb_get_next_pc): Ditto.
(arm_get_next_pc): Ditto.
(arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
choose correct endianness for breakpoints.

15 years ago * elf64-ppc.c (toc_adjusting_stub_needed): Any call via the plt
Alan Modra [Mon, 11 Aug 2008 14:38:40 +0000 (14:38 +0000)] 
* elf64-ppc.c (toc_adjusting_stub_needed): Any call via the plt
needs r2 valid, not just those to external syms.

15 years ago PR 6575
Alan Modra [Mon, 11 Aug 2008 07:40:22 +0000 (07:40 +0000)] 
PR 6575
* hash.c: Expand PTR to void *.
(hash_delete): Add "freeme" parameter.  Call obstack_free.
* hash.h: Expand PTR to void *.
(hash_delete): Update prototype.
* macro.c (macro_expand_body): hash_delete LOCALs from formal_hash.
* config/tc-tic54x.c (tic54x_remove_local_label): Update hash_delete
call.
(subsym_substitute): Likewise.
* doc/internals.texi (hash_delete): Update.

15 years agodaily update
Alan Modra [Mon, 11 Aug 2008 00:00:05 +0000 (00:00 +0000)] 
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 11 Aug 2008 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

15 years ago * bsd-kvm.c: Include "gdbthread.h".
Pedro Alves [Sun, 10 Aug 2008 21:55:15 +0000 (21:55 +0000)] 
* bsd-kvm.c: Include "gdbthread.h".
(bsd_kvm_ptid): New.
(bsd_kvm_open): Add a main thread.
(bsd_kvm_close): Delete it.
(bsd_kvm_thread_alive): New.
(bsd_kvm_pid_to_str): New.
(bsd_kvm_add_target): Register bsd_kvm_thread_alive and
bsd_kvm_pid_to_str.
(bsd_kvm_add_target): Initialize bsd_kvm_ptid.

15 years ago Build fixes for DJGPP.
Pedro Alves [Sun, 10 Aug 2008 19:17:42 +0000 (19:17 +0000)] 
Build fixes for DJGPP.

* signals.c (rl_set_sighandler): Guard access to SIGWINCH.
* wcwidth.c [__GO32__]: Include wctype.h before wchar.h.

15 years ago * archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat
Pedro Alves [Sun, 10 Aug 2008 18:49:09 +0000 (18:49 +0000)] 
* archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat
st_mtime to long before comparison.

15 years ago * buildsym.c (start_subfile): Properly cast sentinel in concat
Pedro Alves [Sun, 10 Aug 2008 18:41:33 +0000 (18:41 +0000)] 
* buildsym.c (start_subfile): Properly cast sentinel in concat
call.
* cp-name-parser.y: Include "config.h".
* xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
concat call.
* gdb_select.h: Include sys/time.h if sys/select.h is not
available.

15 years agodaily update
Alan Modra [Sun, 10 Aug 2008 00:00:05 +0000 (00:00 +0000)] 
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 10 Aug 2008 00:00:04 +0000 (00:00 +0000)] 
*** empty log message ***

15 years ago * go32-nat.c: Include "gdbthread.h".
Pedro Alves [Sat, 9 Aug 2008 21:26:22 +0000 (21:26 +0000)] 
* go32-nat.c: Include "gdbthread.h".
(go32_stop, go32_kill_inferior): Delete the main thread.
(go32_create_inferior): Add it.
(go32_thread_alive, go32_pid_to_str): New.
(init_go32_ops): Register go32_thread_alive and go32_pid_to_str.

15 years ago * go32-nat.c (fetch_register, store_register): Pass the regcache
Pedro Alves [Sat, 9 Aug 2008 21:25:00 +0000 (21:25 +0000)] 
* go32-nat.c (fetch_register, store_register): Pass the regcache
gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
(go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
(struct seg_descr, struct seg_descr): pack the whole struct
instead of each member individually.

15 years ago(_initialize_python): Use unabbreviated commands
Andreas Schwab [Sat, 9 Aug 2008 19:17:03 +0000 (19:17 +0000)] 
(_initialize_python): Use unabbreviated commands
in prefix name.

15 years ago * Makefile.in (stamp-h): Also create .deps.
Daniel Jacobowitz [Sat, 9 Aug 2008 18:57:08 +0000 (18:57 +0000)] 
* Makefile.in (stamp-h): Also create .deps.

15 years ago * Makefile.in (generated_files): Add GNULIB_H.
Tom Tromey [Sat, 9 Aug 2008 18:27:04 +0000 (18:27 +0000)] 
* Makefile.in (generated_files): Add GNULIB_H.

15 years ago * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
Dave Anglin [Sat, 9 Aug 2008 18:21:59 +0000 (18:21 +0000)] 
* solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
DT_HP_DEBUG_PRIVATE.  Add warning if DT_HP_DEBUG_PRIVATE is not set.
Revise comment.
(pa64_current_sos): Remove map private warning warning.
* solib-som.c: Include string.h and sys/utsname.h.
(get_hpux_major_release): New function.
(som_solib_create_inferior_hook): Read dynamic linker header.  Warn
about shared library private mapping on HP-UX 11 and later.  Only force
private mapping of shared libraries on HP-UX 10 and earlier.
(link_map_start): Delete warning.

15 years ago2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
H.J. Lu [Sat, 9 Aug 2008 16:27:39 +0000 (16:27 +0000)] 
2008-08-09  Xuepeng Guo  <xuepeng.guo@intel.com>
    H.J. Lu  <hongjiu.lu@intel.com>
    Mark Kettenis <kettenis@gnu.org>

* amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
(amd64_init_frame_cache): Initialize saved_sp_reg.
(amd64_analyze_stack_align): New.
(amd64_analyze_prologue): Call it.
(amd64_frame_cache): Use saved_sp_reg if it is invalid.  Don't set
%rip to 8 when halfway aligning the stack.

* amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
AMD64_R14_REGNUM.

* i386-tdep.c (i386_frame_cache): Remove stack_align.  Add
saved_sp_reg.
(i386_alloc_frame_cache): Remove stack_align.  Initialize
saved_sp_reg to -1.
(i386_analyze_stack_align): Rewrite.
(i386_frame_cache): Use saved_sp_reg if it is valid.

15 years ago PR 6615
Alan Modra [Sat, 9 Aug 2008 13:05:11 +0000 (13:05 +0000)] 
PR 6615
* rename.c (smart_rename): Punctuate error messages.

15 years ago * target.c: Include "solib.h".
Ulrich Weigand [Sat, 9 Aug 2008 12:15:10 +0000 (12:15 +0000)] 
* target.c: Include "solib.h".
(target_pre_inferior): Call no_shared_libraries.
* infcmd.c (run_command_1): Do not call objfile_purge_solibs
or clear_solib.
(attach_command): Do not call clear_solib.

15 years ago PR 6753
Alan Modra [Sat, 9 Aug 2008 10:15:39 +0000 (10:15 +0000)] 
PR 6753
* ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
(main): Don't set_scripts_dir here.
* ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
largely based on ldmain.c versions.
(ldfile_find_command_file): Set up search in script dir here without
affecting library search.
* Makefile.am (ldmain.o): No need to define SCRIPTDIR.
(ldfile.o): New rule.
* Makefile.in: Regenerate.

15 years ago* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
Mark Kettenis [Sat, 9 Aug 2008 08:15:26 +0000 (08:15 +0000)] 
* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
the %eip register.

15 years agoAdd AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
Eric B. Weddington [Sat, 9 Aug 2008 05:35:13 +0000 (05:35 +0000)] 
Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
bfd/
* archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35,
bfd_mach_avr51): New.
* bfd-in2.h: Regenerate.
* cpu-avr.c (arch_info_struct): Add avr25, avr31, avr35, and avr51
architectures. Change comments to match architecture comments in GCC.
(compatible): Add test for new AVR architectures.
* elf32-avr.c (bfd_elf_avr_final_write_processing): Recognize
bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35 and bfd_mach_avr51.
(elf32_avr_object_p): Recognize E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35 and E_AVR_MACH_AVR51.

gas/
* config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
architectures. Reorganize list to put mcu types in correct architectures
and to order list same as in GCC. Use new ISA definitions in
include/opcode/avr.h.
* doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
descriptions. Reorganize descriptions to put mcu types in correct
architectures and to order lists same as in GCC.

include/
* elf/avr.h (E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35, E_AVR_MACH_AVR51): Define.
(EF_AVR_MACH): Redefine to 0x7F.
* opcode/avr.h (AVR_ISA_TINY3, AVR_ISA_ALL, AVR_ISA_USB162): Remove.
(AVR_ISA_AVR3): Redefine.
(AVR_ISA_AVR1, AVR_ISA_AVR2, AVR_ISA_AVR31, AVR_ISA_AVR35,
AVR_ISA_AVR3_ALL, AVR_ISA_AVR4, AVR_ISA_AVR5, AVR_ISA_AVR51,
AVR_ISA_AVR6): Define.

ld/
* Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
and eavr51.o.
Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
* Makefile.in: Regenerate.
* configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
and avr51.
* emulparams/avr25.sh: New file.
* emulparams/avr31.sh: New file.
* emulparams/avr35.sh: New file.
* emulparams/avr51.sh: New file.

15 years ago*** empty log message ***
gdbadmin [Sat, 9 Aug 2008 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 9 Aug 2008 00:00:05 +0000 (00:00 +0000)] 
daily update

15 years ago2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
Daniel Jacobowitz [Fri, 8 Aug 2008 19:24:49 +0000 (19:24 +0000)] 
2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>
    Maxim Kuvyrkov  <maxim@codesourcery.com>

* elf32-mips.c (mips_vxworks_copy_howto_rela): Replace with...
(elf_mips_copy_howto): ...this howto.  Clear the size fields.
(mips_vxworks_jump_slot_howto_rela): Replace with...
(elf_mips_jump_slot_howto): ...this howto.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf32_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
(elf_backend_plt_readonly): Define.
(elf_backend_plt_sym_val): Define for non-VxWorks targets.
(mips_vxworks_bfd_reloc_type_lookup): Delete.
(mips_vxworks_bfd_reloc_name_lookup): Likewise.
(mips_vxworks_rtype_to_howto): Likewise.
(elf_backend_want_dynbss): Don't define for VxWorks.
(elf_backend_plt_readonly): Likewise.
(bfd_elf32_bfd_reloc_type_lookup): Likewise.
(bfd_elf32_bfd_reloc_name_lookup): Likewise.
(elf_backend_mips_rtype_to_howto): Likewise.
(elf_backend_adjust_dynamic_symbol): Likewise.
(elf_backend_got_symbol_offset): Don't define.
* elfn32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf32_n32_rtype_to_howto): Handle R_MIPS_COPY and
R_MIPS_JUMP_SLOT.
(elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly)
(elf_backend_plt_sym_val): Define.
* elf64-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New.
(bfd_elf64_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf64_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf64_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
(elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly)
(elf_backend_plt_sym_val): Define.
* elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Delete.
(_bfd_mips_elf_use_plts_and_copy_relocs, _bfd_mips_elf_init_stubs)
(_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): Declare.
* elfxx-mips.c (mips_elf_la25_stub): New structure.
(LA25_LUI, LA25_J, LA25_ADDIU): New macros.
(mips_elf_link_hash_entry): Add "la25_stubs", "has_static_relocs"
and "has_nonpic_branches" fields.  Remove "is_relocation_target" and
"is_branch_target".
(mips_elf_link_hash_table): Add blank lines.  Add
"use_plts_and_copy_relocs", "reserved_gotno", "strampoline",
"la25_stubs" and "add_stub_section" fields.
(mips_htab_traverse_info): New structure.
(PIC_OBJECT_P, MIPS_ELF_LOAD_WORD): New macros.
(MIPS_RESERVED_GOTNO): Delete.
(mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry)
(mips_n64_exec_plt0_entry, mips_exec_plt_entry): New tables.
(mips_elf_link_hash_newfunc): Update after the changes to
mips_elf_link_hash_entry.
(mips_elf_check_mips16_stubs): Replace the DATA parameter with
an INFO parameter.  Don't look through warnings symbols here;
do it in mips_elf_check_symbols instead.
(mips_elf_create_stub_symbol): New function.
(mips_elf_la25_stub_hash, mips_elf_la25_stub_eq): New functions.
(_bfd_mips_elf_init_stubs, mips_elf_local_pic_function_p): Likewise.
(mips_elf_add_la25_intro, mips_elf_add_la25_trampoline): Likewise.
(mips_elf_add_la25_stub, mips_elf_check_symbols): New functions.
(mips_elf_gotplt_index): Check for VxWorks.
(mips_elf_output_dynamic_relocation): Take the relocation index
as an extra parameter.  Do not increment reloc_count here.
(mips_elf_initialize_tls_slots): Update the calls to
mips_elf_output_dynamic_relocation accordingly.
(mips_elf_multi_got): Use htab->reserved_gotno instead of
MIPS_RESERVED_GOTNO.
(mips_elf_create_got_section): Don't allocate reserved GOT
entries here.  Unconditionally create .got.plt, but don't
set its alignment here.
(mips_elf_relocation_needs_la25_stub): New function.
(mips_elf_calculate_relocation): Redirect branches and jumps to
a non-PIC stub if one exists.  Check !h->has_static_relocs instead
of !htab->is_vxworks when deciding whether to create dynamic
relocations for R_MIPS_32, R_MIPS_REL32 and R_MIPS_64.
(_bfd_mips_elf_create_dynamic_sections): Unconditionally call
_bfd_elf_create_dynamic_sections.  Unconditionally set up
htab->splt and htab->sdynbss.  Set htab->srelplt to ".rel.plt"
if !htab->is_vxworks.  Add non-VxWorks values of
htab->plt_header_size and htab->plt_entry_size.
(_bfd_mips_elf_check_relocs): Set pointer_equality_needed for
non-branch static relocations.  Set has_nonpic_branches when an la25
stub might be required.  Set can_make_dynamic_p to TRUE if R_MIPS_32,
R_MIPS_REL32 and R_MIPS_64 relocations can be made dynamic,
rather than duplicating the condition.  Do not make them dynamic
for read-only sections in non-PIC executable objects.
Do not protect this code with dynobj == NULL || htab->sgot == NULL;
handle each group of cases separately.  Add a default case that
sets has_static_relocs for non-GOT relocations that cannot be
made dynamic.  Don't set is_relocation_target and is_branch_target.
Reject non-PIC static relocations in shared objects.
(_bfd_mips_vxworks_adjust_dynamic_symbol): Fold into...
(_bfd_mips_elf_adjust_dynamic_symbol): ...here, using
htab->use_plts_and_copy_relocs instead of htab->is_vxworks
to select PLT and copy-reloc handling.  Set the alignment of
.plt and .got.plt when allocating the first entry.  Generalize
code to handle REL as well as RELA sections and 64-bit as well as
32-bit GOT entries.  Complain if we find a static-only reloc
against an externally-defined symbol and if we cannot create
dynamic relocations for it.  Allocate copy relocs using
mips_elf_allocate_dynamic_relocations on non-VxWorks targets.
Set possibly_dynamic_relocs to 0 when using PLTs or copy relocs.
Skip reserved .got.plt entries.
(_bfd_mips_elf_always_size_sections): Use mips_elf_check_symbols
instead of mips_elf_check_mips16_stubs to process each symbol.
Do the traversal for relocatable objects too.
(mips_elf_lay_out_got): Use htab->reserved_gotno instead of
MIPS_RESERVED_GOTNO.
(_bfd_mips_elf_size_dynamic_sections): Exclude sdynbss if it
is empty.  Extend the DT_PLTREL, DT_JMPREL and DT_PLTRELSZ handling
to non-VxWorks targets.  Only add DT_REL{,A}, DT_REL{,A}SZ and
DT_REL{,A}ENT if .rel.dyn is nonempty.  Create a symbol for the
PLT.  Allocate a nop at the end of the PLT.  Allocate DT_MIPS_PLTGOT.
(mips_elf_create_la25_stub_info): New function.
(_bfd_mips_elf_finish_dynamic_symbol): Write out PLT entries
and copy relocs where necessary.  Check pointer_equality_needed.
(mips_finish_exec_plt): New function.
(_bfd_mips_elf_finish_dynamic_sections): Always set DT_PLTGOT
to the beginning of htab->sgot.  Use htab->reserved_gotno instead
of MIPS_RESERVED_GOTNO.  Assert htab->use_plts_and_copy_relocs
instead of htab->is_vxworks for DT_PLTREL, DT_PLTRELSZ and DT_JMPREL.
Set DT_PLTREL to DT_REL instead of DT_RELA on non-VxWorks targets.
Use mips_finish_exec_plt to create non-VxWorks PLT headers.  Set
DT_MIPS_PLTGOT.
(_bfd_mips_elf_copy_indirect_symbol): Copy has_static_relocs
from the indirect symbol to the direct symbol.  Also copy
has_nonpic_branches for indirect symbols.
(_bfd_mips_elf_get_target_dtag): Handle DT_MIPS_PLTGOT and
DT_MIPS_RWPLT.
(_bfd_mips_elf_link_hash_table_create): Initialize the new
mips_elf_link_hash_table fields.
(_bfd_mips_vxworks_link_hash_table_create): Set
use_plts_and_copy_relocs to TRUE.  Use TRUE rather than 1
when setting is_vxworks.
(_bfd_mips_elf_use_plts_and_copy_relocs): New function.
(_bfd_mips_elf_final_link): Call mips_elf_create_la25_stub for
each la25_stub.
(_bfd_mips_elf_merge_private_bfd_data): Treat dynamic objects
as PIC.  Generalize message about linking PIC and non-PIC.
(_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): New
functions.
* reloc.c: Update comment near BFD_RELOC_MIPS_JUMP_SLOT.
* bfd-in2.h: Regenerated.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>

* readelf.c (get_mips_symbol_other): Handle STO_MIPS_PLT and
STO_MIPS_PIC.
(slurp_rela_relocs, slurp_rel_relocs): Handle MIPS ELF64 here.
(dump_relocations, debug_apply_relocations): Don't handle it here.
(get_mips_dynamic_type): Handle DT_MIPS_PLTGOT and DT_MIPS_RWPLT.
(print_mips_pltgot_entry): New function.
(process_mips_specific): Dump the PLT GOT.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
(OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
(OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
(OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
(md_longopts): Add -call_nonpic.
(md_parse_option): Handle OPTION_CALL_NONPIC.
(md_show_usage): Add -call_nonpic.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>

* gas/mips/call-nonpic-1.s, gas/mips/call-nonpic-1.d: New test.
* gas/mips/mips.exp: Run it.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>

* mips.h (STO_MIPS_PLT, ELF_ST_IS_MIPS_PLT, ELF_ST_SET_MIPS_PLT)
(STO_MIPS_PIC, DT_MIPS_PLTGOT, DT_MIPS_RWPLT): New macros.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
(OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
two variables.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
(is_mips_elf): New macro.
(stub_file, stub_bfd): New variables.
(hook_stub_info): New structure.
(hook_in_stub): New function.
(mips_add_stub_section): Likewise.
(mips_create_output_section_statements): Likewise.
(mips_before_allocation): Likewise.
(real_func): New variable.
(mips_for_each_input_file_wrapper): New function.
(mips_lang_for_each_input_file): Likewise.
(lang_for_each_input_file): Define.
(LDEMUL_BEFORE_ALLOCATION): Likewise.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* ld-mips-elf/mips16-pic-3a.s,
ld-mips-elf/mips16-pic-3b.s,
ld-mips-elf/mips16-pic-3.dd,
ld-mips-elf/mips16-pic-3.gd,
ld-mips-elf/mips16-pic-3.rd,
ld-mips-elf/mips16-pic-3.inc,
ld-mips-elf/pic-and-nonpic-1a.s,
ld-mips-elf/pic-and-nonpic-1b.s,
ld-mips-elf/pic-and-nonpic-1.ld,
ld-mips-elf/pic-and-nonpic-1.dd,
ld-mips-elf/pic-and-nonpic-1.nd,
ld-mips-elf/pic-and-nonpic-1-rel.dd,
ld-mips-elf/pic-and-nonpic-1-rel.nd,
ld-mips-elf/pic-and-nonpic-2a.s,
ld-mips-elf/pic-and-nonpic-2b.s,
ld-mips-elf/pic-and-nonpic-2.d,
ld-mips-elf/pic-and-nonpic-3a.s,
ld-mips-elf/pic-and-nonpic-3a.ld,
ld-mips-elf/pic-and-nonpic-3a.dd,
ld-mips-elf/pic-and-nonpic-3a.gd,
ld-mips-elf/pic-and-nonpic-3a.sd,
ld-mips-elf/pic-and-nonpic-3b.s,
ld-mips-elf/pic-and-nonpic-3b.ld,
ld-mips-elf/pic-and-nonpic-3b.ad,
ld-mips-elf/pic-and-nonpic-3b.dd,
ld-mips-elf/pic-and-nonpic-3b.gd,
ld-mips-elf/pic-and-nonpic-3b.nd,
ld-mips-elf/pic-and-nonpic-3b.pd,
ld-mips-elf/pic-and-nonpic-3b.rd,
ld-mips-elf/pic-and-nonpic-3b.sd,
ld-mips-elf/pic-and-nonpic-3-error.d,
ld-mips-elf/pic-and-nonpic-4a.s,
ld-mips-elf/pic-and-nonpic-4b.s,
ld-mips-elf/pic-and-nonpic-4b.ld,
ld-mips-elf/pic-and-nonpic-4b.ad,
ld-mips-elf/pic-and-nonpic-4b.dd,
ld-mips-elf/pic-and-nonpic-4b.gd,
ld-mips-elf/pic-and-nonpic-4b.nd,
ld-mips-elf/pic-and-nonpic-4b.rd,
ld-mips-elf/pic-and-nonpic-4b.sd,
ld-mips-elf/pic-and-nonpic-4-error.d,
ld-mips-elf/pic-and-nonpic-5a.s,
ld-mips-elf/pic-and-nonpic-5b.s,
ld-mips-elf/pic-and-nonpic-5b.ld,
ld-mips-elf/pic-and-nonpic-5b.ad,
ld-mips-elf/pic-and-nonpic-5b.dd,
ld-mips-elf/pic-and-nonpic-5b.gd,
ld-mips-elf/pic-and-nonpic-5b.nd,
ld-mips-elf/pic-and-nonpic-5b.rd,
ld-mips-elf/pic-and-nonpic-5b.sd,
ld-mips-elf/pic-and-nonpic-5b.pd,
ld-mips-elf/pic-and-nonpic-6.ld,
ld-mips-elf/pic-and-nonpic-6-o32a.s,
ld-mips-elf/pic-and-nonpic-6-o32b.s,
ld-mips-elf/pic-and-nonpic-6-o32c.s,
ld-mips-elf/pic-and-nonpic-6-o32.ad,
ld-mips-elf/pic-and-nonpic-6-o32.dd,
ld-mips-elf/pic-and-nonpic-6-o32.gd,
ld-mips-elf/pic-and-nonpic-6-o32.nd,
ld-mips-elf/pic-and-nonpic-6-o32.pd,
ld-mips-elf/pic-and-nonpic-6-o32.rd,
ld-mips-elf/pic-and-nonpic-6-o32.sd,
ld-mips-elf/pic-and-nonpic-6-n32a.s,
ld-mips-elf/pic-and-nonpic-6-n32b.s,
ld-mips-elf/pic-and-nonpic-6-n32c.s,
ld-mips-elf/pic-and-nonpic-6-n32.ad,
ld-mips-elf/pic-and-nonpic-6-n32.dd,
ld-mips-elf/pic-and-nonpic-6-n32.gd,
ld-mips-elf/pic-and-nonpic-6-n32.nd,
ld-mips-elf/pic-and-nonpic-6-n32.pd,
ld-mips-elf/pic-and-nonpic-6-n32.rd,
ld-mips-elf/pic-and-nonpic-6-n32.sd,
ld-mips-elf/pic-and-nonpic-6-n64a.s,
ld-mips-elf/pic-and-nonpic-6-n64b.s,
ld-mips-elf/pic-and-nonpic-6-n64c.s,
ld-mips-elf/pic-and-nonpic-6-n64.ad,
ld-mips-elf/pic-and-nonpic-6-n64.dd,
ld-mips-elf/pic-and-nonpic-6-n64.gd,
ld-mips-elf/pic-and-nonpic-6-n64.nd,
ld-mips-elf/pic-and-nonpic-6-n64.pd,
ld-mips-elf/pic-and-nonpic-6-n64.rd,
ld-mips-elf/pic-and-nonpic-6-n64.sd: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

15 years ago2008-08-08 Sterling Augustine <sterling@tensilica.com>
Bob Wilson [Fri, 8 Aug 2008 18:21:26 +0000 (18:21 +0000)] 
2008-08-08  Sterling Augustine  <sterling@tensilica.com>
* config/tc-xtensa.c (exclude_section_from_property_tables): New.
(xtensa_create_property_segments): Use it.
(xtensa_create_xproperty_segments): Likewise.

15 years ago * Makefile.in (python.o): Remove dependencies. Use COMPILE and
Tom Tromey [Fri, 8 Aug 2008 17:38:35 +0000 (17:38 +0000)] 
* Makefile.in (python.o): Remove dependencies.  Use COMPILE and
POSTCOMPILE.
(python-utils.o): Likewise.

15 years agogdb.base/args.exp: Prevent ~/.gdbinit from affecting test.
Paul Pluzhnikov [Fri, 8 Aug 2008 17:17:02 +0000 (17:17 +0000)] 
gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.

15 years ago(_initialize_core): Remove spurious paren from set
Andreas Schwab [Fri, 8 Aug 2008 16:47:02 +0000 (16:47 +0000)] 
(_initialize_core): Remove spurious paren from set
gnutarget doc string.

15 years ago * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
Luis Machado [Fri, 8 Aug 2008 15:30:27 +0000 (15:30 +0000)] 
* ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
Define PPC_FEATURE_BOOKE.
(ppc_linux_get_hwcap): New function.
(ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4-bytes alignment restrictions.
(ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
positioning of the read/write flags.
(ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4-bytes alignment.

15 years ago Use ptid_t.tid to store thread ids instead of ptid_t.pid.
Pedro Alves [Fri, 8 Aug 2008 13:16:17 +0000 (13:16 +0000)] 
Use ptid_t.tid to store thread ids instead of ptid_t.pid.

* win32-nat.c (win32_add_thread): Change thread argument type to
ptid_t.  Adjust.
(win32_add_thread): Adjust.
(win32_delete_thread): Change thread argument type to ptid_t.
Adjust.
(win32_fetch_inferior_registers, win32_store_inferior_registers)
(win32_resume, get_win32_debug_event, get_win32_debug_event)
(win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
(init_win32_ops): Put to_magic last.
(win32_win32_thread_alive): Adjust.

15 years ago * readelf.c (is_64bit_abs_reloc): Return true for R_MIPS_64.
Alan Modra [Fri, 8 Aug 2008 08:08:33 +0000 (08:08 +0000)] 
* readelf.c (is_64bit_abs_reloc): Return true for R_MIPS_64.

15 years ago * ldfile.c (ldfile_open_file_search): Use concat.
Alan Modra [Fri, 8 Aug 2008 08:06:16 +0000 (08:06 +0000)] 
* ldfile.c (ldfile_open_file_search): Use concat.
(try_open): Don't use a fixed size pathname buffer.
(ldfile_find_command_file): Likewise.
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
using EXTRA_SHLIB_EXTENSION, don't open twice.

15 years ago * elf.c (bfd_elf_get_elf_syms): Don't leak memory on error.
Alan Modra [Fri, 8 Aug 2008 08:00:14 +0000 (08:00 +0000)] 
* elf.c (bfd_elf_get_elf_syms): Don't leak memory on error.
* elflink.c (_bfd_elf_link_read_relocs): bfd_release on error.
(elf_link_add_object_symbols): Don't leak memory on error.
(bfd_elf_size_dynsym_hash_dynstr): Likewise.
(elf_fixup_link_order): Free sections.

15 years ago * doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.
Alan Modra [Fri, 8 Aug 2008 07:38:49 +0000 (07:38 +0000)] 
* doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.

15 years ago * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
Pedro Alves [Fri, 8 Aug 2008 02:45:11 +0000 (02:45 +0000)] 
* remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
(init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.

15 years ago * remote-m32r-sdi.c: Include "gdbthread.h".
Pedro Alves [Fri, 8 Aug 2008 02:34:10 +0000 (02:34 +0000)] 
* remote-m32r-sdi.c: Include "gdbthread.h".
(remote_m32r_ptid): New.
(m32r_close): Delete the main thread.
(m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
main thread.
(m32r_kill, m32r_load, sdireset_command): Delete the main thread.
(_initialize_remote_m32r): Initialize remote_m32r_ptid.

15 years agodaily update
Alan Modra [Fri, 8 Aug 2008 00:00:06 +0000 (00:00 +0000)] 
daily update

This page took 0.045633 seconds and 4 git commands to generate.