Ian Lance Taylor
497897f98c
* i386.cc (Target_i386::Relocate::relocate_tls): Set dynamic type
...
for TLS_GOTDESC and TLS_DESC_CALL. Only optimize TLS_LDO_32 if we
know the dynamic type.
* x86_64.cc (Target_x86_64::Relocate): Add saw_tls_block_reloc_
field. Initialize it in constructor.
(Target_x86_64::Relocate::relocate_tls): Record that we saw a TLS
block reloc for TLSGD, GOTPC32_TLSDESC, TLSDESC_CALL, and TLSLD.
Only optimize DTPOFF32 and DTPOFF64 if we have seen a TLS block
reloc.
2008-05-16 20:44:22 +00:00
Pedro Alves
7c0d47a533
* NEWS: Mention new DICOS x86 target configuration.
2008-05-16 15:54:08 +00:00
Ian Lance Taylor
a984ee1d25
* output.cc (Output_reloc::get_address): Change return type to
...
Elf_Addr.
* output.h (class Output_reloc): Update get_address declaration.
* x86_64.cc (Output_data_plt_x86_64::do_write): Use 64-bit types
for section addresses.
2008-05-16 15:27:49 +00:00
Ulrich Weigand
907fc20268
gdb/
...
2008-05-15 Pedro Alves <pedro@codesourcery.com>
Ulrich Weigand <uweigand@de.ibm.com>
* minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
* symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
* symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
use it instead of ginfo->value.address. Look up minimal symbol by
address and name. Assume OBJFILE is non-NULL.
(fixup_symbol_section): Ensure we always have an objfile to look
into. Extract and pass to fixup_section the symbol's address that
will match the minimal symbol's address.
(fixup_psymbol_section): Likewise.
(find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
overlays and the addrmap returned the wrong section.
* dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
calling fixup_symbol_section.
gdb/testsuite/
2008-05-15 Pedro Alves <pedro@codesourcery.com>
* gdb.base/fixsection.exp: New file.
* gdb.base/fixsection0.c: New file.
* gdb.base/fixsection1.c: New file.
2008-05-16 12:58:49 +00:00
Ulrich Weigand
42848c9656
* minsyms.c: Include "target.h".
...
(find_solib_trampoline_target): Handle minimal symbols pointing
to function descriptors as well.
* Makefile.in (minsyms.o): Update dependencies.
* ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
(ppc64_standard_linkage1): ... this. Fix optional instructions.
(PPC64_STANDARD_LINKAGE_LEN): Rename to ...
(PPC64_STANDARD_LINKAGE1_LEN): ... this.
(ppc64_standard_linkage2, ppc64_standard_linkage3): New.
(PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
(ppc64_standard_linkage_target): Rename to ...
(ppc64_standard_linkage1_target): ... this.
(ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
(ppc64_skip_trampoline_code): Support three variants of standard
linkage stubs. Call find_solib_trampoline_target to handle
glink stubs.
2008-05-16 12:51:21 +00:00
Ulrich Weigand
74d1f0631a
* ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
...
ppc64_sysv_abi_adjust_breakpoint_address.
* ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
* ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2008-05-16 12:49:47 +00:00
Ulrich Weigand
8526f32824
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
...
(ppc_linux_init_abi): Install find_solib_trampoline_target instead
of ppc_linux_skip_trampoline_code.
2008-05-16 12:48:59 +00:00
Ulrich Weigand
e8f972703a
* gdb.base/annota1.exp: Accept printf@... in place of printf.
...
* gdb.base/annota3.exp: Likewise.
2008-05-16 12:48:08 +00:00
Daniel Jacobowitz
03c2f9e642
* src-release (DEVO_SUPPORT): Add ChangeLog, MAINTAINERS,
...
README-maintainer-mode, lt~obsolete.m4, ltgcc.m4, depcomp,
mkdep, and compile. Update comments.
(ETC_SUPPORT): Add ChangeLog and update comments.
2008-05-16 12:34:38 +00:00
Daniel Jacobowitz
ba2b1c567f
* gdbarch.sh: Delete dwarf_reg_to_regnum.
...
* gdbarch.c, gdbarch.h: Regenerated.
* amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
* gdbint.texinfo (Target Conditionals): Delete entry for
gdbarch_dwarf_reg_to_regnum.
2008-05-16 00:27:24 +00:00
Alan Modra
3560d16246
daily update
2008-05-16 00:00:05 +00:00
gdbadmin
33c1beb4c1
*** empty log message ***
2008-05-16 00:00:03 +00:00
Pedro Alves
4fdebdd056
* linux-nat.c (trap_ptid): Delete.
...
(linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
Adjust.
* linux-thread-db.c (thread_db_wait): Adjust.
2008-05-15 20:11:48 +00:00
Joel Brobecker
bc882aa937
* linespec.c (decode_line_1): Fix a couple of comments.
2008-05-15 19:24:46 +00:00
Nick Clifton
906e58cab5
bfd/
...
* elf32-arm.c (THM2_MAX_FWD_BRANCH_OFFSET): Define.
(THM2_MAX_BWD_BRANCH_OFFSET): Define.
(ARM_MAX_FWD_BRANCH_OFFSET): Define.
(ARM_MAX_BWD_BRANCH_OFFSET): Define.
(THM_MAX_FWD_BRANCH_OFFSET): Define.
(THM_MAX_BWD_BRANCH_OFFSET): Define.
(arm_long_branch_stub): Define.
(arm_pic_long_branch_stub): Define.
(arm_thumb_v4t_long_branch_stub): Define.
(arm_thumb_thumb_long_branch_stub): Define.
(arm_thumb_arm_v4t_long_branch_stub): Define.
(STUB_SUFFIX): Define.
(elf32_arm_stub_type): Define.
(elf32_arm_stub_hash_entry): Define.
(elf32_arm_link_hash_entry): Add stub_cache field.
(arm_stub_hash_lookup): Define.
(elf32_arm_link_hash_table): Add stub_hash_table, stub_bfd,
add_stub_section, layout_sections_again, stub_group, bfd_count,
top_index, input_list fields.
(elf32_arm_link_hash_newfunc): Init new field.
(stub_hash_newfunc): New function.
(elf32_arm_link_hash_table_create): Init stub_hash_table.
(elf32_arm_hash_table_free): New function.
(arm_type_of_stub): New function.
(elf32_arm_stub_name): New function.
(elf32_arm_get_stub_entry): New function.
(elf32_arm_stub_add_mapping_symbol): New function.
(elf32_arm_add_stub): New function.
(arm_build_one_stub): New function.
(arm_size_one_stub): New function.
(elf32_arm_setup_section_lists): New function.
(elf32_arm_next_input_section): New function.
(group_sections): New function.
(elf32_arm_size_stubs): New function.
(elf32_arm_build_stubs): New function.
(bfd_elf32_arm_add_glue_sections_to_bfd): Skip stub sections.
(bfd_elf32_arm_process_before_allocation): No longer handle
R_ARM_CALL and R_ARM_THM_CALL.
(using_thumb_only): New function.
(elf32_arm_final_link_relocate): Redirect calls to stub if range
exceeds encoding capabilities.
(bfd_elf32_bfd_link_hash_table_free): Define.
* bfd-in.h (R_ARM_max): Fix value to 130.
(elf32_arm_setup_section_lists): Protype.
(elf32_arm_next_input_section): Protype.
(elf32_arm_size_stubs): Protype.
(elf32_arm_build_stubs): Protype.
ld/
* emultempl/armelf.em (build_section_lists): New function.
(stub_file): Define.
(need_laying_out): Define.
(group_size): Define.
(hook_stub_info): Define.
(hook_in_stub): New function.
(elf32_arm_add_stub_section): New function.
(gldarm_layout_sections_again): New function.
(gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
stubs for long calls if needed.
(arm_elf_create_output_section_statements): create stub_file bfd.
(arm_for_each_input_file_wrapper): New function.
(arm_lang_for_each_input_file): New function.
(lang_for_each_input_file): Define.
(PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
(PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
(PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
(PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
(LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
* ld/lang.c (print_input_statement): Skip if bfd has
BFD_LINKER_CREATED.
ld/testsuite
* ld-arm/arm-elf.exp (armelftests): Add farcall-arm-arm,
farcall-arm-arm-pic-veneer, farcall-arm-arm-be8 farcall-arm-thumb,
farcall-arm-thumb-blx, farcall-arm-thumb-pic-veneer,
farcall-arm-thumb-blx-pic-veneer, farcall-thumb-thumb,
farcall-thumb-thumb-pic-veneer, farcall-thumb-thumb-blx,
farcall-thumb-thumb-m, farcall-thumb-thumb-m-pic-veneer,
farcall-thumb-thumb-blx-pic-veneer, farcall-thumb-arm,
farcall-thumb-arm-pic-veneer, farcall-thumb-arm-blx,
farcall-thumb-arm-blx-pic-veneer.
Change thumb2-bl-as-thumb1-bad, thumb2-bl-bad.
* ld-arm/thumb2-bl-as-thumb1-bad.d: Reflects farcall stub
generation.
* ld-arm/thumb2-bl-bad.d: Likewise.
* ld-arm/thumb2-bl-as-thumb1-bad.s: Update comments.
* ld-arm/thumb2-bl-bad.s: Likewise.
2008-05-15 17:00:15 +00:00
Alan Modra
83b94be541
* dbxread.c: Formatting.
...
(INTERNALIZE_SYMBOL): Init n_other.
(set_namestring): Take pointer to nlist arg rather than struct
copy. Update all callers.
2008-05-15 13:23:34 +00:00
Andreas Schwab
87669130a4
(dwarf2loc.o): Remove $(addrmap_h).
...
(dwarf2read.o): Add $(addrmap_h).
2008-05-15 09:38:40 +00:00
gdbadmin
90c4def428
*** empty log message ***
2008-05-15 00:00:33 +00:00
Alan Modra
13aeb833a1
daily update
2008-05-15 00:00:05 +00:00
Ulrich Weigand
00d5f93a89
* ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
...
(ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
to handle ppc32 PLT entries.
(ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
only on ppc64.
2008-05-14 18:28:59 +00:00
Daniel Jacobowitz
2eaf8d2a14
* elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
...
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
(lookup_minimal_symbol_by_pc_section): Use
lookup_minimal_symbol_by_pc_section_1.
(lookup_solib_trampoline_symbol_by_pc): Likewise.
2008-05-14 18:14:34 +00:00
Ulrich Weigand
86a4952b14
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls.
...
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
2008-05-14 16:00:38 +00:00
Alan Modra
8944f3c277
update dependencies
2008-05-14 06:45:42 +00:00
Joel Brobecker
20c625669c
* findcmd.c: Add #include "gdb_stdint.h".
...
* Makefile.in (findcmd.o): Update dependencies.
2008-05-14 04:23:03 +00:00
Alan Modra
468392fb66
* elf32-ppc.c (section_covers_vma): New function.
...
(ppc_elf_get_synthetic_symtab): New function.
(bfd_elf32_get_synthetic_symtab): Define.
* elf64-ppc.c (section_covers_vma): New function.
(ppc64_elf_get_synthetic_symtab): Generate sym@plt on glink branch
table entries, and __glink_PLTresolve on resolver stub.
(ppc64_elf_build_stubs): Rename __glink sym to __glink_PLTresolve.
2008-05-14 02:21:19 +00:00
gdbadmin
b091ad0577
*** empty log message ***
2008-05-14 00:00:33 +00:00
Alan Modra
1650e108ba
daily update
2008-05-14 00:00:05 +00:00
Nathan Froyd
ac0bb574ab
* gdb.base/watch_thread_num.exp: Don't run tests that require
...
watchpoints if the target doesn't support them.
2008-05-13 21:17:18 +00:00
gdbadmin
10148622f3
*** empty log message ***
2008-05-13 00:00:33 +00:00
Alan Modra
e4c1685bab
daily update
2008-05-13 00:00:05 +00:00
Doug Evans
6fadd07a48
* lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.
2008-05-12 17:25:28 +00:00
Paolo Bonzini
1f01c90ef3
2008-05-12 Samuel Tardieu <sam@rfc1149.net>
...
Paolo Bonzini <bonzini@gnu.org>
PR ada/36001
* acx.m4: Add optional parameter to ACX_PROG_GNAT.
2008-05-12 16:25:40 +00:00
Alan Modra
1d483afedd
PR 6443
...
* elf32-ppc.c (MUST_BE_DYN_RELOC): Delete.
(must_be_dyn_reloc): New function.
(ppc_elf_check_relocs): Don't set DF_STATIC_TLS for tprel relocs
in pies.
(ppc_elf_tls_optimize): Optimise pies.
(ppc_elf_relocate_section): Use a section symbol rather than no
symbol if possible for LD->IE TLS sequence, but don't error if
we must use no symbol.
* elf64-ppc.c (MUST_BE_DYN_RELOC): As for elf32-ppc.c.
(must_be_dyn_reloc): Likewise.
(ppc64_elf_check_relocs): Likewise.
(ppc64_elf_tls_optimize): Likewise.
(ppc64_elf_relocate_section): Likewise.
2008-05-12 12:47:47 +00:00
Alan Modra
cef1fe971f
* embedspu.sh: Test for presence of ._ea by looking at section
...
table rather than looking at relocs. Correct toe_addr substitution.
2008-05-12 12:23:13 +00:00
Alan Modra
cc5ca406f9
* elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym.
2008-05-12 12:22:53 +00:00
Ian Lance Taylor
4538db8bae
* src-release (BINUTILS_SUPPORT_DIRS): Add elfcpp and gold.
2008-05-12 04:12:15 +00:00
gdbadmin
e170b22b34
*** empty log message ***
2008-05-12 00:00:33 +00:00
Alan Modra
01cc54cfcd
daily update
2008-05-12 00:00:06 +00:00
David S. Miller
de0c3d9d6e
* sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
...
long double size override, Linux does use 128-bit now.
2008-05-11 22:43:53 +00:00
David S. Miller
e8467b5ac5
* sparc-linux-tdep.c (PSR_SYSCALL): Define.
...
(sparc_linux_write_pc): New function.
(sparc32_linux_init_abi): Register it.
* sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
(sparc64_linux_write_pc): New function.
(sparc64_linux_init_abi): Register it.
2008-05-11 22:10:30 +00:00
David S. Miller
87a7da84fb
* sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
...
dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2008-05-11 20:03:26 +00:00
Ulrich Weigand
8a4c2d245d
* rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
...
and info.tdep_info before calling gdbarch_init_osabi.
2008-05-11 15:29:47 +00:00
gdbadmin
0c0b707645
*** empty log message ***
2008-05-11 00:00:34 +00:00
Alan Modra
efd14abde9
daily update
2008-05-11 00:00:06 +00:00
Alan Modra
536d0ff40e
* elfcore.h (elf_core_file_p): Warn about core truncation.
2008-05-10 01:58:17 +00:00
Alan Modra
14a720a133
daily update
2008-05-10 00:00:06 +00:00
gdbadmin
be9267279a
*** empty log message ***
2008-05-10 00:00:04 +00:00
Joel Brobecker
6e9a4a305b
* gdb.ada/assign_1.exp: New testcase.
2008-05-09 23:51:40 +00:00
Joel Brobecker
003f381353
* ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
...
the type of the right hand side of the assignment to the type
of the left hand side if the left hand side is a convenience
variable.
2008-05-09 23:50:41 +00:00
Catherine Moore
35903be00c
gas/
...
* config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
with non-MIPS16 relocs.
gas/testsuite/
* gas/mips/mips16-hilo-match.s: New test.
* gas/mips/mip16-hilo-match.d: New test output.Index: config/tc-mips.c
2008-05-09 19:28:47 +00:00