Ulrich Drepper
27f7e91adf
Update.
1998-12-01 20:50:27 +00:00
Jim Wilson
16636918e8
patch for PR 18243.
...
* coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
reloc_count and i long instead of unsigned long. Handle error
return from bfd_canonicalize_reloc.
1998-12-01 20:17:18 +00:00
Nick Clifton
1ab49c8481
Detect the absence of a symbol hash table.
1998-12-01 09:58:28 +00:00
Joern Rennecke
c2d4e43129
* elf32-sh.c (elf/sh.h): Include.
...
sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
(sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
(sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
(sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
* Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
1998-11-30 15:29:45 +00:00
Richard Henderson
5825dfc525
* elflink.h (compute_bucket_count): Don't allow minsize==0, it
...
causes division by zero later on.
1998-11-27 17:03:39 +00:00
Dave Brolley
3f298868ce
Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
...
* elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
needed.
1998-11-26 16:22:08 +00:00
DJ Delorie
8cde3351e4
* coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
...
hook now.
1998-11-25 22:59:34 +00:00
Nick Clifton
226c1993e9
Add support for 9_PCREL and 12_PCREL relocs.
1998-11-25 01:21:53 +00:00
Nick Clifton
cb4ec68697
Fix handling of I32 and I20 relocs.
1998-11-25 00:54:31 +00:00
DJ Delorie
11dddceff5
* coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
...
to see .DLL files as unrecognized.
(i3coff_object_p): Sorry, had to hack it to not recognize these
files (pei-i386) on request.
1998-11-24 04:25:41 +00:00
DJ Delorie
b7de6a0df6
* opncls.c (bfd_make_readable): need more cleanup for symbols and
...
relents. Call bfd_check_format to reinitialize.
1998-11-23 19:45:45 +00:00
Nick Clifton
e203d46938
Remove spurous warnings.
1998-11-20 22:22:15 +00:00
Geoffrey Noer
4aeb051e8c
Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
...
* aclocal.m4: regenerate
* configure: regenerate
1998-11-19 22:42:35 +00:00
Geoffrey Noer
aba195432e
Wed Nov 18 20:12:03 1998 Geoffrey Noer <noer@cygnus.com>
...
* aclocal.m4: regenerate
* configure: regenerate
1998-11-19 04:14:00 +00:00
Richard Henderson
468bc0c5fe
* elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
...
* elf.c (_bfd_elf_link_hash_newfunc): Clear it.
* elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
respect it as an upper bound on what memory to reference.
(elf_gc_smash_unused_vtentry_relocs): Likewise.
(elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
update vtable_entries_size appropriately.
1998-11-18 04:26:39 +00:00
Nick Clifton
82ef568c2e
Fixed simple fr30 reloc handling.
1998-11-17 23:30:56 +00:00
DJ Delorie
949fae0bad
typo
1998-11-17 03:27:26 +00:00
DJ Delorie
020917f9d0
* archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
...
bfds; they have no "file" so we fake it.
* bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
* libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
resizing the memory buffer.
* opncls.c (bfd_make_writable): New function; lets you write a
bfd_create'd bfd to an in-memory buffer.
(bfd_make_readable): New function; lets you read back that buffer
as if it were from bfd_openr. Used to build generated archive
members (winsup's ld's dlltool)
1998-11-17 03:25:29 +00:00
Dave Brolley
44e7cd63f3
Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
...
* po/bfd.pot: Regenerated.
1998-11-17 00:16:52 +00:00
Nick Clifton
45cac0cb84
Replaced fixed size array for hi16 relocations with a linked list.
1998-11-16 18:58:32 +00:00
Richard Henderson
34c304a78c
* elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
...
element of the gotentry list for local symbols too.
(elf64_alpha_relocate_section): Unify local and global handling.
Assert that gotent->use_count > 0.
1998-11-16 04:31:19 +00:00
Ian Lance Taylor
dc52ee8cf0
* configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
...
update for file name changes of July 2, 1998.
(vms_vax_vec): New.
* configure: Rebuild.
1998-11-14 20:22:57 +00:00
Dave Brolley
e9928289d3
Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
...
* po/bfd.pot: Regenerated.
1998-11-13 00:31:06 +00:00
Geoffrey Noer
ea42e2d837
Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
...
* acinclude.m4, config.bfd: detect cygwin* instead of
cygwin32*.
* aclocal.m4, configure: regenerate
1998-11-11 00:20:25 +00:00
Geoffrey Noer
9dfa8076d4
Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
...
* acinclude.m4: detect cygwin* instead of cygwin32*.
* aclocal.m4, configure: regenerate
1998-11-11 00:18:37 +00:00
Nick Clifton
ac0442dd24
Add support for generating FR30 machine number
1998-11-10 23:15:10 +00:00
Felix Lee
e92a168fde
* acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
...
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
was cached.
* aclocal.m4, configure: regenerated.
1998-11-10 20:51:01 +00:00
Catherine Moore
970e0ba27e
* elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
...
R_D10V_GNU_VTENTRY relocs.
(elf_d10v_howto_table): Likewise.
(d10v_reloc_map d10v_reloc_map): Likewise.
(elf32_d10v_gc_mark_hook): New.
(elf32_d10v_gc_sweep_hook): New.
(elf32_d10v_check_relocs): New.
(elf32_d10v_relocate_section): New.
(elf_backend_relocate_section): Define.
(elf_backend_can_gc_sections): Define.
1998-11-10 20:51:00 +00:00
Ian Lance Taylor
446b878f24
Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
...
* Makefile.am (BFD32_BACKENDS): Move vms files here...
(BFD64_BACKENDS): ...from here.
(BFD32_BACKENDS_CFILES): Move vms files here...
(BFD64_BACKENDS_CFILES): ...from here.
* Makefile.in: Rebuild.
1998-11-07 23:12:50 +00:00
Nick Clifton
025ce5c6d8
Add sanitization for FR30
1998-11-05 17:51:55 +00:00
Nick Clifton
4aeed4f292
Added support for FR30
1998-11-05 00:05:50 +00:00
Geoffrey Noer
1c18e77af7
Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
...
* configure.in: detect cygwin* instead of cygwin32*
* configure: regenerate
1998-11-02 23:02:04 +00:00
Jeff Law
be70e54ce9
* elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
...
use bfd_malloc and free instead and check return value from bfd_malloc.
1998-11-02 02:34:41 +00:00
Ian Lance Taylor
9f83f953dc
* libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
...
* libbfd.h: Rebuild.
1998-11-01 21:25:43 +00:00
Ian Lance Taylor
02be03db76
Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
...
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
for later PLT entries in large PLTs.
(ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
1998-11-01 17:51:29 +00:00
Jeff Law
7a62c80b98
* elf32-ppc.c (ppc_elf_reload_section): Fix typo.
1998-11-01 03:11:16 +00:00
Nick Clifton
2321a68bf8
Fix comment.
1998-10-27 21:20:35 +00:00
Ulrich Drepper
5c2ad07f36
1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
...
* elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
* elflink.h (elf_collect_hash_codes): New function. This function is
called for each exported symbol and we compute the ELF hash value for
it.
(compute_bucket_value): New function. It is called from
size_dynamic_sections to determine the hash table size. When we are
optimizing a better, but slower, algorithm is used.
(size_dynamic_sections): Call compute_bucket_value.
* elf.c (bfd_elf_hash): Optimize the hash function a bit.
1998-10-27 00:04:05 +00:00
Ulrich Drepper
e429c89724
(elf_collect_hash_codes): New function. This function is called for
...
each exported symbol and we compute the ELF hash value for it.
(compute_bucket_value): New function. It is called from
size_dynamic_sections to determine the hash table size. When we are
optimizing a better, but slower, algorithm is used.
(size_dynamic_sections): Call compute_bucket_value.
1998-10-27 00:03:37 +00:00
Ulrich Drepper
eaa57a10aa
(bfd_elf_hash): Optimize the hash function a bit.
1998-10-27 00:00:50 +00:00
Ulrich Drepper
e841d72322
(struct elf_link_hash_entry): Add new field elf_hash_value.
1998-10-27 00:00:13 +00:00
Felix Lee
fa03589c56
* acinclude.m4: undo previous gettext change
...
* aclocal.m4: rebuild with right version of aclocal.
1998-10-19 16:58:17 +00:00
Felix Lee
2c54bc607e
bfd:
...
* acinclude.m4, aclocal.m4: move gettext-related fragments from
aclocal.m4 to acinclude.m4, so they don't get lost.
* elfcore.h: rewrite for better corefile support.
* elf.c (elfcore_*): new functions.
* elf-bfd.h (elf_obj_tdata): new structure members.
* acconfig.h, acinclude.m4, configure.in: add feature-tests for
flavor of procfs.
* aclocal.m4, config.in, configure, Makefile.in: regenerated.
include:
* common.h (NT_PSTATUS, NT_FPREGS, NT_PSINFO,
NT_LWPSTATUS,NT_LWPSINFO): added.
* internal.h (Elf_Internal_Note): new structure members.
1998-10-19 01:52:10 +00:00
Catherine Moore
09878672ec
* elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
...
and R_M32R_GNU_VTENTRY.
(elf_backend_can_gc_sections): Define.
(m32r_elf_check_relocs): New.
(m32r_elf_gc_mark_hook): New.
(m32r_elf_gc_sweep_hook): New.
(m32r_elf_relocate_section): Handle VT relocs.
1998-10-16 19:13:41 +00:00
Nick Clifton
a148e678b2
Fix fise of R_M32R_18_PCREL relocation.
1998-10-12 21:25:25 +00:00
Nick Clifton
a11380f1c2
Cope with missing hi or lo relocs.
1998-10-12 21:20:23 +00:00
Gavin Romig-Koch
53e4f2aabf
add dwarf1.c
1998-10-06 14:01:17 +00:00
Jeff Law
8e40ea4bbe
* som.c (som_finish_writing): Perform some sanity checks when
...
writing an executable or shared library.
17075
1998-10-05 20:57:25 +00:00
Gavin Romig-Koch
ecd41d25b9
* dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
...
* configure.in (elf): Add dwarf1.lo.
* elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
* elf.c (_bfd_elf_find_nearest_line): Add call to
_bfd_dwarf1_find_nearest_line.
* elf32-mips.c (_bfd_mips_elf_find_nearest_line):
Add call to _bfd_dwarf1_find_nearest_line.
* configure: Rebuilt.
1998-10-05 16:07:44 +00:00
Catherine Moore
6342b0623a
elflink.h (elf_gc_sections): Do not allow garbage
...
collection if dynamic sections have been created.
: ----------------------------------------------------------------------
1998-10-05 15:21:26 +00:00