* i386linux.c (linux_link_create_dynamic_sections): Create section
[binutils-gdb.git] / bfd / ChangeLog
index d6b9f25a8e96606d5dda063efd9cd91e93123e69..b4eb01ddec13d681c18020f9d8fa44fb4aedf7d5 100644 (file)
@@ -1,5 +1,171 @@
+Tue Aug 16 00:12:31 1994  Eric Youngdale  (ericy@cais.cais.com)
+
+       * i386linux.c (linux_link_create_dynamic_sections): Create section
+       named .linux-dynamic, not .dynamic.
+       (linux_add_one_symbol): Use .linux-dynamic, not .dynamic.
+       (bfd_linux_size_dynamic_sections): Likewise.
+       (linux_finish_dynamic_link): Likewise.
+
+Mon Aug 15 12:16:56 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * coffgen.c (STRING_SIZE_SIZE): Define.
+       (coff_fix_symbol_name): Use STRING_SIZE_SIZE, not 4.
+       (coff_write_symbols, build_string_table): Likewise.
+       (coff_get_normalized_symtab): Likewise.
+
+       * libcoff-in.h (obj_symbol_slew): Don't define.
+       (struct coff_tdata): Remove unused fields index_slew, raw_linenos,
+       and flags.
+       * libcoff.h: Rebuilt.
+       * coffcode.h (coff_mkobject): Don't initialize raw_linenos.
+       (coff_mkobject_hook): Don't initialize flags.
+
+       * aout-target.h (MY_zmagic_contiguous): Define as 0 if not already
+       defined.
+       (MY(backend_data)): Use MY_zmagic_contiguous, not hardcoded 0.
+       * i386linux.c (MY_zmagic_contiguous): Define.
+
+       * elfcode.h (bfd_section_from_shdr): If a SHT_SYMTAB section in a
+       shared object has SHF_ALLOC set, create a BFD section for it.
+       (elf_section_from_bfd_section): There may be a BFD section for a
+       SHT_SYMTAB section.
+
+       * coffcode.h (styp_to_sec_flags): Add name argument.  If no flags
+       are recognized, chose section flags based on the name.
+       (bfd_coff_backend_data): _bfd_styp_to_sec_flags_hook field: Add
+       name argument.
+       (bfd_coff_styp_to_sec_flags_hook): Add name argument.
+       (coff_compute_section_file_positions): Don't adjust the section
+       position by COFF_PAGE_SIZE unless SEC_ALLOC is set.
+       * libcoff.h: Rebuilt.
+       * coffgen.c (make_a_section_from_file): Pass section name to
+       bfd_coff_styp_to_sec_flags_hook.
+       * ecoff.c (_bfd_ecoff_styp_to_sec_flags): Add unused name
+       argument.
+       * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Add name argument to
+       prototype.
+
+Fri Aug 12 11:22:40 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * elfcode.h (section_from_elf_index): Correct check for invalid
+       section index.
+
+       * elfcode.h (elf_link_add_object_symbols): If there is no symbol
+       table, try using the dynamic symbol table.  From Eric Youngdale
+       <ericy@cais.cais.com>.
+
+       * configure.host (sparc-*-solaris2*): Use solaris2, not sysv4.
+       The linker depends upon configuring for solaris2.
+       * hosts/solaris2.h: New file; include hosts/sysv4.h.
+       * config/solaris2.mh: New file; copy of config/sysv4.mh.
+
+Wed Aug 10 13:09:38 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * aoutx.h (adjust_z_magic): Make sure data section is padded to
+       page boundary when the VMA is set by the calling program.  From
+       Eric Youngdale <ericy@cais.cais.com>.
+
+Mon Aug  8 17:18:49 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
+       * aout-ns32k.c: Add declarations that were in aout-ns32k.h, change
+       declarations to traditional form.
+       (MY_reloc_howto, MY_put_reloc): Change from macro to function.
+       (ns32k_relocate_contents): New function.
+       * aout-ns32k.h: Remove.
+       * cpu-ns32k.c: Add declarations that were in aout-ns32k.h, change
+       declarations to traditional form.
+       (ns32k_final_link_relocate): Call ns32k_relocate_contents.
+       * netbsd532.c: Reformat to standards, add copyright notice.
+       (ARCH): Don't define.
+       (aout-ns32k.h): Don't include.
+       * pc532-mach.c: Ditto.
+
+Mon Aug  8 17:55:52 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * coff-i960.c (coff_i960_relocate): Don't try to convert relocs
+       against common symbols.
+
+Sat Aug  6 22:27:30 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
+
+       * irix-core.c (irix_core_core_file_p):  Ignore sections that
+       are not contained in the core file.
+
+Thu Aug  4 11:32:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * coff-m68k.c (m68k_reloc_type_lookup): New function.
+       (coff_bfd_reloc_type_lookup): Define.
+       * cf-m68klynx.c (_bfd_m68kcoff_reloc_type_lookup): Define.
+
+       * elfcode.h (elf_bfd_final_link): Force the vma of sections which
+       do not have SEC_ALLOC set to be 0.  This is needed to handle
+       relocs against debugging sections.
+
+Wed Aug  3 16:45:41 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * coff-i960.c (coff_i960_relocate): Rewrote to change relocs
+       against locally defined symbols into relocs against section
+       symbols, for VxWorks 5.1.
+
+Wed Aug  3 10:34:37 1994  Eric Youngdale  (ericy@cais.cais.com)
+
+       * i386linux.c (linux_add_one_symbol): Only handle
+       SHARABLE_CONFLICTS specially if BSF_CONSTRUCTOR is set.  Set hashp
+       for a GOT or PLT symbol.  Set jump field of fixup for a PLT symbol.
+       (linux_tally_symbols): Check section of real symbol.  When looking
+       for a builtin fixup, check builtin and jump flags.  Create no more
+       than one fixup, and always create one if the real symbol is in the
+       absolute section.  Only strip absolute symbols.
+
+Wed Aug  3 05:08:24 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
+
+       * coffcode.h (coff_write_object_contents): set internal_a.magic to
+       LYNXCOFFMAGIC whenever 68k, SPARC or i386 LynxOS
+       (yes, they have the same magic number!)
+
+Tue Aug  2 10:43:21 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * hp300hpux.c (BMAGIC): Define as HPUX_DOT_O_MAGIC, to make test
+       in aoutx.h work correctly.
+
+       * coff-i960.c (coff_i960_relocate): New function.
+       (howto_rellong, howto_iprmed): Use it as special_function.
+
+       * libbfd-in.h: Move declarations of bfd_read, bfd_write, bfd_seek,
+       bfd_tell, bfd_flush, and bfd_stat from here...
+       * bfd-in.h: ...to here, to make them visible to programs which
+       know more about the object file format than BFD does.
+       * libbfd.h, bfd-in2.h: Rebuilt.
+
+Mon Aug  1 17:55:53 1994  Fred Fish  (fnf@cygnus.com)
+
+       * ptrace-core.c (ptrace_unix_core_file_p):  Convert zalloc usage
+       to bfd_zalloc.
+
 Mon Aug  1 12:04:40 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
 
+       * elf64-sparc.c (ELF_MAXPAGESIZE): Define.
+
+       ELF linker patches from Eric Youngdale <ericy@cais.cais.com>.
+       * elfcode.h (elf_link_create_dynamic_sections): Set type of
+       _DYNAMIC to STT_OBJECT.
+       (NAME(bfd_elf,record_link_assignment)): Always create hash table
+       entry.  Set type to STT_OBJECT.
+       (elf_link_output_extsym): Don't set type of weak defined symbol to
+       STB_WEAK if symbol was referenced.
+       (map_program_segments): Check DYNAMIC as well as EXEC_P.
+       (assign_file_positions_except_relocs): Likewise.
+       * elf32-i386.c (elf_i386_create_dynamic_sections): Set type of
+       _GLOBAL_OFFSET_TABLE to STT_OBJECT.
+       (elf_i386_check_relocs): Ignore local PLT32 relocs.
+       (elf_i386_relocate_section): Treat local PLT32 relocs as PC32.
+
+       * elfcode.h (elf_adjust_dynamic_symbol): Correct weak symbol
+       handling again.
+
+       * elfcode.h (elf_slurp_reloc_table): Don't try to read the relocs
+       if there aren't any.
+
        * configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
        * hosts/solaris2.h: Remove.
        * config/solaris2.mh: Remove.