Commit Graph

1957 Commits

Author SHA1 Message Date
Alan Modra
8c8c7ed1df daily update 2002-07-01 00:00:06 +00:00
Alan Modra
b16575a2ea daily update 2002-06-30 00:00:05 +00:00
Hans-Peter Nilsson
8d28f606dc * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
trailing zero-sequences when there's previous left-over data.
2002-06-29 21:45:09 +00:00
Alan Modra
42c15cc220 daily update 2002-06-29 00:00:06 +00:00
Alan Modra
9e2dd5dcde daily update 2002-06-28 00:01:04 +00:00
Jeff Law
5ac81c745e * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
(elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
        and opd_rel_sec in order for starting rela section.  Check _raw_size.
        (elf_backend_reloc_type_class): Define.
2002-06-27 22:57:02 +00:00
Alan Modra
91a4d5692a 2002-06-27 Kevin Buettner <kevinb@redhat.com>
* dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
	DWARF2 formats.
2002-06-27 11:51:42 +00:00
Alan Modra
feee612b24 * cpu-powerpc.c: Comment on ordering of arch_info.
* elf32-ppc.c (ppc_elf_object_p): New function.
	(elf_backend_object_p): Define.
	* elf64-ppc.c (ppc64_elf_object_p): New function.
	(elf_backend_object_p): Define.
2002-06-27 11:29:15 +00:00
Alan Modra
feb1911aea daily update 2002-06-27 00:00:06 +00:00
Jason Thorpe
a4e6cefc0d * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
* configure: Regenerate.
2002-06-26 03:10:20 +00:00
Alan Modra
0d8641dd17 daily update 2002-06-26 00:00:18 +00:00
Nick Clifton
dae2dd0d26 Check unit->addr_size to read in the proper number of prologue bytes. 2002-06-25 19:10:00 +00:00
Nick Clifton
8f28b84541 fixup position of #ifdef BFD64 for powerpc delta recently applied. 2002-06-25 17:29:53 +00:00
Nick Clifton
680f9d5c14 Only create a selvecs for aix5coff64_vec if 64-bit bfd support has been enabled. 2002-06-25 10:05:05 +00:00
Alan Modra
d4c88bbbc9 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
* elf32-hppa.c (hppa_add_stub): Likewise.
	* elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
	* elflink.h (elf_add_default_symbol): Fix comment typo.
	(elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
	(elf_link_add_object_symbols): Likewise.
	(elf_link_assign_sym_version): Likewise.
	* hash.c (bfd_hash_lookup): Likewise.
	* linker.c (_bfd_generic_link_add_one_symbol): Likewise.
	* section.c (bfd_get_unique_section_name): Likewise.
	* syms.c (_bfd_stab_section_find_nearest_line): Likewise.
	* elf.c (_bfd_elf_make_section_from_phdr): Likewise.
	(assign_section_numbers): Likewise.
	(_bfd_elfcore_make_pseudosection): Likewise.
	(elfcore_grok_lwpstatus): Likewise.
	(elfcore_grok_win32pstatus): Likewise.
	(elfcore_write_note): Constify input params.  Use PTR instead of
	void *.  Include terminating NUL in namesz.  Correct padding.
	Support NULL "name" param.  Use memcpy instead of strcpy.
	(elfcore_write_prpsinfo): Constify input params.
	(elfcore_write_prstatus): Likewise.  Use PTR instead of void *.
	(elfcore_write_lwpstatus): Likewise.
	(elfcore_write_pstatus): Likewise.
	(elfcore_write_prfpreg): Likewise.
	(elfcore_write_prxfpreg): Likewise.
	* elf-bfd.h (elfcore_write_note): Update declaration.
	(elfcore_write_prpsinfo): Likewise.
	(elfcore_write_prstatus): Likewise.
	(elfcore_write_pstatus): Likewise.
	(elfcore_write_prfpreg): Likewise.
	(elfcore_write_prxfpreg): Likewise.
	(elfcore_write_lwpstatus): Likewise.
2002-06-25 09:40:45 +00:00
Nick Clifton
b0ac09d2fb Set BSF_FUNCTION for symbols of type stProc and stStaticProc.
Formatting tidy ups.
2002-06-25 08:47:31 +00:00
Alan Modra
021d609642 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo. 2002-06-25 07:40:49 +00:00
Alan Modra
82e5191826 * aout-adobe.c: Don't compare against "true" or "false.
* aout-target.h: Likewise.
	* aoutx.h: Likewise.
	* archive.c: Likewise.
	* bout.c: Likewise.
	* cache.c: Likewise.
	* coff-a29k.c: Likewise.
	* coff-alpha.c: Likewise.
	* coff-i386.c: Likewise.
	* coff-mips.c: Likewise.
	* coff-or32.c: Likewise.
	* coff64-rs6000.c: Likewise.
	* coffcode.h: Likewise.
	* coffgen.c: Likewise.
	* cpu-ns32k.c: Likewise.
	* ecoff.c: Likewise.
	* ecofflink.c: Likewise.
	* elf.c: Likewise.
	* elf32-arm.h: Likewise.
	* elf32-cris.c: Likewise.
	* elf32-d30v.c: Likewise.
	* elf32-i386.c: Likewise.
	* elf32-mcore.c: Likewise.
	* elf32-ppc.c: Likewise.
	* elf32-sh.c: Likewise.
	* elf32-sh64.c: Likewise.
	* elf32-v850.c: Likewise.
	* elf64-alpha.c: Likewise.
	* elf64-sh64.c: Likewise.
	* elfcode.h: Likewise.
	* elfcore.h: Likewise.
	* elflink.h: Likewise.
	* elfxx-mips.c: Likewise.
	* i386os9k.c: Likewise.
	* ieee.c: Likewise.
	* libbfd.c: Likewise.
	* linker.c: Likewise.
	* mmo.c: Likewise.
	* nlm32-alpha.c: Likewise.
	* nlm32-i386.c: Likewise.
	* nlm32-ppc.c: Likewise.
	* nlm32-sparc.c: Likewise.
	* nlmcode.h: Likewise.
	* oasys.c: Likewise.
	* pdp11.c: Likewise.
	* peicode.h: Likewise.
	* reloc.c: Likewise.
	* som.c: Likewise.
	* srec.c: Likewise.
	* tekhex.c: Likewise.
	* vms.c: Likewise.
	* xcofflink.c: Likewise.
	* elf64-sparc.c: Edit comment to not use "== false".

	* aoutf1.h: Don't use "? true : false".
	* ecoff.c: Likewise.
	* format.c: Likewise.
	* ieee.c: Likewise.
	* linker.c: Likewise.
	* mmo.c: Likewise.
	* oasys.c: Likewise.
2002-06-25 06:21:54 +00:00
Alan Modra
d226df4d47 daily update 2002-06-25 00:11:06 +00:00
Alan Modra
0f67e2ff77 daily update 2002-06-24 00:00:07 +00:00
Alan Modra
48fc70a2b6 * elflink.h (elf_link_add_archive_symbols): For the default
version, check references with only one `@' first.
2002-06-23 12:44:31 +00:00
Alan Modra
47b7c2db07 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
function.
	(allocate_global_data_dlt):  Don't add millicode symbols to dynamic
	symbol table.
	(allocate_global_data_opd, allocate_dynrel_entries): Likewise.
	(elf64_hppa_size_dynamic_sections): Revise to use
	elf64_hppa_mark_milli_and_exported_functions.
	(elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
	symbols out of dynamic symbol table.
2002-06-23 09:05:59 +00:00
Alan Modra
bb3fff1e12 * Makefile.in: Regenerate.
* libbfd.h: Regenerate.
	* bfd-in2.h: Regenerate.
	* configure: Regenerate.
	* po/SRC-POTFILES.in: Regenerate.
2002-06-23 02:09:05 +00:00
Alan Modra
f5d44ba06b 2002-06-23 Alan Modra <amodra@bigpond.net.au>
* elflink.h: Comment typo fixes.

2002-06-23  H.J. Lu  <hjl@gnu.org>

	* elf-bfd.h (elf_link_loaded_list): New structure.
	(elf_link_hash_table): Add "loaded".
	* elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
	* elflink.h (elf_link_check_versioned_symbol): New function.
	(elf_link_output_extsym): Call elf_link_check_versioned_symbol.
2002-06-23 02:04:28 +00:00
Alan Modra
d7eac87a3f daily update 2002-06-23 00:00:07 +00:00
Alan Modra
a9419e526c daily update 2002-06-22 00:00:07 +00:00
Alan Modra
256333c7ea daily update 2002-06-21 00:00:08 +00:00
Alan Modra
1ae9cf22fa daily update 2002-06-20 00:00:05 +00:00
Nick Clifton
cc36acdfd5 If the target does not support an ELF style has table, return true, indicating
that nothing needed to be done, rather than false, indicating that the
section's size could not be computed.
2002-06-19 10:07:37 +00:00
Alan Modra
9d9a8108cc daily update 2002-06-19 00:00:07 +00:00
Dave Brolley
4e5ba5b7eb 2002-06-18 Dave Brolley <brolley@redhat.com>
From Catherine Moore, Michael Meissner, Dave Brolley:
	* po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
	* targets.c: Support bfd_elf32_frv_vec.
	* reloc.c: Add FRV relocs.
	* configure.in: Add support for bfd-elf32-frv-vec.
	* config.bfd (targ_cpu): Add support for frv-*-elf.
	* archures.c: Add frv arch and machines.
	* Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
	(ALL_MACHINES_CFILES): Add cpu-frv.c.
	(BFD32_BACKENDS): Add elf32-frv.lo.
	(BFD32_BACKENDS_CFILES): Add elf32-frv.c
	(cpu-frv.lo): New target.
	(elf32-frv.lo): New target.
	* cpu-frv.c: New file.
	* elf32-frv.c: New file.
2002-06-18 21:10:55 +00:00
Jakub Jelinek
7ece0d85fd binutils/
* readelf.c (get_file_header): Only read the first section header if
	e_shoff is non-zero.

bfd/
	* elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
	e_shnum == 0.
	Only read the first section header if e_shoff is non-zero.
	Don't consider e_shstrndx if there are no sections.
2002-06-18 14:09:06 +00:00
Alan Modra
bc67e3a921 daily update 2002-06-18 00:00:06 +00:00
Tom Rix
57fb03ac80 Fix pc relocations. 2002-06-17 13:43:50 +00:00
Alan Modra
767e34d13c * opncls.c (bfd_openr): Remove redundant bfd_set_error.
(bfd_fdopenr): Likewise.
	(bfd_openstreamr): Likewise.
	(bfd_openw): Likewise.
2002-06-17 02:33:42 +00:00
Alan Modra
341ca62211 * targets.c: Sort target vecs.
(_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
	bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
	bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
	bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
	* configure.in: Sort target vecs.  Add m88kmach3_vec.
	* configure: Regenerate.
2002-06-17 02:27:38 +00:00
Alan Modra
1e81458254 daily update 2002-06-17 00:00:06 +00:00
Hans-Peter Nilsson
dfbbae4ca3 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
bpo_reloc_no to break sort order ties, not address of items.
2002-06-16 20:48:46 +00:00
Jeff Law
d663e1cd53 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
Skip excluded sections in determing __gp value.
	(elf_hppa_final_link_relocate): Use the symbol's address in
	R_PARISC_FPTR64 relocations that don't need an opd entry.
	* elf64-hppa.c (allocate_dynrel_entries): Simplify code.
	(elf64_hppa_finalize_dynreloc): Likewise.
	(elf64_hppa_size_dynamic_sections): Move comments and fix typo.
	(elf64_hppa_finish_dynamic_symbol): Break up assert.
2002-06-16 15:32:08 +00:00
Alan Modra
b9ab661c81 daily update 2002-06-16 00:00:04 +00:00
Alan Modra
e75700dfba daily update 2002-06-15 00:00:05 +00:00
Nick Clifton
a829521801 Enable 16 byte alignment for .bss, .data and .text sections so that sse and
sse2 code will work.
2002-06-14 11:24:12 +00:00
Alan Modra
9faaac0e27 daily update 2002-06-14 00:00:05 +00:00
Joern Rennecke
5d9b5481e3 Individual processor configurations for sh-elf / sh-linux:
gcc:
	* config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
	* config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
	* sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
	(SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
	(SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
	(SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
	(SELECT_SH5_COMPACT_NOFPU): Likewise.
	(TARGET_SWITCHES): Use them.
	(TARGET_CPU_DEFAULT): Define if not already defined.
	(TARGET_DEFAULT): Use it.
	(LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
	* config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
	* config/sh/t-monolib: New file.

bfd:
	config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
	sh[1234]*-elf*.

ld:
	* configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.

Still outstanding:
	config.sub:
		* config.sub: Add support for sh[12], sh3e, sh[1234]le, sh3ele,
		shle, sh[1234]le, sh3ele, sh64le.
2002-06-13 20:11:35 +00:00
Alan Modra
3b2687aae5 daily update 2002-06-13 00:00:06 +00:00
Jeff Law
2cb69dd361 * elflink.h (elf_bfd_final_link): Improve error handling for missing
dynamic sections.
2002-06-12 18:14:05 +00:00
Jeff Law
3db4b61245 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
for a symbol that has no output section.
	(allocate_dynrel_entries): Correct comment.
	(elf64_hppa_finalize_dynreloc): Likewise.  Don't create an opd entry
	unless we want one.
	(elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
	(elf64_hppa_finalize_dlt): Likewise.  Prevent segfault for symbols
	with no section.  Remove unnecessary parentheses.
2002-06-12 18:12:25 +00:00
Tom Rix
f381349953 Change text alignement to 4 bytes. 2002-06-12 16:04:39 +00:00
Alan Modra
bbd24b5b2e daily update 2002-06-12 00:00:05 +00:00
Alan Modra
013585f27e daily update 2002-06-11 00:00:06 +00:00