aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1996-09-23 * reloc.c: Rename m32r relocs.David Edelsohn1-0/+8
* bfd-in2.h, libbfd.h: Rebuilt. * elf32-m32r.c: Update.
1996-09-20 * aoutx.h (aout_link_input_section_ext): When doing a relocateableIan Lance Taylor1-0/+6
link, adjust the symbol index of a base relative reloc. Don't change the addend of a PC relative reloc if pcrel_offset is set. * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for a relocateable link. PR 10692.
1996-09-20 * reloc.c (bfd_perform_relocation): Apply the relocation even ifIan Lance Taylor2-36/+71
it is zero, in case src_mask matters. (bfd_install_relocation): Likewise. PR 10685.
1996-09-19 * xcofflink.c (xcoff_link_add_symbols): Always initializeIan Lance Taylor1-0/+7
keep_syms. (_bfd_xcoff_bfd_final_link): Don't set target_index to an uninitialized value.
1996-09-17 * coff-sh.c (sh_relocate_section): Check for an illegal symbolIan Lance Taylor1-0/+2
index.
1996-09-17 * coffcode.h (coff_slurp_line_table): Warn about illegal symbolIan Lance Taylor2-10/+49
indices, rather than crashing. (coff_slurp_reloc_table): Likewise. Check whether the howto field is NULL.
1996-09-16 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26DIan Lance Taylor1-0/+5
reloc to 0. (coff_arm_adjust_symndx): New static function. (coff_adjust_symndx): Define. Fix ld -r.
1996-09-16 * srec.c (srec_scan): Accept multiple symbols on a single line.Ian Lance Taylor1-0/+7
From Pascal Martin <pmartin@alsys.com>.
1996-09-16 * README: New file.Ian Lance Taylor1-0/+1
1996-09-13 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.David Edelsohn1-0/+5
(sunos_merge_private_bfd_data): New function.
1996-09-13 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD ratherIan Lance Taylor1-1/+18
than input BFD. (bfd_merge_private_bfd_data): Likewise. * section.c (bfd_copy_private_section_data): Likewise. * syms.c (bfd_copy_private_symbol_data): Likewise. * bfd-in2.h: Rebuild. * aout-target.h (MY_bfd_copy_private_section_data): Check that both BFD's are the right flavour. * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise. * elf.c (_bfd_elf_copy_private_symbol_data): Likewise. * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise. (_bfd_mips_elf_merge_private_bfd_data): Likewise. * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise. (ppc_elf_merge_private_bfd_data): Likewise. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise. * peicode.h (pe_bfd_copy_private_section_data): Likewise.
1996-09-13 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields forIan Lance Taylor2-5/+15
R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes its sanity check.
1996-09-12* cpu-m32r.c,elf32-m32r.c: New files.David Edelsohn2-0/+39
1996-09-12 * reloc.c: Add m32r relocs.David Edelsohn3-2/+33
* bfd-in2.h, libbfd.h: Rebuilt.
1996-09-12 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.Ian Lance Taylor1-0/+4
1996-09-11 * tekhex.c (first_phase): Change type parameter from char to int.Ian Lance Taylor1-0/+4
(out): Likewise. (pass_over): Change func to expect int, not char.
1996-09-11 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOCIan Lance Taylor2-1/+7
rather than SEC_LOAD when aligning the file offset for the first section in a segment. Fixes the case in which . is set just before the .bss section in a linker script.
1996-09-11 * syms.c (coff_section_type): Make arg const.Fred Fish4-17/+140
* irix-core.c (irix_core_core_file_p): Remove extraneous extra arg to make_bfd_asection(). * elf-bfd.h (bfd_section_from_phdr): Add prototype. * elfcode.h (bfd_section_from_phdr): Remove prototype. (_bfd_elf_stringtab_init): Remove prototype. * netbsd-core.c (swap_abort): Add prototype. * aix386-core.c (swap_abort): Ditto & make static * hpux-core.c (swap_abort): Ditto & make static. * irix-core.c (swap_abort): Ditto & make static. * ptrace-core.c (swap_abort): Ditto & make static. * trad-core.c (swap_abort): Ditto & make static. * coffswap.h (coff_swap_reloc_in): Ditto. (coff_swap_reloc_out): Ditto. (coff_swap_filehdr_in): Ditto. (coff_swap_filehdr_out): Ditto. (coff_swap_sym_in): Ditto. (coff_swap_sym_out): Ditto. (coff_swap_aux_in): Ditto. (coff_swap_aux_out): Ditto. (coff_swap_lineno_in): Ditto. (coff_swap_lineno_out): Ditto. (coff_swap_aouthdr_in): Ditto. (coff_swap_aouthdr_out): Ditto. (coff_swap_scnhdr_in): Ditto. (coff_swap_scnhdr_out): Ditto. * ihex.c (ihex_sizeof_headers): Ditto. * tekhex.c (getsym): Ditto. (find_chunk): Ditto & make static. (insert_byte): Ditto. (first_phase): Ditto. (pass_over): Ditto. (tekhex_get_symtab): Ditto & make static. (tekhex_get_symtab_upper_bound): Ditto & make static. (tekhex_mkobject): Ditto. (tekhex_object_p): Ditto. (move_section_contents): Ditto. (tekhex_get_section_contents): Ditto. (tekhex_set_arch_mach): Ditto & make static. (tekhex_set_section_contents): Ditto. (writevalue): Ditto. (writesym): Ditto. (out): Ditto. (tekhex_write_object_contents): Ditto. (tekhex_sizeof_headers): Ditto. (tekhex_make_empty_symbol): Ditto. (tekhex_get_symbol_info): Ditto. (tekhex_print_symbol): Ditto. * irix-core.c (make_bfd_asection): Ditto. (irix_core_core_file_p): Ditto. (irix_core_core_file_failing_command): Ditto. (irix_core_core_file_failing_signal): Ditto. (irix_core_core_file_matches_executable_p): Ditto. (irix_core_make_empty_symbol): Ditto. * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto. * srec.c (srec_new_symbol): Ditto. (srec_get_section_contents): Ditto. (srec_set_arch_mach): Ditto. (srec_set_section_contents): Ditto. (internal_srec_write_object_contents): Ditto. (srec_write_object_contents): Ditto. (symbolsrec_write_object_contents): Ditto. (srec_sizeof_headers): Ditto. (srec_make_empty_symbol): Ditto. (srec_get_symtab_upper_bound): Ditto. (srec_get_symtab): Ditto. (srec_print_symbol): Ditto and make static. * elf.c (elf_read): Ditto (assign_section_numbers): Ditto. (elf_fake_sections): Ditto. (sym_is_global): Ditto. (elf_map_symbols): Ditto. (get_program_header_size): Ditto. * coffgen.c (make_a_section_from_file): Ditto. (coff_real_object_p): Ditto. (fixup_symbol_value): Ditto. (build_debug_section): Ditto. (copy_name): Ditto. * syms.c (coff_section_type): Ditto.
1996-09-10 * bfd-in2.h: Rebuilt after m32r changes.Jeff Law2-1/+15
1996-09-09 * config.bfd,configure.in,configure: Add m32r support.David Edelsohn4-12/+65
* Makefile.in,archures.c,elf.c,targets.c: Likewise.
1996-09-09 * config.bfd,configure.in,configure: Add m32r support.David Edelsohn2-0/+31
1996-09-09 * config.bfd: Keep target list alphabetically sorted.David Edelsohn2-6/+20
1996-09-09 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forgetJeff Law1-0/+8
to add in the constant part found in the instruction itself. (case R_V850_HI16_S): Likewise. Fixes plumhall/lang.exp failures.
1996-09-07Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+7
* elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16 and R_D10V_18 to be 1 (word).
1996-09-05 * stabs.c (_bfd_link_section_stabs): If the output_section fieldIan Lance Taylor1-0/+6
of either section is bfd_abs_section, then the linker is discarding the section and we should not optimize it. PR 10555.
1996-09-04 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling ofJeff Law2-17/+124
low order sign bit propogationfor R_V850_HI16_S. Fixes c-torture execute/950221-1.c, maybe others.
1996-09-03 * Makefile.in (aout-sparcle.o): New target.David Edelsohn4-20/+59
* aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian. * config.bfd (sparclet-*-aout*): Add case. * configure.in (sparcle_aout_vec): Add case. * configure: Regenerated. * libaout.h (machine_type): Add M_SPARCLET_LE. * targets.c (sparcle_aout_vec): Declare. (bfd_target_vector): Add sparcle_aout_vec. * aout-sparcle.c: New file.
1996-09-03 * elf32-v850.c (bfd_elf3_v850_reloc): New function forJeff Law1-2/+27
handling V850 specific relocs. (elf_v850_howto_table): Use the new function for some relocations. Twiddle masks & shifts for some relocs. Set partial_inplace where needed. Fixing more stuff.
1996-09-02Remove reloc.c from v850_files.Mark Alexander1-1/+1
1996-09-01 * .Sanitize: Remove reloc.c from v850_files.Mark Alexander1-0/+6
1996-09-01 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):Ian Lance Taylor1-0/+6
Rewrite to use BFD file read routines and to avoid using a fixed length for the file name.
1996-08-31 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.Jeff Law2-0/+58
(elf_v850_howto_table): Add support for R_V850_{32,16,8}. (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8} to R_V850_{32,16,8}. So we don't get "reloc XXX not supported" messages anymore.
1996-08-31* elf32-v850.c (reloc_type): Add R_V850_HI16_S.J.T. Conklin3-1/+209
(elf_v850_howto_table): Add info for HI16_S reloc. (v850_reloc_map): Add HI_16_S reloc. * reloc.c: Define BFD_RELOC_V850_* relocs.
1996-08-30 Add SH ELF support.Ian Lance Taylor6-27/+188
* elf32-sh.c: New file. * elf.c (prep_headers): Handle bfd_arch_sh. * elfcode.h (write_relocs): Handle absolute symbol. * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare. (_bfd_elf64_link_read_relocs): Declare. * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from elf_link_read_relocs. Make globally visible. Change all callers. (elf_link_input_bfd): Get external symbols from cache in symtab_hdr->contents. Get contents from cache in elf_section_data. * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not already defined. * reloc.c: Define BFD_RELOC_SH_* relocs. * libbfd-in.h (_bfd_sh_align_load_span): Declare. * coff-sh.c (sh_insns_conflict): Fix a return value. (_bfd_sh_align_load_span): New globally visible function, broken out of sh_align_load. (sh_align_load): Call _bfd_sh_align_load_span. (sh_swap_insns): Change relocs parameter to PTR. * bfd-in2.h, libbfd.h: Rebuild. * targets.c (bfd_elf32_sh_vec): Declare. (bfd_elf32_shl_vec): Declare. * config.bfd (sh-*-elf*): New target. * configure.in (bfd_elf32_sh_vec): New target vector. (bfd_elf32_shl_vec): New target vector. * configure: Rebuild. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add elf32-sh.o. (BFD32_BACKENDS_CFILES): Add elf32-sh.c. * elf.c (map_sections_to_segments): Check that LMA does not skip a page before checking D_PAGED.
1996-08-30 * ihex.c (ihex_scan): Removed unnecessary extbase variable.Ian Lance Taylor2-28/+47
(ihex_write_object_contents): Remove extbase; always use segbase instead.
1996-08-29Recognize i686-*-* for pentium proMichael Meissner4-56/+201
1996-08-27 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed forIan Lance Taylor2-64/+94
R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible. (mips_elf_size_dynamic_sections): Don't require .got to exist. (mips_elf_finish_dynamic_sections): Likewise.
1996-08-23 * configure.host (HLDENV): New variable to set. Set it forIan Lance Taylor1-0/+4
*-*-sysv4*, since those linkers may not support -R but they always support LD_RUN_PATH.
1996-08-23 * libieee.h (NSECTIONS): Don't define.Ian Lance Taylor1-0/+17
(ieee_data_struct): Change section_table to asection **. Add section_table_size. * ieee.c (get_section_entry): If the table isn't big enough, make it bigger. (ieee_slurp_sections): Remove assertion about number of sections. (ieee_object_p): Adjust initialization of ieee to match changes to the structure. PR 10377.
1996-08-20* Makefile.in (ALL_MACHINES): Add cpu-v850.o.J.T. Conklin2-0/+57
(BFD32_BACKENDS) Add elf32-v850.o. * archures.c: Add bfd_v850_arch. * bfd-in2.h: Add bfd_v850_arch. * config.bfd (v850-*-*): New target. * configure: (bfd_elf32_v850_vec) New vector. * configure.in: (bfd_elf32_v850_vec) New vector. * cpu-v850.c: New file. * elf.c (prep_headers): Added case bfd_arch_v850. * elf32-v850.c: New file. * targets.c (bfd_elf32_v850_vec): New vector.
1996-08-15 * mpw-config.in: Update editing of autoconf vars to reflectStan Shebs3-8/+27
Jul 18 configure.in change. * mpw-make.sed: Update editing of include pathnames to be more general, add @DASH_C_FLAG@ to explicit compile rule edit.
1996-08-15Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-0/+8
* reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM, BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET): Added, for internal use by the ARM gas. * libbfd.h: Rebuilt * bfd-in2.h: Rebuilt
1996-08-15Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>Ian Lance Taylor2-39/+77
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo in section dynidx start.
1996-08-13 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whoseIan Lance Taylor1-0/+6
name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an optimization for g++.
1996-08-13If one module has -mrelocatable-lib and the other doesn't, clear the ↵Michael Meissner1-0/+6
-mrelocatable-lib bit
1996-08-11 * elflink.h (elf_link_add_object_symbols): Do not resolve a commonIan Lance Taylor2-3/+21
symbol against a STT_FUNC symbol in a shared library.
1996-08-10 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptorIan Lance Taylor1-0/+4
symbol is found, automatically define the corresponding function code. PR 10299.
1996-08-09 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numauxIan Lance Taylor1-0/+6
if sym.n_numaux is not zero. (_bfd_coff_link_input_bfd): Permit the symbol and the hash table entry to disagree about the number of aux entries if the symbol has zero.
1996-08-09 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dynIan Lance Taylor1-0/+9
section if it might be needed, not just if info->shared. (mips_elf_adjust_dynamic_symbol): Make room for a null element at the start of .rel.dyn if we are going to use it. (mips_elf_finish_dynamic_sections): Only clear the first element of .rel.dyn if the size is greater than zero. Fix this case from c-torture: extern int abort(); typedef int (*frob)(); frob f[] = {abort}; main() { exit(0); }
1996-08-08 * xcofflink.c (xcoff_link_input_bfd): If we already called theIan Lance Taylor2-2/+25
undefined_symbol callback for a symbol, then don't issue any more warnings about loader relocs. (_bfd_ppc_xcoff_relocate_section): Don't do any further processing after calling the undefined_symbol callback.