aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1996-10-08 * elflink.h (elf_link_add_object_symbols): If a symbol is a weakIan Lance Taylor2-1/+8
definition in a dynamic object, add it to the dynamic symbol table if any dynamic object mentions it. Reverts part of last patch. PR 10827.
1996-10-08 * sunos.c (struct sunos_link_hash_table): Add got_base field.Ian Lance Taylor1-0/+8
(sunos_link_hash_table_create): Initialize got_base. (bfd_sunos_size_dynamic_sections): If the .got section is more than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to 0x1000. (sunos_check_dynamic_reloc): Subtract got_base from a base relative relocation. PR 10684.
1996-10-08 * configure.host: Add support for windows host (a build doneStu Grossman2-6/+41
under the Microsoft build environment).
1996-10-08 * elf32-mips.c (elf_mips_isa): New static function.Ian Lance Taylor2-12/+65
(_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking -mips1 and -mips2 code together, or -mips3 and -mips4 code.
1996-10-07 * archive.c (do_slurp_coff_armap): Only treat archive as littleIan Lance Taylor1-0/+5
endian for i960 COFF.
1996-10-04 * coffcode.h (coff_compute_section_file_positions): Adjust sofarIan Lance Taylor1-0/+3
by the change in size of the section when EXEC_P is not set.
1996-10-04 * coff-m68k.c (coff_rtype_to_howto): Define if not defined.Ian Lance Taylor2-1/+9
(m68kcoff_rtype_to_howto): New static function. * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section VMA to the addend for a PC relative reloc.
1996-10-04 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed onIan Lance Taylor1-0/+4
HP/UX 10.20. * Makefile.in: Rebuild dependencies.
1996-10-04 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear whenIan Lance Taylor2-6/+15
som.h is included.
1996-10-04 * Makefile.in: Remove explicit dependencies for mn10200 andJeff Law2-9/+21
mn10300 files. (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c. (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c (dependencies): Rebuilt.
1996-10-03 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_symsIan Lance Taylor1-0/+3
during this function.
1996-10-03 * elflink.c (_bfd_elf_create_linker_section): Only use an existingIan Lance Taylor1-0/+3
section if the flags are compatible.
1996-10-03 * configure.in: Add havevecs, and put it in tdefaults.Ian Lance Taylor8-36/+188
* mpw-config.in: Likewise. * configure: Rebuild. * targmatch.sed: New file; a sed script to build targmatch.h from config.bfd. * config.bfd: Add #if, #endif, and comments for targmatch.h. * targets.c: Include "fnmatch.h". (struct targmatch): Define. (bfd_target_match): Define by including targmatch.h. (bfd_find_target): If the target is not found by name, search for it as a configuration triplet. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, i386dynix.o, m68k4knetbsd.o, and riscix.o. (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. (HFILES): Add targmatch.h. Also, alphabetize and reindent. (CFILES): Remove i386dynix.c and hp300bsd.c. (targmatch.h): New target. (do_clean): Remove targmatch.h. * configure.in: Add BFD_NEED_DECLARATION(getenv). * acconfig.h: Add NEED_DECLARATION_GETENV. * configure, config.in: Rebuild. * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
1996-10-03Grrr. The mn10200 and mn10300 are _not_ similar enough to easily supportJeff Law12-53/+213
with a single generic configuration. So break them up into two different configurations. See the individual ChangeLogs for additional detail.
1996-10-03 * Makefile.in (do_clean): Move config.log to do_distclean.Jason Molenda2-3/+7
1996-10-03 * cpu-mn10x00.c, elf32-mn10x00.c: New files.Jeff Law12-19/+282
* Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. (elf32-mn10x00.o): Add dependencies. * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. (bfd_mn10x00_arch): Declare. (bfd_archures_list): Add bfd_mn10x00_arch. * config.bfd: Add mn10x00-*-*. * configure.in: Add bfd_elf32_mn10x00_vec. * elf.c (prep_headers): Handle bfd_arch_mn10x00. * targets.c (bfd_elf32_mn10x00_vec): Declare. (bfd_target_vector): Add bfd_elf32_mn10x00_vec. * bfd-in2.h, configure: Rebuilt. Stubbing out Matsushita support.
1996-10-02 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.Ian Lance Taylor1-0/+5
(N_GETMID_NET, N_GETFLAG_NET): Likewise. (NO_SWAP_MAGIC): Don't define. (SWAP_MAGIC): Define.
1996-10-02Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>Ian Lance Taylor7-172/+305
openVMS/Alpha: Provide filename and case_hack flags via symbol table from gas. Add case_hack code for symbol output from vax/vms. * evax-alpha.c (evax_initialize): Remove filename handling, filename is provided via symbol table. (evax_get_symtab): Use local symbol count when setting up table. * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when debugging. (_bfd_evax_write_egsd): Skip file name symbol. * evax-emh.c (get_vms_time_string): Local function now. (_bfd_evax_write_emh): Extract source filename and case_hack flags from symbol table. * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names through _bfd_evax_case_hack_symbol. * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New functions. (_bfd_evax_basename): Removed. (_bfd_get_vms_time_string): Moved to evax-emh.c. * evax.h (evax_private_data_struct): Remove filename. (flag_hash_long_names, flag_show_after_trunc, flag_no_hash_mixed_case, vms_name_mapping): New flags for vms_case_hack.
1996-10-02 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there isIan Lance Taylor2-1/+12
no hash table entry for a global symbol.
1996-10-01 * cofflink.c (coff_link_add_symbols): Don't override a meaningfulIan Lance Taylor2-4/+39
symbol type with T_NULL. Warn if symbol type changes. Based on patch from Philippe De Muyter <phdm@labauto1.ulb.ac.be>.
1996-10-01Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>Ian Lance Taylor2-1/+11
* config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
1996-10-01 * elflink.h (elf_link_add_object_symbols): Only put a symbol fromIan Lance Taylor2-7/+21
a dynamic object in the dynamic symbol table if it is referenced or defined by a regular object. PR 10711.
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.