Alan Modra
eaa7db9139
daily update
2002-04-22 00:03:58 +00:00
Alan Modra
1efdf8039d
daily update
2002-04-21 00:00:05 +00:00
Tom Rix
deeb2cd7e6
Fix C_FILE auxent on xcoff64.
2002-04-20 06:47:24 +00:00
Alan Modra
aa3d5824a4
* archures.c (bfd_lookup_arch): Move the list order comment..
...
(struct bfd_arch_info): ..to where it belongs.
2002-04-20 03:25:20 +00:00
Alan Modra
99dc00929f
* archures.c (bfd_lookup_arch): Add comment on list order.
...
(bfd_default_set_arch_mach): Use bfd_lookup_arch.
* cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
is always at head of list.
2002-04-20 02:54:26 +00:00
Alan Modra
40911fc00e
daily update
2002-04-20 00:00:05 +00:00
Alan Modra
05924ed4b9
daily update
2002-04-19 00:00:06 +00:00
Nick Clifton
7831a7758e
Fix problems building arm-wince-pe toolchain.
2002-04-18 09:28:29 +00:00
Alan Modra
26505dde2d
daily update
2002-04-18 00:00:06 +00:00
Joern Rennecke
a44d7f9cfb
Re-enable linking for sh5:
...
ld:
* emulparams/shelf32.sh (MACHINE): Now sh5.
bfd:
* cpu-sh.c (scan_mach): Delete.
(arch_info_struct): Replace scan_mach with bfd_default_scan.
(bfd_sh_arch): Likewise.
2002-04-17 19:31:53 +00:00
Alan Modra
2be0d1d9cd
daily update
2002-04-17 00:00:06 +00:00
Nick Clifton
3d8dbe36e2
Fix test for records crossing a 64K boundary
2002-04-16 10:18:14 +00:00
Alan Modra
4ab8270019
* elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
...
type rather than just assuming entries are ELF.
* elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
* elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
* elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
* elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
rather than elf_link_hash_entry.
2002-04-16 04:58:12 +00:00
Richard Henderson
036fe0fe8e
* elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
...
n32 binaries.
2002-04-16 00:57:00 +00:00
Alan Modra
b7ae17ce92
daily update
2002-04-16 00:00:05 +00:00
Nick Clifton
c4f3d13082
Write contents if writeable.
2002-04-15 14:32:28 +00:00
Alan Modra
272423870a
* elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
2002-04-15 08:47:03 +00:00
Alan Modra
57bf4c4605
daily update
2002-04-15 00:00:06 +00:00
Alan Modra
a29216ec3c
daily update
2002-04-14 00:00:05 +00:00
Alan Modra
7e3cc7d4d0
daily update
2002-04-13 00:00:05 +00:00
Michael Snyder
0c04d16993
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* bfd-in.h (bfd_get_section_lma): New access macro.
Minor white-space fix-up.
2002-04-12 23:02:12 +00:00
Alan Modra
89d4966ff8
* elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
...
header pad.
2002-04-12 03:30:56 +00:00
Alan Modra
728f70c465
daily update
2002-04-12 00:00:05 +00:00
Alan Modra
ab22415894
daily update
2002-04-11 00:00:05 +00:00
DJ Delorie
8d0da3c2f5
* elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
2002-04-10 16:45:31 +00:00
Alan Modra
0e994e6610
daily update
2002-04-10 00:00:06 +00:00
Nick Clifton
05793179d7
Compute checksum for PE images.
2002-04-09 16:43:26 +00:00
Alan Modra
3a36d7ae63
daily update
2002-04-09 00:00:04 +00:00
Alan Modra
46fe4e66d4
* elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
...
(elf32_hppa_final_link): Split out sorting logic to..
* elf-hppa.h (elf_hppa_sort_unwind): ..here.
(elf_hppa_final_link): Call elf_hppa_sort_unwind.
2002-04-08 11:01:43 +00:00
Alan Modra
04c61bf388
daily update
2002-04-08 00:00:06 +00:00
Andrew Cagney
3b5b409c5c
* configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
...
pattern.
* configure: Re-generate.
2002-04-07 21:49:09 +00:00
Andrew Cagney
ac7b6ceb87
* configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
...
is greater or equal to 4.3.3.
* configure: Regenerate.
Fix PR gdb/344.
2002-04-07 21:42:32 +00:00
Alan Modra
239ea0b4e3
daily update
2002-04-07 00:00:05 +00:00
Alan Modra
6adce8c596
daily update
2002-04-06 00:00:08 +00:00
Hans-Peter Nilsson
44aa49bb65
* elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
...
R_CRIS_32_PCREL>: Fix typo in name.
(cris_elf_check_relocs): Always create .rela.got here when
R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
(elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
assume it's created.
2002-04-05 23:11:32 +00:00
Alan Modra
2b9dd17b2f
daily update
2002-04-05 00:00:04 +00:00
Daniel Jacobowitz
e2d34d7de2
2002-04-04 Daniel Jacobowitz <drow@mvista.com>
...
* aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
* aout-target.h (MY_bfd_link_hash_table_free): Conditionally
define.
* aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
* bfd.c (bfd_link_hash_table_free): Define.
* binary.c (binary_bfd_link_hash_table_free): Define.
* bout.c (b_out_bfd_link_hash_table_free): Define.
* coff-rs6000.c (rs6000coff_vec): Include
_bfd_generic_link_hash_table_free.
(pmac_xcoff_vec): Likewise.
* coff64-rs6000.c (rs6000coff64_vec): Likewise.
(aix5coff64_vec): Likewise.
* coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
* elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
(bfd_elf32_bfd_link_hash_table_free): Define.
* elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
(bfd_elf32_bfd_link_hash_table_free): Define.
* elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
define.
* i386msdos.c (msdos_bfd_link_hash_table_free): Define.
* i386os9k.c (os9k_bfd_link_hash_table_free): Define.
* ieee.c (ieee_bfd_link_hash_table_free): Define.
* ihex.c (ihex_bfd_link_hash_table_free): Define.
* libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
(_bfd_generic_link_hash_table_free): Add prototype.
* libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
* libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
* linker.c (_bfd_generic_link_hash_table_free): New function.
* mmo.c (mmo_bfd_link_hash_table_free): Define.
* nlm-target.h (nlm_bfd_link_hash_table_free): Define.
* oasys.c (oasys_bfd_link_hash_table_free): Define.
* ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
* som.c (som_bfd_link_hash_table_free): Define.
* srec.c (srec_bfd_link_hash_table_free): Define.
* tekhex.c (tekhex_bfd_link_hash_table_free): Define.
* versados.c (versados_bfd_link_hash_table_free): Define.
* vms.c (vms_bfd_link_hash_table_free): New function.
* xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
* coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
instead of bfd_alloc.
* coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
* coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
* coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
* cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
* ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
* elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
* elf.c (_bfd_elf_link_hash_table_create): Likewise.
* elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
* elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
* elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
* elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
* elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
* elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
* elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
* elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
* elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
* elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
* elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
* elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
* elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
* linker.c (_bfd_generic_link_hash_table_create): Likewise.
* m68klinux.c (linux_link_hash_table_create): Likewise.
* sparclinux.c (linux_link_hash_table_create): Likewise.
* sunos.c (sunos_link_hash_table_create): Likewise.
* xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
* targets.c: Add _bfd_link_hash_table_free to xvec.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.
2002-04-04 19:53:38 +00:00
Alan Modra
830629ab3e
* dep-in.sed: Cope with absolute paths.
...
* Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
Run "make dep-am".
* Makefile.in: Regenerate.
* coff-arm.c: Fix copyright date.
* cpu-h8300.c: Likewise.
* cpu-i370.c: Likewise.
* cpu-s390.c: Likewise.
* cpu-mips.c: Likewise.
* po/SRC-POTFILES.in: Regenerate.
2002-04-04 14:04:39 +00:00
Thiemo Seufer
b49e97c944
Actually commit the new files ommitted before.
2002-04-04 07:10:00 +00:00
Thiemo Seufer
c6e90b027b
* Makefile.am: Add elfxx-mips.c to the known backends.
...
(elf32-mips.lo): remove dependency to coff/external.h.
* Makefile.in: Regenerate.
* configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
Remove elf32-mips.lo from 64 bit vectors. Update dependencies
accordingly.
* configure: Regenerate.
* elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
(irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
(elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
MIPS specific backend functions.
* elf32-mips.c: Moved most code to elfxx-mips.c.
(mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
static.
(mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
(mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
(mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
(mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
interface to allow selection of the right REL or RELA howto table.
(mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
static. Let it refuse n32 objects.
(elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
(elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
(elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
(elf32_mips_ignore_discarded_relocs): Rename from
_bfd_elf32_mips_ignore_discarded_relocs.
(elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
(elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
(elf_mips_howto_table_rela): Remove.
* elf64-mips.c: Moved most code to elfxx-mips.c.
(bfd_elf64_bfd_reloc_type_lookup): Make static.
(mips_elf64_rtype_to_howto): New function.
(mips_elf64_object_p): Likewise.
(elf64_mips_irix_compat): Likewise.
* elfxx-mips.c: New file containing common code merged together from
elf32-mips.c and elf64-mips.c.
* elfxx-mips.h: New file containing MIPS specific prototypes from
elf-bfd.h.
* elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
elf_backend_mips_rtype_to_howto.
2002-04-04 07:01:27 +00:00
Alan Modra
d8dce6926a
* srec.c (MAXCHUNK, Chunk): Revise comments.
...
(srec_write_record): Correct buffer size.
(srec_write_header): Do without intermediate buffer.
(srec_write_section): Validate Chunk.
(srec_write_terminator): Pass NULL instead of dummy buffer.
(srec_write_symbols): Pass file and symbol names directly to
bfd_bwrite so sprintf won't overflow buffer.
2002-04-04 03:05:51 +00:00
Alan Modra
f7e6cf1d80
daily update
2002-04-04 00:00:04 +00:00
Jakub Jelinek
b88a866a5a
* elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
...
PC relative relocs against hidden symbols.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2002-04-03 17:42:39 +00:00
Alan Modra
d7866f0459
* elf.c (_bfd_elf_make_section_from_shdr): When setting section
...
LMAs, loop over segments until p_vaddr and p_memsz specify an
extent enclosing the section.
2002-04-03 13:26:34 +00:00
Alan Modra
88eaec8b86
daily update
2002-04-03 00:00:05 +00:00
Nick Clifton
9e81ee6719
Do not allow records to cross a 64K boundary - wrap if necessary.
2002-04-02 14:08:51 +00:00
Alan Modra
d24bbf0666
daily update
2002-04-02 00:00:07 +00:00
Jason Thorpe
d2b645005b
2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
...
* elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one erro
which caused the returned LWP ID to always be 0.
2002-04-01 18:31:46 +00:00
Richard Henderson
e36f7d5326
* elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
...
(elf32_sparc_relocate_section): Use it to figure out when to
initialize .got entries.
* elf64-sparc.c: Similarly.
2002-04-01 10:00:49 +00:00
Alan Modra
74ebceb12b
daily update
2002-04-01 00:00:06 +00:00