Ben Elliston
c8c140d941
* lib/ld-lib.exp (run_ld_link_exec_tests): Add new parameter
...
${targets_to_xfail} that is applied for each test item.
* ld-elf/elf.exp: Pass *-*-netbsdelf* as an xfailed target.
2005-07-27 21:29:12 +00:00
Mark Mitchell
414e5532bc
* Makefile.tpl (EXTRA_TARGET_FLAGS): Set LDFLAGS=LDFLAGS_FOR_TARGET.
...
* Makefile.def (flags_to_pass): Add LDFLAGS_FOR_TARGET.
* Makefile.in: Regenerated.
2005-07-27 20:22:35 +00:00
Mark Mitchell
45f69e3a7a
* mt-gnu (CXXFLAGS): Include SYSROOT_CFLAGS_FOR_TARGET.
2005-07-27 18:55:59 +00:00
Mark Mitchell
078b964cfe
Remove bogus ChangeLog entry
2005-07-27 18:55:36 +00:00
Mark Mitchell
a19b6204a2
* config/mt-gnu (CXXFLAGS): Include SYSROOT_CFLAGS_FOR_TARGET.
...
* Makefile.tpl (SYSROOT_CFLAGS_FOR_TARGET): New variable.
(CFLAGS_FOR_TARGET): Use it.
(CXXFLAGS_FOR_TARGET): Likewise.
* Makefile.in: Regenerated.
* configure.in (--with-build-sysroot): New option.
* configure: Regenerated.
2005-07-27 18:00:57 +00:00
H.J. Lu
17d4e2a2a8
2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
...
* config/tc-i386.c (handle_large_common): Declare only for ELF.
2005-07-27 14:08:08 +00:00
Alan Modra
2f5028a7c8
* elflink.c (fix_syms): Handle symbols defined in input sections.
2005-07-27 08:32:53 +00:00
Jan Beulich
8b5328ac50
include/opcode/
...
2005-07-27 Jan Beulich <jbeulich@novell.com>
* i386.h (i386_optab): Add comment to movd. Use LongMem for all
movd-s. Add NoRex64 to movq-s dealing only with mmx or xmm registers.
Add movq-s as 64-bit variants of movd-s.
2005-07-27 07:04:31 +00:00
Jan Beulich
a33d77bc5f
bfd/
...
2005-07-27 Jan Beulich <jbeulich@novell.com>
* elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
(elf64_x86_64_info_to_howto): Use them.
2005-07-27 07:01:30 +00:00
Jan Beulich
ba825241e1
gas/
...
2005-07-27 Jan Beulich <jbeulich@novell.com>
* config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
int.
(unw_p_record): Remove unused/redundant fields imask and rmask.
Combine spoff and pspoff into a union. Combine gr and br into a
union. Change type of grmask and brmask to unsigned char. Change type
of frmask to unsigned int.
(unw_x_record): Combine spoff, pspoff, and treg into a union.
* config/tc-ia64.c (unwind): New field 'pending_saves'.
(check_pending_save): New.
(alloc_record): Clear out entire record.
(output_psp_gr): Use renamed structure fields.
(output_psp_sprel): Likewise.
(output_rp_gr): Likewise.
(output_rp_br): Likewise.
(output_rp_psprel): Likewise.
(output_rp_sprel): Likewise.
(output_pfs_gr): Likewise.
(output_pfs_psprel): Likewise.
(output_pfs_sprel): Likewise.
(output_preds_gr): Likewise.
(output_preds_psprel): Likewise.
(output_preds_sprel): Likewise.
(output_spill_base): Likewise.
(output_unat_gr): Likewise.
(output_unat_psprel): Likewise.
(output_unat_sprel): Likewise.
(output_lc_gr): Likewise.
(output_lc_psprel): Likewise.
(output_lc_sprel): Likewise.
(output_fpsr_gr): Likewise.
(output_fpsr_psprel): Likewise.
(output_fpsr_sprel): Likewise.
(output_priunat_gr): Likewise.
(output_priunat_psprel): Likewise.
(output_priunat_sprel): Likewise.
(output_bsp_gr): Likewise.
(output_bsp_psprel): Likewise.
(output_bsp_sprel): Likewise.
(output_bspstore_gr): Likewise.
(output_bspstore_psprel): Likewise.
(output_bspstore_sprel): Likewise.
(output_rnat_gr): Likewise.
(output_rnat_psprel): Likewise.
(output_rnat_sprel): Likewise.
(output_spill_psprel): Likewise.
(output_spill_sprel): Likewise.
(output_spill_reg): Likewise.
(output_fr_mem): Likewise. Allocate one unwind record per set mask
bit.
(output_frgr_mem): Likewise.
(output_gr_mem): Likewise.
(output_br_mem): Likewise.
(output_gr_gr): Likewise.
(output_br_gr): Likewise.
(fixup_unw_records): Likewise.
(process_one_record): Use renamed structure fields. For gr_gr and
br_gr, collect mask from chain of records before output.
(in_prologue): Simplify and eliminate early returns. Call
check_pending_save.
(in_body): Simplify and eliminate early returns.
(dot_body): Call check_pending_save.
(md_assemble): Update comment. Deal with pending saves.
gas/testsuite/
2005-07-27 Jan Beulich <jbeulich@novell.com>
* gas/ia64/unwind-bad.l: Uncomment patterns matching new warnings.
* gas/ia64/unwind-ok.d: Correct expectations.
2005-07-27 06:32:46 +00:00
Nick Roberts
d8d83e9b52
* gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
...
(do_children_tests): Assign values to the extra elements.
* gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use
them for tests for "-var-update --no-values" and
"-var-update --all-values".
Add test for "-var-list-children --simple-values".
* gdb.mi/basics.c (callee4): Add integer array D[3]...
* gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test
"-stack-list-locals --simple-values" Improve doc strings and
comments.
2005-07-27 02:21:16 +00:00
Nick Roberts
4e660f0729
*** empty log message ***
2005-07-27 02:18:24 +00:00
Alan Modra
9d6404037f
* ld-elfweak/size2a.s: Extend test to check size for two weaks.
...
* ld-elfweak/size2b.s: Likewise.
* ld-elfweak/size2.d: Update.
2005-07-27 00:08:40 +00:00
gdbadmin
80531647e1
*** empty log message ***
2005-07-27 00:00:07 +00:00
Alan Modra
a39b090394
daily update
2005-07-27 00:00:06 +00:00
Mark Kettenis
3ed8524757
* i386obsd-tdep.c (i386obsd_sigreturn_offset): New variable.
...
(i386obsd_sigtramp_p): Deal with an arbitrary number of possible
offsets.
(i386obsd_aout_supply_regset): Avoid bogus cast.
2005-07-26 20:02:55 +00:00
Jan Beulich
9cd9699237
gas/
...
2005-07-26 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (optimize_imm): Calculate candidate immediates
mask from guessed suffix, but mask out other immediate types only
if at least on candidate is valid for the insn.
gas/testsuite/
2005-07-26 Jan Beulich <jbeulich@novell.com>
* gas/i386/immed32.[sd]: New.
* gas/i386/immed64.[sd]: New.
* gas/i386/i386.exp: Run new tests.
2005-07-26 15:34:11 +00:00
Alan Modra
f41d945bae
* elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
...
regardless of strength of previous definition.
2005-07-26 15:19:37 +00:00
Alan Modra
87538722be
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
...
(bfd_elf_gc_sections): Allow -gc-sections when -shared.
* elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
2005-07-26 12:06:38 +00:00
Alan Modra
9e8cc8b4bf
* elflink.c (elf_gc_sweep): Move gcc_except_table code..
...
(bfd_elf_gc_sections): ..to here.
2005-07-26 11:47:05 +00:00
Alan Modra
c5f5f1f476
missed from 2005-07-18 commit
2005-07-26 11:08:59 +00:00
DJ Delorie
fd54057a29
[bfd]
...
* reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
R_M32C_HI8, R_M32C_HI16.
(m32c_reloc_map): Likewise.
(m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
[cpu]
* m32c.opc (parse_unsigned8): Add %dsp8().
(parse_signed8): Add %hi8().
(parse_unsigned16): Add %dsp16().
(parse_signed16): Add %lo16() and %hi16().
(parse_lab_5_3): Make valuep a bfd_vma *.
[gas]
* config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
Support %mod() modifiers from opcodes.
* doc/c-m32c.texi (M32C-Modifiers): New section.
[include/elf]
* m32c.h: Add R_M32C_8, R_M32C_LO16, R_M32C_HI8, and R_M32C_HI16.
[opcodes]
* m32c-asm.c Regenerate.
* m32c-dis.c Regenerate.
2005-07-26 03:21:53 +00:00
Alan Modra
030cf60a5d
daily update
2005-07-26 00:00:05 +00:00
gdbadmin
947815aa1e
*** empty log message ***
2005-07-26 00:00:03 +00:00
Mark Kettenis
735f54b499
* inf-ptrace.c [PT_GET_PROCESS_STATE] (inf_ptrace_follow_fork):
...
New function.
(inf_ptrace_him, inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Set
PTRACE_FORK event flag.
(inf_ptrace_wait) [PT_GET_PROCESS_STATE]: Handle PTRACE_FORK
event.
(inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set to_follow_fork.
2005-07-25 21:11:02 +00:00
Mark Kettenis
4b8a1a2882
* gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
...
defined.
* inf-ptrace.c: Tweak comments.
(inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero.
(inf_ptrace_mourn_inferior): Call waitpid.
(inf_ptrace_attach): Use pid_t, Remove unnecessary cast.
(inf_ptrace_detach): Use pid_t. Use ptid_get_pid instead of
PIDGET.
(inf_ptrace_kill): Rename from inf_ptrace_kill_inferior. Use
pid_t. Use ptid_get_pid instead of PIDGET.
(inf_ptrace_kill): Call waitpid instead of wait.
(inf_ptrace_resume): Use pid_t. Use ptid_get_pid instead of
PIDGET.
(inf_ptrace_wait): Use waitpid instead wait. Use pid_t. Don't
call target_has_exited or target_thread_alive. Properly ignore
terminated detached child processes.
(inf_ptrace_has_exited): Remove function.
(inf_ptrace_xfer_partial): Use pid_t. Use ptid_get_pid instead of
PIDGET. Use gdb_byte instead of `unsigned char'.
(inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET.
(inf_ptrace_pid_to_str): Remove function.
(inf_ptrace_target): Use inf_ptrace_kill instead of
inf_ptrace_kill_inferior. Use normal_pid_to_str instead of
inf_ptrace_pid_to_str. Don't set to_has_exited.
(inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat
long lines.
2005-07-25 20:42:29 +00:00
Mark Kettenis
c7c14b96ad
* inf-ptrace.c: Reorder functions.
...
(inf_ptrace_open, inf_ptrace_reported_exec_events_per_call)
(inf_ptrace_can_run, inf_ptrace_post_attach): Removed.
(inf_ptrace_target): Don't set to_open,
to_reported_exec_events_per_call, to_can_run, to_post_attach,
to_stratum, to_has_all_memory, to_has_memory, to_has_stack,
to_has_registers, to_has_execution, to_magic. Reorder remaining
initializations.
2005-07-25 20:19:37 +00:00
H.J. Lu
3b22753a67
bfd/
...
2005-07-25 Jan Hubicka <jh@suse.cz>
H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (_bfd_elf_large_com_section): New.
* elf.c (_bfd_elf_large_com_section): New. Defined.
* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New.
(elf64_x86_64_elf_section_from_bfd_section): New.
(elf64_x86_64_symbol_processing): New.
(elf64_x86_64_common_definition): New.
(elf64_x86_64_common_section_index): New.
(elf64_x86_64_common_section): New.
(elf64_x86_64_merge_symbol): New.
(elf64_x86_64_additional_program_headers): New.
(elf64_x86_64_special_sections): New.
(elf_backend_section_from_bfd_section): New. Defined.
(elf_backend_add_symbol_hook): Likewise.
(elf_backend_common_section_index): Likewise.
(elf_backend_common_section): Likewise.
(elf_backend_common_definition): Likewise.
(elf_backend_merge_symbol): Likewise.
(elf_backend_special_sections): Likewise.
(elf_backend_additional_program_headers): Likewise.
binutils/
2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_relocations): Handle SHN_X86_64_LCOMMON.
(get_symbol_index_type): Likewise.
(get_elf_section_flags): Handle SHF_X86_64_LARGE.
gas/
2005-07-25 Jan Hubicka <jh@suse.cz>
H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
defined.
(elf_com_section_ptr): New.
(elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
(elf_common_parse): Make it global. Use elf_com_section_ptr
instead of bfd_com_section_ptr.
(obj_elf_change_section): Handle x86-64 large bss sections.
* config/obj-elf.h (elf_com_section_ptr): New.
(elf_common_parse): New.
* config/tc-i386.c (handle_large_common): New.
(md_pseudo_table): Add "largecomm".
(x86_64_section_letter): New.
(x86_64_section_word): New.
* config/tc-i386.h (x86_64_section_word): New.
(x86_64_section_letter): New.
(md_elf_section_letter): New. Defined.
(md_elf_section_word): Likewise.
include/elf/
2005-07-25 Jan Hubicka <jh@suse.cz>
* x86-64.h (SHN_X86_64_LCOMMON): New.
(SHF_X86_64_LARGE): New.
ld/
2005-07-25 Jan Hubicka <jh@suse.cz>
H.J. Lu <hongjiu.lu@intel.com>
* emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
* scripttempl/elf.sc: Updated for large section support.
2005-07-25 15:41:08 +00:00
H.J. Lu
a4d8e49b50
2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (elf_backend_data): Add common_definition,
common_section_index, common_section, and merge_symbol.
(_bfd_elf_common_definition): New.
(_bfd_elf_common_section_index): New.
(_bfd_elf_common_section): New.
* elf.c (elf_fake_sections): Don't clear sh_flags.
* elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
if it is available.
(is_global_data_symbol_definition): Call backend
common_definition instead of checking SHN_COMMON.
(elf_link_add_object_symbols): Likewise.
(elf_link_output_extsym): Call backend common_section_index
for common section index.
(_bfd_elf_common_definition): New.
(_bfd_elf_common_section_index): New.
(_bfd_elf_common_section): New.
* elfxx-target.h (elf_backend_common_definition): New.
(elf_backend_common_section_index): New.
(elf_backend_common_section): New.
(elf_backend_merge_symbol): New.
(elfNN_bed): Initialize common_definition, common_section_index,
common_section, and merge_symbol.
* section.c (BFD_FAKE_SECTION): New.
(STD_SECTION): Use it.
* bfd-in2.h: Regenerated.
2005-07-25 15:35:37 +00:00
Mark Mitchell
40afd87930
Clarify ANSI, not POSIX, terminal escapes in ChangeLog
2005-07-25 15:13:33 +00:00
Mark Mitchell
fd8be987f8
* input.c (rl_getc): Use getch to read console input on
...
Windows.
* readline.c (bind_arrow_keys_internal): Translate
Windows keysequences into POSIX key sequences.
* rldefs.h (NO_TTY_DRIVER): Define on MinGW.
* rltty.c: Conditionalize on NO_TTY_DRIVER throughout.
2005-07-25 15:09:31 +00:00
Mark Mitchell
7ef34f2cde
* configure.ac: On MinGW, do not require a termcap library, and
...
use win32-termcap.c.
* configure: Regenerated.
* win32-termcap.c: New file.
2005-07-25 15:08:41 +00:00
Alan Modra
314c531dba
daily update
2005-07-25 00:00:09 +00:00
gdbadmin
47f7a80ea0
*** empty log message ***
2005-07-25 00:00:02 +00:00
Mark Mitchell
056d764617
* ser-tcp.c (close): Define as a function-like macro on MinGW.
2005-07-24 23:02:41 +00:00
Daniel Jacobowitz
99356e9020
* chew.c: Include <string.h>.
2005-07-24 16:57:42 +00:00
Paolo Bonzini
b73aa40604
2005-07-24 Paolo Bonzini <bonzini@gnu.org>
...
* Makefile.tpl: Wrap install between unstage and stage
* Makefile.in: Regenerate.
2005-07-24 13:57:01 +00:00
Alan Modra
12fc67c63b
daily update
2005-07-24 00:00:07 +00:00
gdbadmin
565b98c91a
*** empty log message ***
2005-07-24 00:00:04 +00:00
H.J. Lu
58ac56d0c8
2005-07-23 Olaf Hering <olh@suse.de>
...
* elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
callback.
2005-07-23 15:42:51 +00:00
DJ Delorie
55060c0b16
merge from gcc
2005-07-23 15:17:18 +00:00
Alan Modra
dbb467de43
daily update
2005-07-23 00:00:06 +00:00
gdbadmin
8988f097ff
*** empty log message ***
2005-07-23 00:00:04 +00:00
DJ Delorie
d4ad1cbf1d
* chew.c: Include stdlib.h.
2005-07-22 23:54:56 +00:00
Kazu Hirata
d8bacf76e8
* chew.c: Don't include sysdep.h.
2005-07-22 18:16:17 +00:00
Nick Clifton
9f971fcbd4
Remove special case handling for rtems targets that are sufficiently handled by
...
the default rtems targets.
2005-07-22 10:34:30 +00:00
Nick Clifton
a9b7b1745d
(m32r_elf_check_relocs): Fix pc count for R_M32R_REL32.
2005-07-22 10:27:44 +00:00
DJ Delorie
6038baea6c
merge from gcc
2005-07-22 04:28:52 +00:00
DJ Delorie
c750388a85
merge from gcc
2005-07-22 03:26:05 +00:00
DJ Delorie
a4e5c0d804
merge from gcc
2005-07-22 03:16:33 +00:00