Commit Graph

866 Commits

Author SHA1 Message Date
Alan Modra df8634e34b (elf32_hppa_set_gp): Handle weak $global$.
If $global$ referenced but not defined, set its value here.
2001-02-13 10:14:14 +00:00
Jan Hubicka 51e0a107ce 2001-02-09 Bo Thorsen <bo@suse.de>
* elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
	alignment to 3.
	(elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
	and relocation.
	(elf64_x86_64_relocate_section): Fix formatting.
	(elf64_x86_64_relocate_section): Fix addend for relocation of
	R_X86_64_(8|16|32|PC8|PC16|PC32).
2001-02-12 16:54:08 +00:00
Jan Hubicka 23df107806 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
* tc-i386.c (i386_displacement): Fix handling of
	BFD_RELOC_X86_64_GOTPCREL.
	(i386_validate_fix): Likewise.
2001-02-12 16:47:15 +00:00
H.J. Lu f0e1d18ad3 2001-02-11 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_bfd_final_link): Use file_align for STMTAB
	alignment.
2001-02-12 00:23:37 +00:00
Nick Clifton 708b82c780 fix formatting 2001-02-11 23:22:25 +00:00
Nick Clifton b401d8e517 oops - omitted from previous delta 2001-02-11 23:21:01 +00:00
Nick Clifton 9117d2197e Apply several patches from Maciej W. Rozycki 2001-02-11 23:11:41 +00:00
Michael Sokolov 9f93bca5c7 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
* Makefile.in: Regenerate.
2001-02-11 22:53:28 +00:00
Richard Henderson 81545d45ad * elfxx-ia64.c (is_unwind_section_name): New function. Returns
true if section name is an unwind table section name.
        (elfNN_ia64_additional_program_headers): Count each unwind section
        separately.
        (elfNN_ia64_modify_segment_map): Install one unwind program header
        for each unwind separate section.  Note: normally the linker
        script merges the unwind sections that go into a single segment,
        so this still generates at most one unwind program header per
        segment.

        * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
        name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
        (elfNN_ia64_fake_sections): Mark sections with names that start
        with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
        unwind section.

        * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
        Use it to make sh_info in unwind section point to the text section
        it applies to.
2001-02-10 01:41:06 +00:00
Nick Clifton a85d7ed0f0 Add s390 support 2001-02-10 00:58:38 +00:00
Nick Clifton 356d255deb Suppress extra addition of ImageBase. 2001-02-09 18:38:58 +00:00
Jakub Jelinek 069f40e56f * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. 2001-02-09 17:53:16 +00:00
Jakub Jelinek eadfa8abf1 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
(sparc64_elf_relocate_section): Likewise.
2001-02-09 17:31:11 +00:00
Mark Kettenis 9fc54e1950 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
similar to R_SPARC_32.
* elf64-sparc.c	(sparc64_elf_howto_table): Likewise.
2001-02-09 16:19:25 +00:00
H.J. Lu 1f655a0986 2001-02-08 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
	relocation entries for weak definitions when building DSO with
	-Bsymbolic.
2001-02-09 06:58:59 +00:00
Richard Henderson ca88208ac8 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
before visibility.  Locally defined protected symbols are not
        dynamic.
2001-02-09 00:29:58 +00:00
Geoffrey Keating 4603e845c0 * config.bfd: Enable coff64 for rs6000-*. Patch from
<hzoli@austin.ibm.com>.
2001-02-09 00:11:24 +00:00
Nick Clifton 4ca29a6acf If stabs info is successfully found, do not attempt to find dwarf2 info
before returning.
2001-02-07 23:50:04 +00:00
Nick Clifton 7da9d88fe4 ignore common definitions of function symbols in unlinked archives 2001-02-07 23:42:15 +00:00
Nick Clifton 7340082dc8 Change bfd_target_vector from an array to a pointer 2001-02-07 23:16:22 +00:00
H.J. Lu 2719f88070 2001-02-06 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
	internal symbols are not dynamic.
	* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2001-02-07 06:19:58 +00:00
Nick Clifton 175aa013d9 Remove elf64-ia64.c from list of backend C files - it is auto-generated. 2001-02-07 01:58:26 +00:00
H.J. Lu 15e0ecd9c7 2001-02-06 H.J. Lu <hjl@gnu.org>
* bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
	checking.
	(pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
	external_PEI_IMAGE_hdr.
2001-02-06 19:43:19 +00:00
Kazu Hirata 27def10f96 2001-02-06 Kazu Hirata <kazu@hxi.com>
* elf-m10200.c: Fix formatting.
2001-02-06 19:04:20 +00:00
Nick Clifton a0f2e916a7 Do not convert reloc addend to PC rel, it will be handled later on. 2001-02-04 22:14:19 +00:00
Nick Clifton d96031fbcc Fix typo 2001-02-03 00:53:10 +00:00
Kazu Hirata 010ac81f2a 2001-02-01 Kazu Hirata <kazu@hxi.com>
* elf-m10300.c: Fix formatting.
2001-02-01 19:35:29 +00:00
Alan Modra d9634ba1ff (elf64_hppa_object_p): Set architecture and machine from elf header flags. 2001-01-31 13:28:50 +00:00
Alan Modra 3fab46d0e9 Write out millicode functions with the right elf symbol type. 2001-01-30 13:40:08 +00:00
Richard Henderson 9540464302 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
before mdebug.
2001-01-30 09:52:27 +00:00
Richard Henderson 8fb35fedd5 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
for non-default visibility.
        * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
        delete ugly macro and replace with pretty function.
2001-01-27 00:04:09 +00:00
Nick Clifton a4f685449e DJGPP config tweaks 2001-01-25 21:08:10 +00:00
Kazu Hirata c02e7c3eff 2001-01-25 Kazu Hirata <kazu@hxi.com>
* bfd-in2.h: Fix formatting.
	* libbfd.h: Likewise.
2001-01-25 20:17:45 +00:00
Kazu Hirata 10bfd974d4 2001-01-25 Kazu Hirata <kazu@hxi.com>
* chew.c: Do not output trailing whitespaces in type and
	functionname.  Update copyright.
2001-01-25 20:12:49 +00:00
Kazu Hirata 05c6581e28 2001-01-24 Kazu Hirata <kazu@hxi.com>
* chew.c: Do not output a trailing whitespace.
2001-01-24 22:38:31 +00:00
H.J. Lu 541389e202 2001-01-23 H.J. Lu <hjl@gnu.org>
* bfd-in2.h: Rebuild.
2001-01-24 04:56:29 +00:00
H.J. Lu 0007625f8f 2001-01-23 H.J. Lu <hjl@gnu.org>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
	is NULL or PRIV(vms_rec) is outside of the buffer.
2001-01-23 21:50:36 +00:00
Kazu Hirata 3fde5a36df 2001-01-23 Kazu Hirata <kazu@hxi.com>
* aoutx.h: Fix formatting.
	* bfd.c: Likewise.
	* bfd-in2.h: Likewise.
	* bfd-in.h: Likewise.
	* cpu-i386.c: Likewise.
	* cpu-m68hc11.c: Likewise.
	* dwarf2.c: Likewise.
	* elf64-x86-64.c: Likewise.
	* format.c: Likewise.
	* freebsd.h: Likewise.
	* hash.c: Likewise.
	* hp300hpux.c: Likewise.
	* hppabsd-core.c: Likewise.
	* hpux-core.c: Likewise.
2001-01-23 20:27:54 +00:00
Kazu Hirata b653e1b152 2001-01-23 Kazu Hirata <kazu@hxi.com>
* coff64-rs6000.c: Fix formatting.
	* coff-arm.c: Likewise.
	* coffgen.c: Likewise.
	* cofflink.c: Likewise.
	* coff-mcore.c: Likewise.
	* coff-mips.c: Likewise.
	* coff-pmac.c: Likewise.
	* coff-ppc.c: Likewise.
	* coff-rs6000.c: Likewise.
	* elf32.c: Likewise.
	* elf32-fr30.c: Likewise.
	* elf32-i370.c: Likewise.
	* elf32-i860.c: Likewise.
	* elf32-m32r.c: Likewise.
	* elf32-m68k.c: Likewise.
	* elf32-mcore.c: Likewise.
	* elf32-ppc.c: Likewise.
	* elf32-sh.c: Likewise.
	* elf32-v850.c: Likewise.
	* elf64-alpha.c: Likewise.
	* elf64-sparc.c: Likewise.
	* elflink.c: Likewise.
	* elflink.h: Likewise.
	* elf-m10200.c: Likewise.
	* elf-m10300.c: Likewise.
	* elfxx-ia64.c: Likewise.
2001-01-23 11:45:53 +00:00
Andreas Jaeger 70256ad8ae 2001-01-22 Bo Thorsen <bo@suse.de>
* elf64-x86-64.c: Added PIC support for X86-64.
        (elf64_x86_64_link_hash_newfunc): Function added.
        (elf64_x86_64_link_hash_table_create): Likewise.
        (elf64_x86_64_check_relocs): Likewise.
        (elf64_x86_64_gc_mark_hook): Likewise.
        (elf64_x86_64_gc_sweep_hook): Likewise.
        (elf64_x86_64_adjust_dynamic_symbol): Likewise.
        (elf64_x86_64_size_dynamic_sections): Likewise.
        (elf64_x86_64_discard_copies): Likewise.
        (elf64_x86_64_finish_dynamic_symbol): Likewise.
        (elf64_x86_64_finish_dynamic_sections): Likewise.
        (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2001-01-23 10:49:50 +00:00
Andreas Jaeger ee0bebb8ef 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* Makefile.am (install-data-local): Make use of $(DESTDIR).
	* Makefile.in: Regenerate.
2001-01-22 09:41:40 +00:00
Kazu Hirata 2a38f751b6 2001-01-21 Kazu Hirata <kazu@hxi.com>
* coff-a29k.c: Fix formatting.
2001-01-21 19:19:59 +00:00
H.J. Lu c849217624 2001-01-19 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_check_relocs): Report files with bad
	relocation section names.
	(elf_i386_relocate_section): Report files with bad relocation
	section names and return false.
2001-01-20 06:08:35 +00:00
Andreas Jaeger a5377ec020 * targets.c: Alphabetize list of xvecs. 2001-01-18 07:47:51 +00:00
Alan Modra d952f17a9d Linux target variants for elfxx-hppa. 2001-01-14 11:12:53 +00:00
Alan Modra c46b75158b Use SEGREL32 relocs for elf32-hppa unwind. 2001-01-14 07:03:49 +00:00
Alan Modra d768008d61 Add parens like the comment says. 2001-01-14 06:12:07 +00:00
Alan Modra 150ccafb7a Correct DT_INIT/DT_FINI ABI violation 2001-01-14 05:58:15 +00:00
Alan Modra b352eebf39 Wide mode .plt offsets for elf64-hppa 2001-01-14 05:22:51 +00:00
Nick Clifton b7ed8fad53 formatting fix 2001-01-13 19:45:52 +00:00