aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
1994-10-05 * archive.c (bfd_construct_extended_name_table): SVR4 uses slashIan Lance Taylor1-0/+5
newline at the end of the file name, not just newline.
1994-10-04 * ecoff.c (_bfd_ecoff_new_section_hook): Default section alignmentIan Lance Taylor1-0/+3
power to 4, rather than using align_power_min.
1994-10-04 * coffcode.h (coff_new_section_hook): Don't use align_power_min;Ian Lance Taylor1-0/+10
use COFF_DEFAULT_SECTION_ALIGNMENT_POWER instead. Force the .stab and .stabstr sections to be aligned to no more than 2. Remove COFF_SPARC special cases. * coff-a29k.c: Define COFF_DEFAULT_SECTION_ALIGNMENT_POWER. * coff-apollo.c, coff-go32.c, coff-h8300.c: Likewise. * coff-h8500.c, coff-i386.c, coff-i960.c, coff-m68k.c: Likewise. * coff-m88k.c, coff-rs6000.c, coff-sh.c, coff-sparc.c: Likewise. * coff-we32k.c, coff-z8k.c: Likewise. PR 5706.
1994-10-04 * configure.in: Use ${config_shell} when running config.bfd.Ian Lance Taylor1-1/+3
1994-10-04 * cofflink.c (coff_link_input_bfd): Don't try to convert a longIan Lance Taylor1-0/+3
filename if the offset field is zero.
1994-10-04 * elfcode.h (swap_out_syms): If the alignment of a common symbolIan Lance Taylor1-0/+10
was not set, use a sensible default rather than zero. PR 5751.
1994-10-03 * rs6000-core.c (rs6000coff_core_p): Set SEC_HAS_CONTENTS flagPeter Schauer1-0/+6
for .stack and .ldinfo sections. Cast coredata.c_tab to a file_ptr to avoid warnings from gcc.
1994-09-30 * elfcode.h (elf_bfd_final_link): Remove assertion when a nonIan Lance Taylor1-0/+6
SEC_IN_MEMORY section is found in dynobj. This can happen when linking PIC compiled code.
1994-09-29fix typuKen Raeburn1-2/+2
1994-09-29* reloc.c (bfd_install_relocation): Change type of data to bfd_byte *, to goKen Raeburn1-0/+3
along with yesterday's change.
1994-09-29* elf.c (bfd_elf_print_symbol): Moved here from elf_print_symbol in elfcode.h.Ken Raeburn1-0/+7
(case bfd_print_symbol_all): Print symbol's size field, except for common symbols; print their alignment. * elfcode.h (elf_print_symbol): Deleted. * libelf.h (bfd_elf_print_symbol): Declare. (bfd_elf{32,64}_print_symbol): Replace declarations with macros.
1994-09-29* syms.c (bfd_print_symbol_vandf): Show BSF_LOCAL and BSF_GLOBAL in one column.Ken Raeburn1-0/+6
Use the column freed up to show BSF_FUNCTION and BSF_FILE.
1994-09-29 * syms.c (stt): Add .rdata and .rodata.Ian Lance Taylor1-0/+4
PR 5714.
1994-09-28 * reloc.c (bfd_install_relocation): Cast data_start to bfd_byte *Ian Lance Taylor1-0/+23
before trying to add values to it.
1994-09-26 * elfcode.h (assign_file_positions_except_relocs): Align theIan Lance Taylor1-0/+3
section VMA and the file position even if D_PAGED is not set.
1994-09-26 * bfd-in.h (bfd_seek): Change declaration to not mark fp const.Ian Lance Taylor1-0/+8
* bfd-in2.h: Rebuild. * libbfd.c (bfd_seek): Don't mark parameters const, to avoid conflicts with declaration.
1994-09-23 * elfcode.h (map_program_segments): Don't abort if we allocatedIan Lance Taylor1-0/+11
too much space for the program header, only if we allocated too little.
1994-09-20* libaout.h: Fix comment.J.T. Conklin1-0/+6
* ns32knbsd.h: Changed M_NS32K_NETBSD to M_532_NETBSD to match libaout.h.
1994-09-20 * coff-sh.c (rtype2howto): Remove; unused.Ian Lance Taylor1-0/+6
(coff_sh_relocate_section): Remove unused local variable rstat. (reloc_processing): Comment out; unused.
1994-09-16 * aoutx.h (aout_link_write_other_symbol): If h->indx is -2, thenIan Lance Taylor1-0/+10
always write it out even if it would normally be stripped. (aout_link_input_section_std): If we find a reloc against a stripped global symbol, force it to be written out rather than merely calling unattached_reloc. (aout_link_input_section_ext): Likewise. (aout_link_reloc_link_order): Likewise.
1994-09-14 * aoutx.h (aout_link_write_symbols): Rename skip_indirect toIan Lance Taylor1-0/+4
skip_next. If we find an N_WARNING symbol which has already been written out, set skip_next. PR 5634.
1994-09-14 * som.h (struct somdata): New field sorted_syms.Jeff Law1-0/+11
(obj_som_sorted_syms): Accessor macro. * som.c (som_object_setup): Initialize sorted_syms to NULL. (som_prep_for_fixups): Sort a copy of the BFD's symbol table; store the sorted symbol table in sorted_syms. (som_write_fixups): Initalize tmp_reloc to NULL to make GCC happy. (som_begin_writing): Similarly for exec_header. Pass the sorted symbol table to som_write_symbol_strings. (som_build_and_write_symbol_table): Use the sorted symbols rather than the canonical symbol table.
1994-09-14 * som.h (som_symbol_type): Add "stringtab_offset" field.Jeff Law1-0/+7
* som.c (som_write_symbol_strings): Use "stringtab_offset" rather than destroying the "name" field in the BFD symbol. (som_build_and_write_symbol_table): Likewise.
1994-09-14 * libecoff.h (struct ecoff_tdata): Add field find_buffer.Ian Lance Taylor1-0/+4
* ecoff.c: Include aout/stab_gnu.h. (ecoff_find_nearest_line): Handle stabs debugging information. PR 3954.
1994-09-14 * elfcode.h (elf_link_output_extsym): Keep a symbol marked as weakIan Lance Taylor1-0/+5
even if it is referenced by another object.
1994-09-14 * som.c (som_fixup_formats): Case R_ENTRY (0xb3), set bothJeff Law1-0/+7
'T' and 'U' to grab all the unwind information. (som_set_reloc_info): Make 'U' unwind bits persist across multiple SOM relocations. Set the addend field of an R_ENTRY relocation to the value in 'T'; set the addend field on an R_EXIT relocation to the value in 'U'.
1994-09-14 * som.h (som_symbol_type): Delete unwind field.Jeff Law1-0/+7
* som.c (som_write_fixups): For R_ENTRY fixups, get 32bits of unwind information from the addend field of the R_ENTRY, get the other 32bits from the addend field of the R_EXIT. (bfd_som_attach_unwind_info): Delete function and all references.
1994-09-14 * som.h (som_symbol_type): Delete unused a.out-related fields.Jeff Law1-0/+5
* som.c (bfd_section_from_som_symbol): Use bfd_abs_section_ptr instead of &bfd_abs_section.
1994-09-14 * som.c (som_object_setup): Handle exec_entry and exec_flags beingJeff Law1-0/+7
switched in executables created by the OSF1 linker. (som_write_fixups): Handle R_EXIT just like the R_{F,L,R}SEL fixups. Support R_ALT_ENTRY (handle just like R_EXIT).
1994-09-14Tue Sep 13 16:04:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)Steve Chamberlain1-0/+10
* cofflink.c (coff_link_input_bfd): syment_base is unsigned so can't compare -ve numbers with it. Mon Sep 12 20:31:17 1994 Steve Chamberlain (sac@jonny.cygnus.com) * configure.in (shcoff_vec): Use cofflink.o now. * coff-sh.c: Rewritten to use new fast coff backend.
1994-09-13 * aoutx.h (NAME(aout,final_link)): Don't assume that all the inputIan Lance Taylor1-0/+5
files are a.out.
1994-09-13* configure.host (sparc-*-netbsd): use sparcnbsd.J.T. Conklin1-1/+21
(ns32k-*-netbsd): use ns32knbsd. * hosts/{nbsd,i386nbsd,ns32knbsd,sparcnbsd}.h: New files, NetBSD host support. * sparcnetbsd.c: New file, adds support for NetBSD/sparc. * config/sparc-nbsd.mt: Likewise. * netbsd.h: New file, definitions common to all netbsd ports. * i386netbsd.c: Use it. * ns32knetbsd.c: Use it. * Makefile.in, configure.in, targets.c, config/i386-nbsd.mt, config/ns32k-nbsd.mt: canonicalize netbsd targets to conform to file/variable naming conventions. * i386netbsd.c: New file, renamed from netbsd386.c. * ns32knetbsd.c: New file, renamed from netbsd532.c.
1994-09-13 * som.c (som_reloc_skip): Correct off-by-one error for 4-byteJeff Law1-0/+10
R_NO_RELOCATION fixups. (bfd_section_from_som_symbol): Return the absolute section if the symbol isn't contained in any section in the output file. (som_slurp_symbol_table): ST_PRI_PROG and ST_SEC_PROG symbols are not function symbols (they are magic code labels which *can* be the targets of cross space branches). $START$ is not a section symbol.
1994-09-12 * elfcode.h (swap_out_syms): Set the type of an undefined symbolIan Lance Taylor1-0/+7
to STT_FUNC if the BSF_FUNCTION flag is set.
1994-09-12 * cofflink.c (coff_link_input_bfd): If r_symndx is -1, don'tIan Lance Taylor1-0/+12
change it. (_bfd_coff_generic_relocate_section): If r_symndx is -1, it is an absolute reloc. Don't dump core using r_symndx as an array index. * cf-m68klynx.c (coff_bfd_link_add_symbols): Define. (lynx_link_add_symbols): New static function (copy of function in coff-i386.c). (coff_m68k_lynxrtype_to_howto): sym argument may be NULL. * coff-i386.c (coff_i386_rtype_to_howto): Likewise. * coff-a29k.c (coff_a29k_relocate_section): Handle an r_symndx value of -1, meaning an absolute reloc.
1994-09-12 * ctor.c: Remove; obsolete.Ian Lance Taylor1-0/+8
* Makefile.in: Rebuild dependencies. (BFD_LIBS): Remove ctor.o. (CFILES): Remove ctor.c. * libbfd.h: Rebuild.
1994-09-12 * elf32-hppa.c (elf32_hppa_relocate_section): If there was a linkJeff Law1-0/+14
error of some sort (for example, undefined symbols), then do not apply any relocs, just notify the user of the errors. (elf32_hppa_backend_begin_write_processing): Do not build a symbol extension section for an executable (it's useless). (elf32_hppa_link_output_symbol_hook): Do nothing if there was a link error of some sort (for example, undefined symbols). (elf32_hppa_read_symext_info): Kludge. Turn off SEC_HAS_CONTENTS for all the input symbol extension sections to keep the generic BFD code happy. Temporarily turn it on to read the contents of the symbol extension section.
1994-09-12 * config/hppaosf.mh (RANLIB): Do not set.Jeff Law1-0/+5
* config/hppabsd.mh (RANLIB): Likewise.
1994-09-12Get the new COFF linker code working for i386-lynx.Ian Lance Taylor1-0/+22
* cf-i386lynx.c: Remove #if 0 code. (i386_lynxos_coff_object_p): Remove unused function. (coff_bfd_link_add_symbols): Define. (lynx_link_add_symbols): New static function. * coffcode.h (coff_bfd_link_hash_table_create): If coff_relocate_section is defined, only define this if not already defined. (coff_bfd_link_add_symbols, coff_bfd_final_link): Likewise. * linker.c (_bfd_generic_final_link): Handle bfd_indirect_link_order explicitly, rather than via _bfd_default_link_order. (set_symbol_from_hash): New static function, broken out of _bfd_generic_link_write_global_symbol. (_bfd_generic_link_write_global_symbol): Symbol setting code moved to set_symbol_from_hash; call it. (default_indirect_link_order): Add generic_linker argument. Change all callers. If false, set the generic symbols based on the hash table entries.
1994-09-09 * coffgen.c (coff_get_symtab): Reindented. Removed commented outIan Lance Taylor1-0/+3
call to bfd_constructor_entry.
1994-09-09 Convert m68k COFF to use new COFF backend linker.Ian Lance Taylor1-2/+11
* coff-m68k.c (coff_relocate_section): Define. * cf-m68klynx.c (coff_rtype_to_howto): Define. (coff_m68k_lynx_rtype_to_howto): New static function. * configure.in (m68kcoff_vec): Build cofflink.o. (m68kcoffun_vec, m68klynx_coff_vec): Likewise.
1994-09-08 * coff-h8300.c (h8300_reloc16_extra_cases, case RELBYTE): Flag overflowsSteve Chamberlain1-0/+17
correctly.
1994-09-07 * coff-go32.c (RTYPE2HOWTO): Fully parenthesize arguments.Ian Lance Taylor1-0/+30
* coff-i960.c (RTYPE2HOWTO): Likewise. * coff-m88k.c (RTYPE2HOWTO): Likewise. * coff-we32k.c (RTYPE2HOWTO): Likewise. Make i386 COFF use new COFF backend linker. * coff-i386.c (RTYPE2HOWTO): Fully parenthesize arguments. (coff_relocate_section): Define. (coff_i386_rtype_to_howto): New function. * configure.in (i386coff_vec): Use cofflink.o. (i386lynx_coff_vec): Likewise. * coffcode.h (bfd_coff_backend_data): Add new field _bfd_coff_rtype_to_howto. (bfd_coff_rtype_to_howto): Define. (coff_rtype_to_howto): Define to use RTYPE2HOWTO, if not already defined. (bfd_coff_std_swap_table): Initialize new field. * cofflink.c (_bfd_coff_final_link): Allocate section_count + 1 section_info structures, since the target_index is 1 based. (coff_link_input_bfd): Set *secpp to bfd_com_section_ptr for a common symbol. Adjust rel_hash by the output reloc count. (_bfd_coff_generic_relocate_section): New function. * libcoff-in.h (_bfd_coff_generic_relocate_section): Declare. * libcoff.h: Rebuild. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. * coff-mips.c (mips_ecoff_backend_data): Likewise.
1994-09-07 * som.c (som_bfd_derive_misc_symbol_info): Treat undefined codeJeff Law1-0/+13
symbols and undefined symbols which no type in the same manner if the associated BFD symbol has BSF_FUNCTION set. For a defined symbol which no type, select a SOM type based on the flags of the section containing the symbol. (som_slurp_symbol_type): Set BSF_FUNCTION for undefined ST_STUB or ST_CODE symbols (importing a non-function code symbol is meaningless in SOM). (som_set_reloc_info): Don't set "offset" to the section's vma; it should always start at zero.
1994-09-06Minor tweaks to make COFF code support both new and old style linker.Ian Lance Taylor1-2/+4
1994-09-06 Add new style linker support to COFF backend. a29k only for now.Ian Lance Taylor1-0/+68
* cofflink.c: New file. * libcoff-in.h: Include bfdlink.h. (obj_coff_external_syms, obj_coff_strings): Define accessor macro. (obj_coff_sym_hashes): Define accessor macro. (struct coff_tdata): Add fields external_syms, strings, and sym_hashes. (struct coff_link_hash_entry): Define. (struct coff_link_hash_table): Define. (coff_link_hash_lookup, coff_link_hash_traverse): Define. (coff_hash_table): Define. (_bfd_coff_link_hash_table_create): Declare. (_bfd_coff_link_add_symbols, _bfd_coff_final_link): Declare. * coffcode.h (bfd_coff_backend_data): Add fields _bfd_relsz, _bfd_coff_swap_reloc_in, _bfd_coff_sym_is_global, _bfd_coff_compute_section_file_positions, _bfd_coff_relocate_section. (bfd_coff_relsz, bfd_coff_swap_reloc_in): Define. (bfd_coff_sym_is_global): Define. (bfd_coff_compute_section_file_positions): Define. (bfd_coff_relocate_section): Define. (coff_mkobject_hook): Initialize obj_raw_syment_count and obj_conv_table_size. (coff_compute_section_file_positions): Set target_index of all sections. Set output_has_begun field. (coff_write_object_contents): Don't set target_index; now done by coff_compute_section_file_positions. Remove obsolete handling of scn_base and data_base. Don't bother to check that target_index is positive, since it always is. Remove use of pad, which is always zero. Check obj_raw_syment_count, not bfd_get_symcount, for the number of symbols, but only write them out if bfd_get_symcount is non-zero. (coff_slurp_symbol_table): Use obj_raw_syment_count, not bfd_get_symcount for the number of symbols. Don't set obj_conv_table_size. (coff_sym_is_global): New static function or macro. (coff_slurp_reloc_table): Call coff_swap_reloc_in, not bfd_swap_reloc_in. (coff_bfd_link_hash_table_create): If coff_relocate_section is defined, define as _bfd_coff_link_hash_table_create. (coff_bfd_link_add_symbols): Similar change. (coff_bfd_final_link): Similar change. (coff_relocate_section): Define as NULL if not defined. (bfd_coff_std_swap_table): Initialize new fields. * coffgen.c (coff_real_object_p): Don't set obj_raw_syment_count and obj_conv_table_size here. (coff_count_linenumbers): Reindent. If bfd_get_symcount is zero, add up the line numbers from the sections. (coff_write_symbols): Don't set bfd_get_symcount. (coff_pointerize_aux): Don't pointerize a nonpositive x_endndx field. (coff_get_normalized_symtab): Use obj_raw_syment_count, not bfd_get_symcount. (coff_print_symbol): If auxp->fix_end, print x_endndx value. * coffswap.h (coff_swap_reloc_in): Rename from bfd_swap_reloc_in. Reindent. Change argument type to PTR. * coff-a29k.c (coff_a29k_relocate_section): New static function. (coff_relocate_section): Define. * configure.in (a29kcoff_big_vec): Compile cofflink.o. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new fields. * coff-mips.c (mips_ecoff_backend_data): Likewise. * libcoff.h: Rebuilt. * Makefile.in: Rebuilt dependencies. (BFD32_BACKENDS): Add cofflink.o. (CFILES): Add cofflink.c.
1994-09-06* coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check for sectionKen Raeburn1-0/+4
symbol, and print its aux fields with appropriate labels.
1994-09-06Makefile.in (ALL_MACHINES): ADded cpu-arm.o.Ken Raeburn1-0/+4
1994-09-05TiposIan Lance Taylor1-2/+2
1994-09-05ARM Acorn/RISCiX target and host patches from Richard EarnshawKen Raeburn1-0/+9