Jakub Jelinek
9b8ae42e78
* dw2gencfi.c (struct fde_entry): Add per_encoding, lsda_encoding,
...
personality and lsda.
(struct cie_entry): Add per_encoding, lsda_encoding and personality.
(alloc_fde_entry): Initialize per_encoding and lsda_encoding.
(cfi_pseudo_table): Handle .cfi_personality and .cfi_lsda.
(dot_cfi_personality, dot_cfi_lsda, encoding_size): New functions.
(output_cie): Output personality including its encoding and LSDA encoding.
(output_fde): Output LSDA.
(select_cie_for_fde): Don't share CIE if personality, its encoding or
LSDA encoding are different. Copy the 3 fields from fde_entry to
cie_entry.
* doc/as.texinfo (.cfi_personality, .cfi_lsda): Document.
* gas/cfi/cfi-common-6.d: New test.
* gas/cfi/cfi-common-6.s: New.
* gas/cfi/cfi.exp: Add cfi-common-6 test.
2006-11-03 07:29:37 +00:00
Jakub Jelinek
ae424f8246
* subsegs.h (struct frchain): Add frch_cfi_data field.
...
* dw2gencfi.c: Include subsegs.h.
(cur_fde_data, last_address, cur_cfa_offset, cfa_save_stack): Removed.
(struct frch_cfi_data): New type.
(unused_cfi_data): New variable.
(alloc_fde_entry): Move cur_fde_data, last_address, cur_cfa_offset
and cfa_save_stack static vars into a structure pointed from
each frchain.
(alloc_cfi_insn_data, cfi_new_fde, cfi_end_fde, cfi_set_return_column,
cfi_add_advance_loc, cfi_add_CFA_def_cfa, cfi_add_CFA_def_cfa_offset,
cfi_add_CFA_remember_state, cfi_add_CFA_restore_state, dot_cfi,
dot_cfi_escape, dot_cfi_startproc, dot_cfi_endproc, cfi_finish):
Likewise.
* gas/cfi/cfi-common-5.d: New test.
* gas/cfi/cfi-common-5.s: New.
* gas/cfi/cfi.exp: Add cfi-common-5 test.
2006-11-03 07:27:39 +00:00
Daniel Jacobowitz
b1e24c0220
bfd/
...
* libbfd-in.h (_bfd_clear_contents): New prototype.
* reloc.c (_bfd_clear_contents): New.
* libbfd.h: Regenerated.
* elf32-arm.c (elf32_arm_final_link_relocate): Use
_bfd_clear_contents.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to
zero for discarded symbols.
* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
ld/testsuite/
* ld-discard/zero-rel.d, ld-discard/zero-rel.s: New files.
2006-11-03 00:58:10 +00:00
gdbadmin
5c38167b2c
*** empty log message ***
2006-11-03 00:00:33 +00:00
Alan Modra
22d55fa78f
daily update
2006-11-02 22:59:00 +00:00
Daniel Jacobowitz
d1e50f8a7e
* config/tc-h8300.c (build_bytes): Fix const warning.
2006-11-02 21:39:56 +00:00
Daniel Jacobowitz
31ffec4870
* dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
...
(load_full_comp_unit): Take OBJFILE argument and use it.
(dwarf2_build_psymtabs_hard): Skip partial units.
(process_queue): Pass OBJFILE to load_full_comp_unit. Check
type_hash for read in CUs. Test psymtab for NULL.
2006-11-02 21:34:07 +00:00
Daniel Jacobowitz
625b50039a
* arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5.
2006-11-02 21:32:22 +00:00
Thiemo Seufer
b9d58d7191
[ bfd/ChangeLog ]
...
* elf-bfd.h (local_call_stubs): New member.
* elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros.
(mips_elf_calculate_relocation): Handle local mips16 call stubs.
(mips16_stub_section_p): Rename from mips_elf_stub_section_p, use
the new stub macros.
(_bfd_mips_elf_check_relocs): Handle call stubs for code which
mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark
used stubs with SEC_KEEP. Use the new stub macros.
[ gas/testsuite/ChangeLog ]
* gas/mips/mips16-intermix.d, gas/mips/mips16-intermix.s: New
testcase.
* gas/mips/mips.exp: Run new testcase.
[ ld/testsuite/ChangeLog ]
* ld-mips-elf/mips16-intermix-1.s, ld-mips-elf/mips16-intermix-2.s,
ld-mips-elf/mips16-intermix.d: New testcase.
* ld-mips-elf/mips-elf.exp (mips16_intermix_test): Run new testcases.
2006-11-02 15:20:31 +00:00
gdbadmin
325a4b61ce
*** empty log message ***
2006-11-02 00:00:02 +00:00
Alan Modra
15d2668a28
daily update
2006-11-01 22:58:59 +00:00
Daniel Jacobowitz
74b08499dd
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Correct
...
check for PLT usage.
2006-11-01 20:00:25 +00:00
Daniel Jacobowitz
3110dbc9c3
* elfxx-mips.c (mips_elf_merge_gots): Always use maxcnt.
2006-11-01 16:07:46 +00:00
Nick Clifton
06d2da930d
* tc-score.c (do16_rdrs): Handle not! instruction especially.
...
* score-opc.h (score_opcodes): Delete modifier '0x'.
* gas/score/rD_rA.d: Correct not! and not.c instruction disassembly.
* gas/score/b.d: Correct b! and b instruction disassembly.
2006-11-01 10:29:49 +00:00
Christopher Faylor
e916811ac6
* pe-dll.c (autofilter_entry_type): Change name to const.
...
(pe_details_type) : Change target_name, object_target and autofilter_symbollist
to const.
(autofilter_symbollist_generic): Change to const.
(autofilter_symbollist_i386, pe_detail_list, pe_details, autofilter_liblist,
autofilter_objlist autofilter_symbolprefixlist, autofilter_symbolsuffixlist):
Likewise.
(is_import): Fix indentation.
(auto_export): Change afptr to const. Move name declaration to beginning of
scope.
(make_tail): Clear undefined byte.
(jmp_ix86_bytes, jmp_sh_bytes, jmp_mips_bytes, jmp_arm_bytes): Change to const.
(make_one): Change jmp_bytes to const. Make idata$6 member size arithmetic
explicit and add comment.
2006-11-01 00:48:25 +00:00
gdbadmin
fe2dce6741
*** empty log message ***
2006-11-01 00:00:33 +00:00
Alan Modra
babcc35ed1
daily update
2006-10-31 22:59:01 +00:00
Eli Zaretskii
1c56eb0e62
* stabs.texinfo (Macro define and undefine): New node describing
...
stabs for #define and #undef.
2006-10-31 22:38:27 +00:00
Paul Brook
3ba674705b
2006-10-31 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (arm_adjust_symtab): Don't use STT_ARM_16BIT
for EABIv4.
2006-10-31 20:33:40 +00:00
Paul Brook
2087ad8497
2006-10-30 Paul Brook <paul@codesourcery.com>
...
binutils/
* objdump.c (disassemble_section): Set info->symtab_pos.
(disassemble_data): Set info->symtab and info->symtab_size.
include/
* dis-asm.h (disassemble_info): Add symtab, symtab_pos and
symtab_size.
opcodes/
* arm-dis.c (last_is_thumb, last_mapping_sym, last_mapping_addr): New.
(get_sym_code_type): New function.
(print_insn): Search for mapping symbols.
2006-10-31 20:21:57 +00:00
Paul Brook
7a1d4c3893
2006-10-31 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (object_arch): New variable.
(s_arm_object_arch): New function.
(md_pseudo_table): Add object_arch.
(aeabi_set_public_attributes): Obey object_arch.
* doc/c-arm.texi: Document .object_arch.
2006-10-31 20:16:33 +00:00
Vladimir Prus
6e381ba0b0
Improve "help all".
2006-10-31 11:45:41 +00:00
Nick Clifton
b138abaa40
* tc-score.c (data_op2): Check invalid operands.
...
(my_get_expression): Const operand of some instructions can not be symbol in assembly.
(get_insn_class_from_type): Handle instruction type Insn_internal.
(do_macro_ldst_label): Modify inst.type.
(Insn_PIC): Delete.
* score-inst.h (enum score_insn_type): Add Insn_internal.
* tc-score.c (data_op2): The immediate value in lw is 15 bit signed.
* score-dis.c (print_insn): Correct the error code to print correct PCE instruction disassembly.
2006-10-31 09:54:41 +00:00
Alan Modra
a39f33461a
* elf.c (elfcore_write_note): Pad note descriptor to 4-byte
...
boundary. Tidy. Comment.
2006-10-31 02:36:18 +00:00
gdbadmin
ee9e139d63
*** empty log message ***
2006-10-31 00:00:03 +00:00
H.J. Lu
c0f0068602
bfd/
...
2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3111
* elf-bfd.h (elf_obj_tdata): Add symbuf.
(_bfd_elf_section_already_linked): Add struct bfd_link_info *.
(_bfd_elf_check_kept_section): Likewise.
(bfd_elf_match_symbols_in_sections): Likewise.
* elf.c (assign_section_numbers): Updated to add
struct bfd_link_info *.
(bfd_elf_match_symbols_in_sections): Updated. Cache symbol
buffer if info->reduce_memory_overheads is false.
* elflink.c (match_group_member): Updated to add
struct bfd_link_info *.
(_bfd_elf_check_kept_section): Likewise.
(elf_link_input_bfd): Likewise.
(_bfd_elf_section_already_linked): Likewise.
(bfd_elf_final_link): Free symbol buffer if
info->reduce_memory_overheads is false.
* libbfd-in.h (_bfd_nolink_section_already_linked): Add
struct bfd_link_info *.
(_bfd_generic_section_already_linked): Likewise.
* libbfd.h: Regenerated.
* linker.c (bfd_section_already_linked): Add
struct bfd_link_info *.
(_bfd_generic_section_already_linked): Likewise.
* targets.c (bfd_target): Add struct bfd_link_info * to
_section_already_linked.
* bfd-in2.h: Regenerated.
include/
2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3111
* bfdlink.h (bfd_link_info): Add reduce_memory_overheads.
ld/
2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3111
* ld.h (args_type): Remove reduce_memory_overheads.
* ldlang.c (lang_map): Updated.
(section_already_linked): Likewise.
(print_input_section): Likewise.
* ldmain.c (main): Likewise.
* lexsup.c (parse_args): Likewise.
2006-10-30 23:25:51 +00:00
Alan Modra
5147198ffd
daily update
2006-10-30 22:59:02 +00:00
Alan Modra
b52149c8e0
* bfd-in2.h: Regenerate.
2006-10-30 07:44:11 +00:00
Alan Modra
ffda70fc2e
* bfd.c (bfd_error_type): Add bfd_error_on_input.
...
(input_bfd, input_error): New static vars.
(bfd_set_error): Handle bfd_error_on_input.
(bfd_errmsg): Likewise.
(bfd_perror): Simplify.
* archive.c (_bfd_write_archive_contents): Report errors on input.
2006-10-30 07:41:17 +00:00
Randolph Chung
406601a1e3
2006-10-29 Randolph Chung <tausq@debian.org>
...
* gas/cfi/cfi.exp [hppa*-linux*]: Run hppa CFI test.
* gas/cfi/cfi-hppa-1.s: New file.
* gas/cfi/cfi-hppa-1.h: New file.
2006-10-30 01:10:46 +00:00
Randolph Chung
c79b7c30b4
2006-10-29 Randolph Chung <tausq@debian.org>
...
* config/tc-hppa.c (hppa_cfi_frame_initial_instructions)
(hppa_regname_to_dw2regnum): New funcions.
* config/tc-hppa.h [OBJ_ELF] (TARGET_USE_CFIPOP): Define.
(tc_cfi_frame_initial_instructions)
(tc_regname_to_dw2regnum): Define.
(hppa_cfi_frame_initial_instructions)
(hppa_regname_to_dw2regnum): Declare.
(DWARF2_LINE_MIN_INSN_LENGTH, DWARF2_DEFAULT_RETURN_COLUMN)
(DWARF2_CIE_DATA_ALIGNMENT): Define.
2006-10-30 01:09:18 +00:00
Kaz Kojima
3091e75f27
* ld-sh/sh64/abi32.xd, ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd,
...
* ld-sh/sh64/crange1.rd, ld-sh/sh64/crange2.rd,
* ld-sh/sh64/crange3-cmpct.rd, ld-sh/sh64/crange3-media.rd,
* ld-sh/sh64/crange3.rd, ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.xd,
* ld-sh/sh64/shdl32.xd, ld-sh/sh64/shdl64.xd: Update for removal
of empty sections.
2006-10-30 00:48:03 +00:00
gdbadmin
173dd3ae58
*** empty log message ***
2006-10-30 00:00:03 +00:00
Alan Modra
017657f056
* elf.c (elfcore_write_note): Pad to 4-byte boundary.
2006-10-29 23:49:37 +00:00
Alan Modra
b12e747eaf
daily update
2006-10-29 22:59:02 +00:00
H.J. Lu
13a09c7cb4
2006-10-29 H.J. Lu <hongjiu.lu@intel.com>
...
PR binutils/3384
* configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
* configure: Regenerated.
* config.in: Likewise.
* readelf.c: Include <limits.h> and <sys/param.h> for PATH_MAX.
(program_interpreter): Allocate PATH_MAX bytes instead of 64.
(process_program_headers): Don't assume that program interpreter
is shorter than 64 characters.
2006-10-29 19:18:47 +00:00
H.J. Lu
f8eae8b28b
2006-10-29 H.J. Lu <hongjiu.lu@intel.com>
...
PR binutils/3384
* configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
* configure: Regenerated.
* config.in: Likewise.
* readelf.c: Include <limits.h> and <sys/param.h> for PATH_MAX.
(program_interpreter): Allocate PATH_MAX bytes instead of 64.
(process_program_headers): Don't assume that program interpreter
is shorter than 64 characters.
2006-10-29 19:07:54 +00:00
Nick Clifton
e2785c4472
* config/tc-spu.c (md_assemble): Cast printf string size parameter
...
to int in order to avoid a compiler warning.
2006-10-29 18:18:34 +00:00
Christopher Faylor
4e98625713
* pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.
2006-10-29 17:14:37 +00:00
gdbadmin
c9b8f8fd74
*** empty log message ***
2006-10-29 00:00:34 +00:00
Alan Modra
e125309b4a
daily update
2006-10-28 22:59:03 +00:00
Richard Sandiford
165b93e775
include/elf/
...
* mips.h (R_MIPS_GLOB_DAT): Define
(R_MIPS_max): Bump by 1.
bfd/
* elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
* elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
(elf_mips_howto_table_rela): Likewise.
* elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
(mips_elf64_howto_table_rela): Likewise.
2006-10-28 10:13:49 +00:00
gdbadmin
691e0f4f61
*** empty log message ***
2006-10-28 00:00:03 +00:00
Alan Modra
b2f4b03332
daily update
2006-10-27 23:59:04 +00:00
Jeff Johnston
7de05dd52e
2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
...
* COPYING.NEWLIB: Add spu license.
* COPYING.LIBGLOSS: Ditto.
2006-10-27 23:00:35 +00:00
Jeff Johnston
44330a94f1
2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
...
* COPYING.NEWLIB: Add spu license.
2006-10-27 22:57:03 +00:00
Andreas Schwab
f73adfeb8b
* gdbcmd.h (detachlist): Declare.
...
* infcmd.c (_initialize_infcmd): Define "detach" as prefix
command.
* linux-fork.c (_initialize_linux_fork): Rename
"detach-checkpoint" to "detach checkpoint" and "detach-fork" to
"detach fork".
* cli/cli-cmds.c (detachlist): Define.
(init_cmd_lists): Initialize it.
* cli/cli-cmds.h (detachlist): Declare.
doc/:
* gdb.texinfo (Processes): Rename "detach-fork" to "detach fork".
testsuite/:
* gdb.base/multi-forks.exp: Use "detach fork" instead of
"detach-fork".
2006-10-27 22:23:21 +00:00
Andrew Stubbs
86157c2070
2006-10-27 Andrew Stubbs <andrew.stubbs@st.com>
...
* config/tc-sh.c (md_assemble): Define size of branches.
2006-10-27 09:34:45 +00:00
H.J. Lu
d270463e93
2006-10-26 H.J. Lu <hongjiu.lu@intel.com>
...
* elf.c (_bfd_elf_init_private_section_data): Assert output
section ELF type instead of check if it is SHT_NULL. Copy
OS/PROC specific flags from input section to output section.
2006-10-27 04:15:50 +00:00
Alan Modra
a14a5de357
bfd/
...
* section.c (SEC_KEEP): Update comment.
* bfd-in2.h: Regenerate.
* elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections.
* merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections.
* stabs.c (_bfd_discard_section_stabs): Likewise.
(_bfd_link_section_stabs): Likewise. Simplify abs_section check.
ld/
* ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP
sections have been discarded.
(lang_do_version_exports_section): Set SEC_KEEP on export section.
* emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning
sections.
2006-10-27 03:22:09 +00:00