aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1998-07-24Fix memory corruption due to generic_add_output_symbol being called after ↵Nick Clifton1-0/+5
elf_map_symbols.
1998-07-24 * elf-m10300.c (mn10300_elf_relax_section): Fix typo when relaxingJeff Law1-0/+3
from 24bit operand to an 8bit operand.
1998-07-24 * elf-m10300.c (mn10300_elf_relax_section): Do not relax "dmul",Jeff Law2-4/+13
"dmulu", "dmach", "dmachu" with 32bit operands.
1998-07-24 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.Jeff Law2-0/+176
(mn10300_elf_reloc_map): Similarly. (mn10300_elf_final_link_relocate): Handle R_MN10300_24. (mn10300_elf_relax_section): Support relaxing on the am33.
1998-07-24start-sanitize-r5900Ian Lance Taylor1-0/+18
The value of R_MIPS15_S3 has changed: * elf32-mips.c (elf_mips15_s3_howto): New static variable. (mips_reloc_map): Remove BFD_RELOC_MIPS15_S3. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS15_S3 specially. (mips_info_to_howto_rel): Handle R_MIPS15_S3 specially. (mips_elf_relocate_section): Check for R_MIPS15_S3. end-sanitize-r5900 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on Irix 6. (bfd_elf32_bfd_reloc_type_lookup): Add default case. * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with elf_mips_reloc_type defined in elf/mips.h.
1998-07-24 Remove reloc_type definition completely. It's now in elf/mips.h.Ulrich Drepper1-0/+5
1998-07-24Remove reloc_type definition completely. It's now in elf/mips.h.Ulrich Drepper1-48/+1
1998-07-23remove d30v sanitizationIan Lance Taylor7-56/+26
1998-07-23rebuildIan Lance Taylor1-240/+394
1998-07-23 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocationsDoug Evans2-1/+6
as they are defined in elf/mips.h now.
1998-07-23 * elf-m10300.c (compute_function_info): Keep track of stack spaceJeff Law2-0/+22
needed by am33 movm instruction variant.
1998-07-23 * Re-add lost change:Jeff Law2-4/+56
* elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field "movm_stack_size". (mn10300_elf_relax_section): Include stack space for register saves in the imm8 field of a "call" instruction. (compute_function_info): Determine how much stack is allocated by the movm instruction. Fix typo. (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
1998-07-23 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.Ian Lance Taylor2-82/+142
* elf64-sparc.c (elf_backend_got_header_size): Define as 8.
1998-07-22Update.Ulrich Drepper1-0/+4
1998-07-22Move reloc definitions into headers in include/elfNick Clifton1-0/+6
1998-07-22Update.Ulrich Drepper1-1/+7
1998-07-22Let ELF header now define the macros to get the enum.Ulrich Drepper3-12/+0
1998-07-22Chnage type from 'unsigned char' to 'unsigned int' to avoid K&R ↵Nick Clifton2-1/+11
compatability issue.
1998-07-22 * ieee.c (ieee_find_nearest_line): Change filename_ptr andIan Lance Taylor1-0/+11
functionname_ptr to be const. Change line_ptr to be unsigned. * coffcode.h (coff_link_output_has_begun): Simplify handling when macro is not defined. Change second parameter from bfd_link_info to coff_final_link_info. Add prototype. (coff_final_link_postscript): Simplify handling when macro is not defined. Add prototype.
1998-07-22Before include system specific ELF header defineUlrich Drepper3-297/+487
START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
1998-07-22Before include system specific ELF header defineUlrich Drepper2-27/+47
START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
1998-07-22 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.cIan Lance Taylor2-4/+12
temporary patch over to elf64-mips.c as well.
1998-07-22elf32-mips.c (reloc_type): Temporarily disable definition of standardUlrich Drepper1-13/+26
relocation since they are now defined in elf/mips.h.
1998-07-22(reloc_type): Temporarily disable definition of standard relocation sinceUlrich Drepper1-19/+157
they are now defined in elf/mips.h.
1998-07-21 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.Richard Henderson2-4/+16
* elf32-i386.c (elf_backend_got_header_size): Define. (elf_backend_plt_header_size): Define. * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise. * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise. * elfxx-target.h: Provide a default of zero. * elflink.c (_bfd_elf_create_got_section): Use got_header_size. * elflink.h (elf_gc_common_finalize_got_offsets): Likewise. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT entry from an executable, even if the plt refcount goes to 0.
1998-07-20Mon Jul 20 12:47:26 1998 Andreas Schwab ↵Ian Lance Taylor1-0/+8
<schwab@issan.informatik.uni-dortmund.de> * aoutx.h (NAME(aout,find_nearest_line)): Also remember the directory name at the line number. * elf.c (_bfd_elf_find_nearest_line): Also consider symbols with an unspecified type.
1998-07-15 * sunos.c: Add undef of valid to avoid problem on SunOS.Ian Lance Taylor1-0/+10
1998-07-14Strip beos markers.Richard Henderson1-0/+28
1998-07-14Tue Jul 14 11:22:21 1998 Andreas Schwab ↵Ian Lance Taylor2-34/+110
<schwab@issan.informatik.uni-dortmund.de> * elf32-m68k.c (elf_m68k_check_relocs): Also reference count R_68K_PCxx and R_68K_xx relocations. Make sure that ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference. (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and R_68K_xx relocations. (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol that has no plt entry. (elf_m68k_relocate_section): Ignore the plt offset in a static link. * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for an ignored symbol. (elf_gc_common_finalize_got_offsets): Set the got offsets also in a static link. * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc types. (howto_table, reloc_map): Add entries for them. (elf_m68k_check_relocs): Handle them. Implement reference counting for got and plt entries. (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions. (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt symbols. (rtype_to_howto_rel, elf_info_to_howto_rel): Delete. (elf_m68k_relocate_section): Handle the new reloc types. (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define. * elflink.h (elf_link_add_object_symbols): When creating an indirect reference for symbol versioning also copy the plt offset. (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT flag also reset the plt offset. (elf_link_assign_sym_version): Likewise. (elf_gc_common_finalize_got_offsets): Increment the got offset by the size of the entry in bytes. (elf_gc_allocate_got_offsets): Likewise. Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com> * elflink.h (elf_gc_sections): Return true rather than falling off the bottom.
1998-07-14 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, notIan Lance Taylor1-0/+5
xmalloc.
1998-07-13Removed leading underscore.Nick Clifton1-0/+7
1998-07-13 * ieee.c (ieee_slurp_external_symbols): Handle call optimizationIan Lance Taylor1-0/+5
information ATN records.
1998-07-10 * ieee.c (ieee_slurp_external_symbols): Select an appropriateIan Lance Taylor2-0/+28
section for an absolute symbol in a fully linked file. Based on patch from Christian Holland <CHolland@de.lucent.com>.
1998-07-08Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>Ian Lance Taylor1-0/+5
* coff-m88k.c (m88k_special_reloc): Don't lose the information that a symbol is undefined.
1998-07-08 * som.c (som_bfd_gc_sections): Define.Jeff Law1-0/+4
1998-07-06Update for ChangeLog breakup. Remove gm sanitization; the stuff beingIan Lance Taylor1-34/+6
sanitized out was removed long ago.
1998-07-06Rearrange ChangeLog files by years.Ian Lance Taylor4-9801/+3017
1998-07-06Do not complain about overflows in ARM_26D relocations, since they have ↵Nick Clifton2-120/+221
already been performed. Patch submitted by <rjb@dcs.gla.ac.uk>
1998-07-04 * coffcode.h (coff_write_object_contents): If we have any longIan Lance Taylor1-2/+8
section names, call coff_write_symbols even if there are no symbols.
1998-07-03 * elf.c (copy_private_bfd_data): Only set phdr_included oncde forIan Lance Taylor1-0/+8
a PT_LOAD segment, rather than only setting it once for the entire file. * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA, rather than ignoring every phdr with a p_paddr of 0, ignore all the phdrs if they all have a p_paddr of 0.
1998-07-03 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstrIan Lance Taylor1-1/+6
section was discarded from the link.
1998-07-03Brought over from sh4-980527-branch:Joern Rennecke1-0/+4
Fix for execute/va-arg-5.c -Os -mrelax -m4-single failure: * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
1998-07-03Brought over from sh4-980527-branch:Joern Rennecke2-0/+11
Fix for execute/921208-1.c -Os -mrelax -m4-single failure: * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with floating point operations.
1998-07-02 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined globalIan Lance Taylor1-0/+5
function symbols.
1998-07-02Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>Ian Lance Taylor14-4891/+4935
Merge of vax/vms (read-only) support * configure.com: Support Vax target. * makefile.vms: Support Vax target. * vms.h: Renamed from evax.h, merged vax/vms (read-only) support. * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only) support. * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only) support. * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only) support. * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only) support. * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only) support. * libbfd.c (real_read): Use unbuffered read on VMS/Vax. * targets.c (bfd_target_ovax_flavour): New flavour. (vms_alpha_vec): Renamed from evax_alpha_vec. (vms_vax_vec): New. (target_vector): Update accordingly. * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not evax_alpha_vec. (vax*-*-*vms*): New target. * Makefile.am: Update for renamed files. Rebuild dependencies. * bfd-in2.h: Rebuild. * configure.in, Makefile.in, aclocal.m4: Rebuild.
1998-07-02Add support for changing LMA and VMA of sections/Nick Clifton2-96/+341
1998-07-01"propogate" -> "propagate"Richard Henderson1-4/+4
1998-07-01 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisonsIan Lance Taylor2-180/+452
when handling 32 bit immediate relocs. * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
1998-07-01 * reloc.c: New relocs BFD_RELOC_MIPS_DVP_11_S4,Doug Evans2-0/+18
BFD_RELOC_MIPS_DVP_U15_S3. * elf32-mips.c: Handle them. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
1998-06-30 * section.c (STD_SECTION): Account for recently added gc_markJeff Law1-0/+3
field in struct asection.