aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1997-02-21 * elf32-mn10200.c (mn10200_elf_final_link_relocate): SimplifyJeff Law2-16/+281
somewhat. (mn10200_elf_relax_section): Correctly compute a symbol's value when the symbol is local, but not in the same section as we are relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16 relaxing. Another 1.3% size reduction for hello world. Only relaxing left todo is imm16 -> imm8 and d16 -> d8 where applicable.
1997-02-21 * elf32-m32r.c: Rewrite to use ELF backend linker.David Edelsohn2-0/+14
Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns. Add small data area support (R_M32R_SDA16). * reloc.c: Document BFD_RELOC_M32R_SDA16. * bfd-in2.h,libbfd.h: Regenerated.
1997-02-21Twiddle some comments to more accurately reflect reality.Jeff Law1-3/+6
1997-02-21Remove debugging printf.Jeff Law1-1/+0
1997-02-21 * elf32-mn10200.c (mn10200_elf_relax_section): New function.Jeff Law2-3/+780
(mn10200_elf_relax_delete_bytes): Likewise. (mn10200_elf_symbol_address_p): Likewise. (mn10200_elf_get_relocated_section_contents): Likewise. (bfd_elf32_bfd_relax_section): Define. (bfd_elf32_bfd_get_relocated_section_contents): Likewise. First cut at relaxing linker for the mn10200: jsr:24 -> jsr:16 jmp:24 -> jmp:16 jmp:16 -> bra:8 bCC .+4;bra:8 -> bCC':8 Reduces code size by about 2.5% for hello world.
1997-02-20fix with make headersIan Lance Taylor1-0/+1
1997-02-20 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.Jeff Law2-0/+276
(mn10200_elf_relocate_section): Likewise. (elf_backend_relocate_section): Define. New style linker for the mn10200.
1997-02-20Since d10v is public now, remove all sanitization statementsMichael Meissner6-52/+1
1997-02-19Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt14-437/+830
* Makefile.in, archures.c, config.bfd, configure.in, elf.c, reloc.c, targets.c: New target, elf-*-D30V. * bfd-in2.h, configure, libbfd.h: Rebuilt. * cpu-d30v.c, elf32-d30v.c: New files.
1997-02-18 * reloc.c (struct reloc_howto_struct): Fix typo in comment.Fred Fish3-3/+27
* bfd-in2.h: Regenerated. start-sanitize-tic80 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function. (rtype2howto): Add function. (tic80_howto_table): Add. end-sanitize-tic80
1997-02-18 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndxJeff Law1-0/+7
is initialized before it is used. Something Doug noticed.
1997-02-17 * hp300hpux.c (convert_sym_type): Don't convert a secondary commonIan Lance Taylor1-0/+5
symbol into a weak undefined symbol; leave it as a common symbol.
1997-02-15 * elflink.h (elf_link_add_object_symbols): Don't issue a warningIan Lance Taylor2-4/+66
about a symbol defined in a dynamic object if it has already been defined in a regular object.
1997-02-14Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)Ian Lance Taylor6-190/+137
* reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for openVMS/Alpha. * evax.h (ALPHA_R_CODEADDR): New relocation. * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for openVMS/Alpha. * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this relocation. * bfd-in2.h, libbfd.h: Rebuild. Restrict symbol length to 64 bytes, case preserving: * evax-emh.c (_bfd_evax_write_emh): Remove case hacking. * evax-misc.c (_bfd_evax_case_hack_symbol): Remove. (_bfd_evax_length_hash_symbol): Added. * evax-etir.c (_bfd_evax_write_etir): Call _bfd_evax_length_hash_symbol before output of symbol. * evax-egsd.c (_bfd_evax_write_egsd): Likewise. * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove. * evax-emh.c: Output filename to object file without path. * evax-egsd.c: New sections for local and global commons. * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c, evax-misc.c, evax.h: Remove 8 bit characters from copyright notices. Replace AXP with Alpha.
1997-02-14Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)Ian Lance Taylor1-0/+6
* makefile.vms: Add gcc flags to allow compiling with current gcc snapshot (targmatch.h): New dependency.
1997-02-14Thu Feb 13 20:50:02 1997 Klaus Kaempf (kkaempf@progis.de)Ian Lance Taylor2-0/+6
* makefile.vms: New file.
1997-02-12 * sunos.c (sunos_create_dynamic_sections): We need the dynamicIan Lance Taylor1-0/+5
sections if we are creating a shared library.
1997-02-11 * configure.host (i386-windows): Don't set host64=true.David Edelsohn1-0/+4
1997-02-11 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.Ian Lance Taylor4-0/+20
(elf_mips16_gprel_howto): New static variable. (mips16_gprel_reloc): New static function. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL. (mips_info_to_howto_rel): Handle R_MIPS16_GPREL. (mips_elf_relocate_section): Handle R_MIPS16_GPREL. * reloc.c (BFD_RELOC_MIPS16_GPREL): Define. * bfd-in2.h, libbfd.h: Rebuild.
1997-02-11 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to trueDavid Edelsohn2-6/+13
for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
1997-02-11Add r5900Gavin Romig-Koch2-0/+34
1997-02-07 * elflink.h (elf_link_input_bfd): If we've discarded a section,Ian Lance Taylor2-2/+13
the output section will be the absolute section; don't print an assertion message for that case when doing a relocateable link. PR 11647.
1997-02-06 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.Ian Lance Taylor2-5/+432
(struct mips_elf_link_hash_entry): Add new fields fn_stub, need_fn_sub, call_stub, and call_fp_stub. (struct mips_elf_link_hash_table): Add field mips16_stubs_seen. (mips_elf_link_hash_newfunc): Initialize new fields. (mips_elf_link_hash_table_create): Likewise. (mips_elf_relocate_section): Redirect relocations to use mips16 stubs when appropriate. (mips_elf_check_relocs): Attach stub sections to the appropriate symbol. Set need_fn_stub when appropriate. (mips_elf_always_size_sections): New static function. (mips_elf_check_mips16_stubs): New static function. (elf_backend_always_size_sections): Define. * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
1997-02-06 * elflink.h (elf_link_input_bfd): Discard local symbols that areIan Lance Taylor1-1/+12
attached to sections which are not being included in the link.
1997-02-05 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore theIan Lance Taylor1-0/+6
symbol value when computing the addend for a pc_relative pcrel_offset reloc.
1997-02-03 * cofflink.c (_bfd_coff_generic_relocate_section): If doing aIan Lance Taylor2-4/+19
relocateable link, just skip pc_relative pcrel_offset relocs. * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto structure for an ARM26 reloc which can be resolved. (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the reloc can be resolved. PR 11599.
1997-02-03 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by oneIan Lance Taylor2-2/+7
error in overflow check for R_RELBYTE. PR 11591.
1997-01-31comment fixIan Lance Taylor1-7/+10
1997-01-31 * ieee.c (ieee_slurp_section_data): Pick up the start address.Ian Lance Taylor2-13/+69
From Mark Rasin <mark.rasin@telrad.co.il>.
1997-01-31 * aoutx.h (aout_link_write_symbols): Don't apply discard_l toIan Lance Taylor2-14/+69
debugging symbols. Mentioned in PR 11540.
1997-01-29 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.Jeff Law2-0/+22
(elf_mn10200_howto_table): Likewise. (mn10200_reloc_map): Likewise. How did I miss the 16bit pc-relative relocs?!?
1997-01-27 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.David Edelsohn5-9/+446
* bfd-in2.h, libbfd.h: Regenerated. * elf32-m32r.c: Add support for them.
1997-01-27 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.Ian Lance Taylor1-0/+8
* elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt. start-sanitize-v850 * elf32-v850.c (v850_elf_final_link_relocate): Remove used r_format and r_pcrel. Always return a value. end-sanitize-v850 * riscix.c (MY_final_link_callback): Define to dummy value.
1997-01-27 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking forIan Lance Taylor3-5/+23
relocations against the text segment, look up the output name of the reloc section. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1997-01-23 * coff-tic80.c (tic80coff_vec): Use correct data put/getFred Fish1-0/+7
routines for little endian data. * coffcode.h (coff_write_object_contents): Set magic to TIC80_ARCH_MAGIC for TIc80.
1997-01-21 * coff-tic80.c (tic80coff_vec): Change to little endian dataFred Fish2-5/+12
as the default.
1997-01-16 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type ofIan Lance Taylor3-11/+34
auxiliary_filters parameter to be const char * const *. Accept a NULL terminated array. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. (bfd_elf32_size_dynamic_sections): Update declaration. * bfd-in2.h: Rebuild.
1997-01-16update copyrightIan Lance Taylor1-5/+9
1997-01-14 * libaout.h (machine_type): Reserve several values for sparclet.David Edelsohn1-0/+4
1997-01-14Fix sanitize stringMichael Meissner1-1/+1
1997-01-14Allow tic80-*-*, not just tic80-*-coffMichael Meissner1-0/+6
1997-01-14Cleanup; fix some abortsMichael Meissner1-0/+12
1997-01-06Fix typo.Jeff Law1-1/+1
1997-01-06 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.Jeff Law2-104/+9
Use bfd_elf_generic_reloc as special function for all relocs. (bfd_elf32_mn10200_reloc): Remove unnecessary function. Working on relocs for the mn10200.
1997-01-06 * elf32-mn10200.c (elf_mn10200_howto): Set partial_inplace forJeff Law2-1/+6
24bit pc-relative reloc.
1997-01-04 * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.Fred Fish2-0/+17
* coff-tic80.c (tic80coff_vec): Data byte order is big endian and header byte order is little endian. Use correct bfd_get and bfd_put routines for little endian headers. * coffcode.h (coff_set_arch_mach_hook): Set arch to bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
1997-01-04 * reloc.c: Add BFD_RELOC_24.Jeff Law2-70/+33
* elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs. (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes. * bfd-in2.h, libbfd.h: Rebuilt. Starting on relocs for the mn10200.
1997-01-03fix copyrightsIan Lance Taylor2-2/+2
1997-01-03Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>Ian Lance Taylor14-933/+1547
elf64-alpha multiple .got rewrite: * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. (bfd_elf*_mkobject): Don't define here ... * elfxx-target.h: ... but rather here. Default always_size_sections hook to NULL. * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was what the #defines in elf-bfd.h transmuted it to anyway. * section.c: Add SEC_LINKER_CREATED flag. * bfd-in2.h: Rebuild. * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to relocation section flags. (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY to recognize generated bits. * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): Likewise. * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, mips_elf_create_compact_rel_section, mips_elf_create_got_section, mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. * elf32-ppc.c (ppc_elf_create_linker_section, ppc_elf_size_dynamic_sections): Likewise. * elf32-sparc.c (elf32_sparc_check_relocs, elf32_sparc_size_dynamic_sections): Likewise. * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to section flags. (_bfd_elf_create_dynamic_sections): Likewise. (_bfd_elf_make_linker_section_rela): Likewise. * elflink.h (elf_link_create_dynamic_sections): Likewise. (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY to identify generated bits. (elf_link_input_bfd): Likewise. * elf64-alpha.c: Rewrite everything touching relocations.
1997-01-03Put common variables into the appropriate section, based on relocation typesMichael Meissner2-227/+373