Commit Graph

2377 Commits

Author SHA1 Message Date
Alan Modra
8fe83ebee4 daily update 2002-11-27 23:00:04 +00:00
Alan Modra
df869a462a daily update 2002-11-26 23:00:05 +00:00
Alan Modra
73722af036 * elf-eh-frame.c (ENSURE_NO_RELOCS): Disregard R_*_NONE relocs.
(_bfd_elf_discard_section_eh_frame): Don't discard duplicate CIEs
	on a relocatable link.  Comment typos.
	* elf.c (_bfd_elf_link_hash_newfunc): Assign elements of structure
	in the order they are declared.  Clear elf_hash_value too.
	(_bfd_elf_link_hash_table_init): Likewise assign in order.  Clear
	eh_info and tls_segment.
	* elflink.h (elf_link_input_bfd <emit_relocs>): Keep reloc offsets
	sorted when discarding relocs by turning them into R_*_NONE.

	* libbfd.c (warn_deprecated): Comment spelling.
	* po/SRC-POTFILES.in: Regenerate.
2002-11-26 11:54:02 +00:00
Alan Modra
8ae8aa02d3 daily update 2002-11-25 23:00:05 +00:00
Alan Modra
6902388cfe daily update 2002-11-24 23:00:05 +00:00
Alan Modra
462cb1bb28 daily update 2002-11-23 23:00:03 +00:00
Alan Modra
3f4147632f daily update 2002-11-22 23:00:05 +00:00
Alan Modra
caa402677f daily update 2002-11-21 23:00:04 +00:00
Richard Henderson
7c25b72c17 * elflink.h (elf_link_add_object_symbols): Don't overwrite the
arch's st_other bits when merging visibilities.
        (elf_link_output_extsym): Tidy clearing of visibility field.
2002-11-21 18:52:36 +00:00
Alan Modra
dc12c51f36 * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
(SWAP_OUT_RELOC_OFFSET): Define.
2002-11-21 13:11:33 +00:00
Alan Modra
ca38dbba3d daily update 2002-11-20 23:00:05 +00:00
Alexandre Oliva
963f13ecfe * elf.c (_bfd_elf_link_hash_table_init): Make sure
can_refcount is properly extended to the type of
init_refcount.
2002-11-20 18:17:04 +00:00
Alan Modra
3643cf46d6 daily update 2002-11-19 23:00:05 +00:00
Alexandre Oliva
4ffba85cf6 * elfxx-mips.c (MIPS_RELOC_RELA_P): New macro.
(_bfd_mips_elf_relocate_section): Use it.
2002-11-19 20:52:32 +00:00
Alexandre Oliva
ee6423ed14 * elfxx-mips.c (MNAME): New macro.
(_bfd_mips_elf_check_relocs): Use it.
(_bfd_mips_elf_discard_info): Likewise.
(_bfd_mips_elf_final_link): Likewise.
2002-11-19 20:50:43 +00:00
Alan Modra
cdcf6e38a2 * elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust
rel_hdr.sh_size too.
2002-11-19 06:32:35 +00:00
Alan Modra
80b26a8da1 daily update 2002-11-18 23:00:06 +00:00
Klee Dienes
93509525ce 2002-11-16 Klee Dienes <kdienes@apple.com>
* Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo.
	(BFD32_LIBS_CFILES): Add bfdwin.c, bfdio.c.
	(BFD_H_FILES): Add bfdwin.c, bfdio.c.
	(LIBBFD_H_FILES): Add bfdwin.c, bfdio.c.
	Add dependencies for bfdwin.c, bfdio.c.
	* bfd.c: Remove bfd_get_mtime, bfd_get_size.
	* libbfd.c: Remove real_read, bfd_bread, _bfd_window_internal,
	bfd_init_window, bfd_free_window, bfd_get_file_window, bfd_bwrite,
	bfd_tell, bfd_flush, bfd_stat, bfd_seek.
	* bfdio.c: New file.  Contains real_read, bfd_bread, bfd_write,
	bfd_tell, bfd_flush, bfd_stat, bfd_seek, bfd_ge_mtime,
	bfd_get_size (moved from libbfd.c and bfd.c).
	* bfdwin.c New file.  Contains _bfd_window_internal,
	bfd_init_window, bfd_free_window, bfd_get_file_window (moved from
	libbfd.c and bfd.c).
	* po/SRC-POTFILES.in: Regenerate.
	* po/bfd.pot: Regenerate.
	* libbfd.h: Regenerate.
	* bfd-in2.h: Regenerate.
	* aclocal.m4: Regenerate.
	* Makefile.in: Regenerate.
	* configure: Regenerate.

2002-11-16  Klee Dienes  <kdienes@apple.com>

	* Makefile.am (DOCFILES): Add bfdwin.texi, bfdio.texi.
	(PROTOS): Add bfdio.p, bfdwin.p.
	(SRCDOC): Add bfdio.c, bfdwin.c.
	(SRCPROT): Add bfdio.c, bfdwin.c.
	(SRCIPROT): Add bfdio.c, bfdwin.c.
	(LIBBFD_H_DEP): Add bfdio.c, bfdwin.c.
	(BFD_H_DEP): Add bfdio.c, bfdwin.c.
	Add rules for bfdio.texi, bfdwin.text.
	* bfd.texinfo: Include bfdio.texi.
2002-11-18 16:37:54 +00:00
Alan Modra
3ae414543e * bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY. 2002-11-18 00:33:01 +00:00
Alan Modra
b98a09c8ac daily update 2002-11-17 23:00:03 +00:00
Alan Modra
ad6e681780 daily update 2002-11-16 23:00:04 +00:00
Klee Dienes
aca9b8e5ab Remove spurious ChangeLog addition. 2002-11-16 21:09:08 +00:00
Klee Dienes
087e01e5f0 2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k.h (INSTAB): Remove 'next' field.
	(instruction): Remove definition; replace with extern declaration
	and mark as const.

2002-11-16  Klee Dienes  <kdienes@apple.com>

	* m88k-dis.c: (HASHTAB): New type, used to build instruction hash tables.
	Contains a pointer to an INSTAB and a pointer to the next hash
	chain entry.
	(instructions): Move definition from m88k.h; remove initialization
	of 'next' field.
	(hashtable): Now an aray of pointer-to-HASHTAB, not INSTAB.
	(printop): Mark pointer to OPSPEC as const.
	(install): Remove; fold into init_disasm.
	(m88kdis): Update to ihashtab_initialized to 1 after calling init_disasm.
	entry_ptr now iterates through HASHTABs, not INSTABs.
	(init_disasm): Iterate through the instructions and add to hashtable[].
2002-11-16 18:34:52 +00:00
Alan Modra
b7b7461f84 daily update 2002-11-15 23:00:04 +00:00
Nick Clifton
e514ac71cb Fix h8300 relaxation. 2002-11-15 11:18:49 +00:00
Klee Dienes
eddc4f813f 2002-11-15 Klee Dienes <kdienes@apple.com>
* pef.c (bfd_pef_convert_architecture): Move declaration
        ARCH_POWERPC and ARCH_M68K to the start of the function.
2002-11-15 08:38:38 +00:00
Alan Modra
11e6ddcda6 daily update 2002-11-14 23:00:04 +00:00
Svein Seldal
51908eee4e * coff-tic4x.c (tic4x_howto_table): Formatting fixup 2002-11-14 11:02:30 +00:00
Hans-Peter Nilsson
3416d2e743 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
For bpo_gregs_section->contents, allocate _raw_size, not
	_cooked_size.
2002-11-14 01:32:28 +00:00
Alan Modra
7b580b4aba daily update 2002-11-13 23:00:05 +00:00
Alan Modra
b1c58715b4 * config.bfd: Add entries for powerpc-*-darwin and cousins. 2002-11-13 01:45:42 +00:00
Alan Modra
a7f8412542 Missed commit in last change. 2002-11-12 23:25:42 +00:00
Alan Modra
0b74bc7784 daily update 2002-11-12 23:00:04 +00:00
H.J. Lu
077ca68b4c 2002-11-13 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't restore abfd->arch_info.
2002-11-12 22:49:45 +00:00
Alan Modra
e84d6fca26 * bfd.c (struct bfd_preserve): New.
(bfd_preserve_save): New function.
	(bfd_preserve_restore): Ditto.
	(bfd_preserve_finish): Ditto.
	* bfd-in2.h: Regenerate.
	* mach-o.c: Formatting.
	(bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
	(bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
	(bfd_mach_o_core_p): Ditto.
	(bfd_mach_o_scan): Pass in mdata.
	* mach-o.h (bfd_mach_o_scan): Update prototype.
	* pef.c: Formatting.
	(bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
	(bfd_pef_xlib_object_p): Ditto.
	(bfd_pef_scan): Pass in mdata.  Move version check to bfd_pef_object_p.
	* pef.h (bfd_pef_scan): Update prototype.
	* xsym.c: Formatting, K&R fixes.
	(bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
	(bfd_sym_scan): New function split out from bfd_sym_object_p.
	* xsym.h (bfd_sym_scan): Declare.
	* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
	(elf_core_file_p): Likewise.
	* targets.c (_bfd_target_vector): Revert 2002-11-08 change.
2002-11-12 15:44:24 +00:00
Nick Clifton
cd24c22246 Add new/updated Danish translations 2002-11-12 10:08:25 +00:00
Alan Modra
d6fe2dc102 * elflink.h (elf_link_add_object_symbols): Optimize stabs for
relocatable link too.
	(elf_link_input_bfd): When emitting relocs, adjust offsets for
	eh_frame and stab sections.  Zap deleted relocs.
	(elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
	(elf_bfd_discard_info): Run for relocatable link too.
	* elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd.  Make global.
	Handle ld -r case.
	(ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
	* elf64-ppc.h (ppc64_elf_edit_opd): Declare.
2002-11-12 07:55:43 +00:00
Alan Modra
126495ed15 * elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
(struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
	(struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
	(enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
	(struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
	(struct elf_link_hash_table): Add eh_info.
	(struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
	(_bfd_elf_discard_section_eh_frame): Update prototype.
	(_bfd_elf_discard_section_eh_frame_hdr): Likewise.
	(_bfd_elf_write_section_eh_frame): Likewise.
	(_bfd_elf_write_section_eh_frame_hdr): Likewise.
	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
	param.  Get "hdr_info" from link hash table.
	(_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param.  Get
	header section from link hash table.  Save header section to elf_tdata.
	(_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec".  Use
	header section from link hash table.  Don't alloc hdr_info.  Clear
	hdr_sec instead of setting "strip".
	(_bfd_elf_eh_frame_section_offset): Formatting.
	(_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
	Get header section from link hash table.
	(_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
	Get header section from link hash table.
	* elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
	(get_program_header_size): Likewise.
	(_bfd_elf_section_offset): Formatting.
	* elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
	section pointer in link hash table.
	(elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
	and _bfd_elf_write_section_eh_frame calls.  Update comment about
	eh_frame entries.
	(elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
	_bfd_elf_discard_section_eh_frame_hdr calls.  Remove "ehdr".

	* po/SRC-POTFILES.in: Regenerate.
2002-11-12 07:35:26 +00:00
Alan Modra
99eb2ac83d * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
relocs for discarded FDEs.  Remove dead code.
	(_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
	* elflink.h (elf_bfd_discard_info): Don't save edited relocs.
	Tidy conditions under which stabs are edited.  Formatting.
	* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
	from discarded relocs.
	* elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
	section adjustments after testing magic values.
2002-11-12 06:21:05 +00:00
Alan Modra
7c319a271c * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
references to large plt symbols.
2002-11-11 23:42:29 +00:00
Alan Modra
a95a455043 * mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
looking for an unused section name.
2002-11-11 23:19:03 +00:00
Alan Modra
c9fcedcf17 daily update 2002-11-11 23:01:15 +00:00
Kazu Hirata
bc7eab726b * coff-h8300.c: Fix formatting.
* elf32-h8300.c: Likewise.
	* reloc16.c: Likewise.
2002-11-11 05:05:22 +00:00
Alan Modra
66cd976c53 daily update 2002-11-10 23:00:05 +00:00
Alan Modra
eb9e99e691 daily update 2002-11-09 23:00:04 +00:00
Alan Modra
52585bb8f1 * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
section when dynamic section unused;  _bfd_strip_section_from_output
	instead.
2002-11-09 00:52:27 +00:00
Alan Modra
34f5246900 daily update 2002-11-08 23:00:04 +00:00
Alan Modra
207b304b84 Disable sym_vec too. 2002-11-07 23:26:51 +00:00
Alan Modra
3b029f6508 * targets.c (_bfd_target_vector): Disable pef_vec and pef_xlib_vec. 2002-11-07 23:13:30 +00:00
Alan Modra
4258491202 daily update 2002-11-07 23:00:09 +00:00