Commit Graph

55104 Commits

Author SHA1 Message Date
Daniel Jacobowitz
bd97cb95f8 2007-08-06 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (elf32_arm_link_hash_entry): Add
	plt_maybe_thumb_refcount.
	(elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
	(elf32_arm_copy_indirect_symbol): Ditto.
	(elf32_arm_adjust_dynamic_symbol): Ditto.
	(bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
	(arm_add_to_rel): Ditto.
	(elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
	R_ARM_THM_CALL.  Handle R_ARM_THM_JUMP19 against a PLT stub.
	(elf32_arm_gc_sweep_hook): Call check_use_blx.  Update plt counts
	for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
	(elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
	and R_ARM_THM_JUMP19.
	(allocate_dynrelocs): Use plt_maybe_thumb_refcount.
	(elf32_arm_finish_dynamic_symbol): Ditto.
	(elf32_arm_output_plt_map): Ditto.
2007-08-06 18:47:21 +00:00
Daniel Jacobowitz
c981028a3f * elf.c (rewrite_elf_program_header): Handle sections not sorted
by address.
	(copy_elf_program_header): Likewise.
2007-08-06 18:35:18 +00:00
Nick Clifton
fdca102738 * ld-pe/pe.exp: Special diff file for x86_64-mingw target.
* ld-pe/secrel_64.d: New.
2007-08-06 14:41:51 +00:00
Nick Clifton
880383ca96 * emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.
(gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of shared objects.
* pe-dll.c: (autofilter_symbollist_i386): Define set for amd64 mingw target.
2007-08-06 14:32:08 +00:00
gdbadmin
d0913de2b8 *** empty log message *** 2007-08-06 00:00:33 +00:00
Alan Modra
6278344fb5 daily update 2007-08-06 00:00:05 +00:00
Jim Blandy
b1ddacc73c * macroexp.c (init_buffer): Remove testing code that overrides the
caller's length guess.
(gather_arguments): Use a larger initial size, now that the vector
growth code has been exercised.
2007-08-05 21:41:09 +00:00
Pedro Alves
5d9643bae4 * solib-target.c (solib_target_relocate_section_addresses): Add
orig_delta to addr_high.
2007-08-05 09:57:06 +00:00
Michael Snyder
1ed489bd7c 2007-08-04 Michael Snyder <msnyder@access-company.com>
* remote-fileio.c (remote_fileio_func_write): Memory leak.
2007-08-05 01:04:31 +00:00
Michael Snyder
c1f5197edc 2007-08-04 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (print_one_breakpoint): Off by one error.
2007-08-05 00:43:34 +00:00
Michael Snyder
27e06d3ef0 2007-08-04 Michael Snyder <msnyder@access-company.com>
* tracepoint.c (add_register): Off by one error.
	(stringify_collection_list): Free malloc buffer.
2007-08-05 00:36:53 +00:00
Alan Modra
ef18b5a26a daily update 2007-08-05 00:00:06 +00:00
gdbadmin
0e3b351fa5 *** empty log message *** 2007-08-05 00:00:02 +00:00
H.J. Lu
f7231afc19 2007-08-04 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (xvec_get_elf_backend_data): Add const.

	* elfcode.h (elf_object_p): Use xvec_get_elf_backend_data.
	* elfcore.h (elf_core_file_p): Likewise.
2007-08-04 16:31:00 +00:00
Alan Modra
6612555199 PR 4888
* objcopy.c (setup_section): Do modify section flags for ELF
	STRIP_NONDEBUG (reverting part of 2007-05-30 change).  Prevent
	header rewrite by twiddling input section flags instead.
	Simplify code setting SHT_NOBITS.
2007-08-04 08:26:38 +00:00
Michael Snyder
474d0d0c7a 2007-08-03 Michael Snyder <msnyder@access-company.com>
* mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
	stop memory leak, straighten out cleanups.
2007-08-04 03:00:40 +00:00
Michael Snyder
03b4bca2d7 2007-08-03 Michael Snyder <msnyder@access-company.com>
* jv-lang.c (java_link_class_type): Guard against NULL.
2007-08-04 02:50:16 +00:00
gdbadmin
17e1855042 *** empty log message *** 2007-08-04 00:00:32 +00:00
Alan Modra
49ff476a98 daily update 2007-08-04 00:00:05 +00:00
DJ Delorie
9250f7f0d2 merge from gcc 2007-08-03 19:49:44 +00:00
Jim Wilson
b8deab3780 Fix resource dependency problems for xmpy. 2007-08-03 18:54:22 +00:00
Daniel Jacobowitz
55231b6cd8 * ld-srec/srec.exp: XFAIL for powerpc*-*-*. 2007-08-03 12:53:47 +00:00
Alan Modra
551a778a37 daily update 2007-08-03 00:00:04 +00:00
gdbadmin
f620fdcf3b *** empty log message *** 2007-08-03 00:00:03 +00:00
Michael Snyder
f9780d5b23 2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (create_set_type): Test should only be done within
	the preceeding if block.  Otherwise, variable is uninitialized.
2007-08-02 21:08:12 +00:00
Michael Snyder
423c0af83c 2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (check_typedef): Guard NULL.
2007-08-02 21:01:37 +00:00
H.J. Lu
bd33be6e27 bfd/
2007-08-02  H.J. Lu  <hongjiu.lu@intel.com>

	* coffcode.h (ALIGN_SET): Removed.
	(ELIFALIGN_SET): Likewise.
	(coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
	IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
	IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
	IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.

include/coff/

2007-08-02  H.J. Lu  <hongjiu.lu@intel.com>

	* pe.h (IMAGE_SCN_ALIGN_POWER_BIT_POS): New.
	(IMAGE_SCN_ALIGN_POWER_BIT_MASK): Likewise.
	(IMAGE_SCN_ALIGN_POWER_NUM): Likewise.
	(IMAGE_SCN_ALIGN_POWER_CONST): Likewise.
	(IMAGE_SCN_ALIGN_128BYTES): Likewise.
	(IMAGE_SCN_ALIGN_256BYTES): Likewise.
	(IMAGE_SCN_ALIGN_512BYTES): Likewise.
	(IMAGE_SCN_ALIGN_1024BYTES): Likewise.
	(IMAGE_SCN_ALIGN_2048BYTES): Likewise.
	(IMAGE_SCN_ALIGN_4096BYTES): Likewise.
	(IMAGE_SCN_ALIGN_8192BYTES): Likewise.
	(IMAGE_SCN_ALIGN_1BYTES): Redefined with
	IMAGE_SCN_ALIGN_POWER_CONST.
	(IMAGE_SCN_ALIGN_2BYTES): Likewise.
	(IMAGE_SCN_ALIGN_4BYTES): Likewise.
	(IMAGE_SCN_ALIGN_8BYTES): Likewise.
	(IMAGE_SCN_ALIGN_16BYTES): Likewise.
	(IMAGE_SCN_ALIGN_32BYTES): Likewise.
	(IMAGE_SCN_ALIGN_64BYTES): Likewise.
2007-08-02 16:02:01 +00:00
Michael Snyder
7a3c21c92f 2007-08-01 Michael Snyder <msnyder@access-company.com>
* i386-dis.c (print_insn): Guard against NULL.
2007-08-02 00:40:02 +00:00
Alan Modra
b49412aab8 daily update 2007-08-02 00:00:05 +00:00
gdbadmin
d74ffa39b6 *** empty log message *** 2007-08-02 00:00:03 +00:00
Michael Snyder
f88c79e6bb 2007-08-01 Michael Snyder <msnyder@access-company.com>
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
2007-08-01 20:34:36 +00:00
Michael Snyder
3cebf8d882 2007-08-01 Michael Snyder <msnyder@access-company.com>
* cli/cli-decode.c (lookup_cmd): Check for null earlier, to
	avoid dereference in lookup_cmd_1.
2007-08-01 20:26:31 +00:00
Michael Snyder
c0645fb52f 2007-08-01 Michael Snyder <msnyder@access-company.com>
* tui/tui-data.c (tui_alloc_content): Move assign out of if,
	clean up long lines.
	(tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
	(tui_alloc_win_info): Ditto.
	(tui_add_content_elements): Ditto.
	* tui/tui-file.c (tui_file_magic): Ditto.
2007-08-01 20:15:36 +00:00
Michael Snyder
9b0ec667bc 2007-08-01 Michael Snyder <msnyder@access-company.com>
* vms-tir.c (new_section): Fix cut and paste error.
2007-08-01 20:06:05 +00:00
Michael Snyder
20c6e70e8d 2007-08-01 Michael Snyder <msnyder@access-company.com>
* aoutx.h (aout_link_add_symbols): Return if count is zero.
2007-08-01 19:58:40 +00:00
Michael Snyder
dcf6c77984 2007-08-01 Michael Snyder <msnyder@access-company.com>
* elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
	pointer must be non-null.
2007-08-01 19:55:10 +00:00
Michael Snyder
168b82983a 2007-07-31 Michael Snyder <msnyder@access-company.com>
* cp-demangle.c (d_print_comp): Guard against null.
2007-08-01 19:43:08 +00:00
Adam Nemet
43ec5bc0d7 * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d,
ld-mips-elf/reloc-5.s, ld-mips-elf/reloc-5.d: New tests.
	* ld-mips-elf/mips-elf.exp: Invoke them.
2007-08-01 17:41:30 +00:00
Nick Clifton
bc37fce3d2 ga.po: Updated Irish translation. 2007-08-01 17:00:08 +00:00
Nick Clifton
e708816d5a * coffcode.h (coff_sort_func_alent): New function.
(coff_slurp_line_table): Sort line table if not already sorted.
2007-08-01 16:55:54 +00:00
H.J. Lu
0fdaa00544 Correct ChangeLog entries. 2007-08-01 15:27:55 +00:00
H.J. Lu
e652949396 Add a newline. 2007-08-01 15:19:35 +00:00
Jakub Jelinek
55b581a678 * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
GCC 3.4.x warning.
2007-08-01 08:57:23 +00:00
Alan Modra
ad756e3f9e * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
r_type.
	(swap_std_reloc_in): Likewise.
	(aout_link_input_section_std): Likewise.  Return with an error
	on unexpected relocation type.
	(aout_link_input_section_ext): Likewise.
2007-08-01 07:50:16 +00:00
Alan Modra
f6e688f76b PR4694
* aoutx.h (final_link): Write a zero in first word of
	stringtab if no symbols rather than corrupting last byte
	of text/data.
2007-08-01 07:43:36 +00:00
gdbadmin
a0ac008e3e *** empty log message *** 2007-08-01 00:00:33 +00:00
Alan Modra
32d188a6f6 daily update 2007-08-01 00:00:06 +00:00
Michael Snyder
967af18d0d 2007-07-31 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
	True and false paths are mutually exclusive.
2007-07-31 23:08:22 +00:00
Michael Snyder
40742ab60a 2007-07-31 Michael Snyder <msnyder@access-company.com>
* event-top.c (command_line_handler): Add pedantic return.
2007-07-31 22:01:03 +00:00
Michael Snyder
7c6e0d4812 2007-07-31 Michael Snyder <msnyder@access-company.com>
* f-valprint.c (info_common_command): Bail out to prevent null
	pointer deref.  Break up a long line.
2007-07-31 21:56:00 +00:00