(linenum→info "unix/slp.c:2238")

binutils/2.18/bfd/ChangeLog-2005

    1: 2005-12-31  Valeriy E. Ushakov  <uwe@NetBSD.org>
    2:             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
    3: 
    4:         * elf32-sh.c (sh_elf_relocate_section): Don't reset relocation
    5:         for R_SH_REL32 in shared objects if the symbol is locally called.
    6: 
    7: 2005-12-31  Alan Modra  <amodra@bigpond.net.au>
    8: 
    9:         * elf64-ppc.c (ppc64_elf_relocate_section): Adjust relocs against
   10:         opd section sym when opd has been edited.  Use correct addend
   11:         when determining branch 'y' bit and branch overflow.  Adjust and
   12:         save opd relocs for ld -r too.
   13: 
   14: 2005-12-30  Eric Christopher  <echristo@apple.com>
   15: 
   16:         * elfxx-mips.c (mips_elf_record_global_got_symbol): Add assert
   17:         to verify we have a got.
   18:         (_bfd_mips_elf_check_relocs): Add R_MIPS_TLS_GOTTPREL to relocs
   19:         needing a GOT.
   20: 
   21: 2005-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
   22: 
   23:         * configure.host (hppa*64*-*-hpux*): Set host64 to true.
   24: 
   25: 2005-12-29  Nick Clifton  <nickc@redhat.com>
   26: 
   27:         * hash.c (bfd_hash_set_default_size): Add more entries to the
   28:         hash_size_primes table.
   29: 
   30:         * stabs.c (_bfd_link_section_stabs): Use bfd_hash_table_init
   31:         rather than bfd_hash_table_init_n(...,251) so that the size of the
   32:         hash table can be controlled by the user.
   33: 
   34: 2005-12-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
   35: 
   36:         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
   37:         instead of !info->shared.
   38: 
   39: 2005-12-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
   40: 
   41:         * vaxlinux.h: New file. (TRAD_CORE_EXTRA_SIZE_ALLOWED): Define.
   42:         (HOST_MACHINE_ARCH): Define. This allows cross-building vax-linux
   43:         hosted binutils.
   44: 
   45: 2005-12-27  Nathan Sidwell  <nathan@codesourcery.com>
   46: 
   47:         * elf32-mt.c (mt_elf_merge_private_bfd_data): Do not allow mixing
   48:         object files from different mt variants.
   49: 
   50: 2005-12-27  Leif Ekblad  <leif@rdos.net>
   51: 
   52:         * config.bfd: Add support for RDOS targets.
   53: 
   54: 2005-12-27  Marty Leisner  <leisner@rochester.rr.com>
   55: 
   56:         * dwarf2.c (lookup_symbol_in_function_table): Check for a function
   57:         name before passing it to strcmp.
   58: 
   59: 2005-12-27  Alan Modra  <amodra@bigpond.net.au>
   60: 
   61:         * elf.c (elf_find_function): Don't ignore section syms.
   62:         Simplify filename logic.
   63: 
   64: 2005-12-27  Alan Modra  <amodra@bigpond.net.au>
   65: 
   66:         * elf32-ppc.c (add_stub_sym): Pass info rather than htab.
   67:         Use different names for pic vs non-pic, '.' instead of '_'.
   68:         (allocate_dynrelocs): Adjust add_stub_sym call.
   69: 
   70: 2005-12-27  Alan Modra  <amodra@bigpond.net.au>
   71: 
   72:         * elf.c (bfd_section_from_shdr): Treat invalid reloc sections as
   73:         normal sections rather than returning false.
   74: 
   75: 2005-12-27  Alan Modra  <amodra@bigpond.net.au>
   76: 
   77:         * coff-h8300.c (h8300_reloc16_extra_cases): Use input section
   78:         "output_offset" instead of link order "offset".
   79:         * coff-h8500.c (extra_case): Likewise.
   80:         * coff-w65.c (w65_reloc16_extra_cases): Likewise.
   81:         * coff-z80.c (extra_case): Likewise.
   82:         * coff-z8k.c (extra_case): Likewise.
   83:         * linker.c (default_indirect_link_order): Likewise, "size" too.
   84:         * ecoff.c (ecoff_indirect_link_order): Likewise.
   85: 
   86: 2005-12-27  Alan Modra  <amodra@bigpond.net.au>
   87: 
   88:         * Makefile.am: Run "make dep-am".
   89:         * Makefile.in: Regenerate.
   90:         * po/SRC-POTFILES.in: Regenerate.
   91: 
   92: 2005-12-24  Alan Modra  <amodra@bigpond.net.au>
   93: 
   94:         * aix5ppc-core.c: Remove duplicate prototypes.
   95:         (xcoff64_core_file_matches_executable_p): Provide implementation
   96:         for !AIX_5_CORE.
   97:         * corefile.c (generic_core_file_matches_executable_p): Correct
   98:         syntax error in prototype.
   99:         * libbfd-in.h (generic_core_file_matches_executable_p): Delete.
  100:         * libbfd.h: Regenerate.
  101:         * bfd-in2.h: Regenerate.
  102: 
  103: 2005-12-23  Michael Weiser  <michael@weiser.dinsnail.net>
  104: 
  105:         PR 1150
  106:         * elf-bfd.h (struct elf_backend_data): New field
  107:         'elf_backend_ignore_undef_symbol'.
  108:         * elfxx-target.h (elf_backend_ignore_undef_symbol): Define to NULL
  109:         if not already defined.
  110:         (elfNN_bed): Initialise the elf_backend_ignore_undef_symbol field.
  111:         * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): New function.
  112:         * elfxx-mips.h (elf_backend_ignore_undef_symbol): Define and
  113:         prototype.
  114:         * elflink.c (elf_link_output_extsym): Check
  115:         elf_backend_ignore_undef_symbol before reporting an undefined
  116:         symbol in a shared library.
  117: 
  118: 2005-12-23  Joel Brobecker  <brobecker@adacore.com>
  119: 
  120:         * corefile.c (generic_core_file_matches_executable_p): New function.
  121:         * libbfd-in.h (generic_core_file_matches_executable_p): Add
  122:         declaration.
  123:         * libbfd.h: Regenerate.
  124:         * hpux-core.c: ANSIfy function declarations and prototypes.
  125:         (thread_section_p): Manually expand bfd_section_name macro
  126:         to make it clear that parameter ABFD is not used.
  127:         (hpux_core_core_file_matches_executable_p): Delete, replaced
  128:         by macro pointing to generic_core_file_matches_executable_p.
  129: 
  130:         * aix386-core.c: Replace core_file_matches_executable_p null
  131:         implementation by generic_core_file_matches_executable_p by
  132:         using a macro.
  133:         * aix5ppc-core.c: Likewise.
  134:         * cisco-core.c: Likewise.
  135:         * hppabsd-core.c: Likewise.
  136:         * irix-core.c: Likewise.
  137:         * lynx-core.c: Likewise.
  138:         * mach-o.c: Likewise.
  139:         * netbsd-core.c: Likewise.
  140:         * osf-core.c: Likewise.
  141:         * ptrace-core.c: Likewise.
  142:         * sco5-core.c: Likewise.
  143:         * trad-core.c: Likewise.
  144: 
  145: 2005-12-19  David Heine  <dlheine@tensilica.com>
  146: 
  147:         * elf32-xtensa.c (action_list_count, xlate_map_entry, xlate_map,
  148:         xlate_offset_with_removed_text, build_xlate_map, free_xlate_map): New.
  149:         (check_section_ebb_pcrels_fit): Build new xlate_map, use it and free it
  150:         when finished.
  151: 
  152: 2005-12-16  Nathan Sidwell  <nathan@codesourcery.com>
  153: 
  154:         Second part of ms1 to mt renaming.
  155:         * archures.c (bfd_arch_mt): Renamed.
  156:         (bfd_mt_arch): Renamed.
  157:         (bfd_archures_list): Adjusted.
  158:         * bfd-in2.h: Rebuilt.
  159:         * config.bfd (mt): Remove special case targ_archs.
  160:         (mt-*-elf): Rename bfd_elf32_mt_vec.
  161:         * configure: Rebuilt.
  162:         * configure.in (bfd_elf32_mt_vec): Renamed.
  163:         (selarchs) Remove mt special case.
  164:         * cpu-mt.c (arch_info_struct): Adjust.
  165:         (bfd_mt_arch): Renamed, adjust.
  166:         * elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela,
  167:         mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section,
  168:         mt_elf_howto_table): Renamed, adjusted.
  169:         (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs,
  170:         elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags,
  171:         mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data,
  172:         mt_elf_print_private_bfd_data): Renamed, adjusted.
  173:         (TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE,
  174:         ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section,
  175:         bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook,
  176:         elf_backend_gc_sweep_hook, elf_backend_check_relocs,
  177:         eld_backend_object_p, bfd_elf32_bfd_set_private_flags,
  178:         bfd_elf32_bfd_copy_private_bfd_data,
  179:         bfd_elf32_bfd_merge_private_bfd_data,
  180:         bfd_elf32_bfd_print_private_bfd_data): Adjusted.
  181:         * libbfd.h: Regenerated.
  182:         * reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16,
  183:         BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT,
  184:         BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed.
  185:         * targets.c (bfd_elf32_mt_vec): Renamed.
  186:         (_bfd_target_vector): Adjusted.
  187: 
  188: 2005-12-13  H.J. Lu  <hongjiu.lu@intel.com>
  189: 
  190:         PR ld/2008
  191:         * elf.c (_bfd_elf_setup_sections): Return FALSE if
  192:         elf_linked_to_section will be set to NULL.
  193: 
  194:         * format.c (bfd_check_format_matches): Don't check the default
  195:         target twice.
  196: 
  197: 2005-12-13  Alan Modra  <amodra@bigpond.net.au>
  198: 
  199:         * elf64-ppc.c (ppc64_elf_relocate_section): Force tail calls in
  200:         shared libs to resolve locally.
  201: 
  202: 2005-12-12  Paul Brook  <paul@codesourcery.com>
  203: 
  204:         * bfd-in2.h: Regenerate.
  205:         * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and
  206:         BFD_RELOC_ARM_PCREL_JUMP.
  207:         (check_use_blx): New function.
  208:         (bfd_elf32_arm_process_before_allocation): Don't allocate glue if
  209:         using BLX.
  210:         (elf32_arm_final_link_relocate): Perform bl<->blx conversion for
  211:         R_ARM_CALL and R_ARM_THM.
  212:         (elf32_arm_get_eabi_attr_int): New function.
  213:         (elf32_arm_size_dynamic_sections): Call check_use_blx.
  214:         * libbfd.h: Regenerate.
  215:         * reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP.
  216: 
  217: 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
  218: 
  219:         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
  220:         BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
  221:         (cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
  222:         * Makefile.in: Rebuilt.
  223:         * config.bfd: Replace ms1 arch with mt.
  224:         * configure.in: Replace ms1 files with mt files.
  225:         * configure: Rebuilt.
  226:         * elf32-mt.c: Renamed from elf32-ms1.c.  Update include files.
  227:         * cpu-mt.c: Renamed from cpu-ms1.c.
  228: 
  229: 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
  230: 
  231:         * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
  232: 
  233: 2005-12-10  Alan Modra  <amodra@bigpond.net.au>
  234: 
  235:         * elflink.c (elf_gc_mark_dynamic_ref_symbol):  Use !info-executable
  236:         to test for linking shared libs, not info->shared.
  237: 
  238: 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
  239: 
  240:         * elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
  241:         (ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab.
  242:         (add_stub_sym): New function.
  243:         (allocate_dynrelocs): Call add_stub_sym.
  244:         (ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve
  245:         when emit_stub_syms.
  246:         * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
  247: 
  248: 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
  249: 
  250:         * reloc.c (enum complain_overflow): Correct comments.
  251:         (bfd_check_overflow): Combine complain_overflow_bitfield and
  252:         complain_overflow_signed code.
  253:         (_bfd_relocate_contents): Likewise.
  254:         (bfd_howto_32): Use complain_overflow_dont.
  255:         * elf32-d10v.c (elf_d10v_howto_table): Revert 2002-06-17 change.
  256:         * bfd-in2.h: Regenerate.
  257: 
  258: 2005-12-07  H.J. Lu  <hongjiu.lu@intel.com>
  259: 
  260:         * elf.c (assign_section_numbers): Remove extra code in the last
  261:         change.
  262: 
  263: 2005-12-07  H.J. Lu  <hongjiu.lu@intel.com>
  264:             Andreas Schwab  <schwab@suse.de>
  265: 
  266:         PR binutils/1991
  267:         * elf.c (assign_section_numbers): Always use the output section
  268:         when setting up sh_link for SHF_LINK_ORDER.
  269: 
  270: 2005-12-07  Thiemo Seufer  <ths@networkno.de>
  271:             H.J. Lu  <hongjiu.lu@intel.com>
  272: 
  273:         PR ld/1932
  274:         * bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd
  275:         and hidden arguments.
  276: 
  277:         * bfd.c (bfd_hide_symbol): Removed.
  278: 
  279:         * bfd-in2.h: Regenerated.
  280: 
  281:         * elflink.c (bfd_elf_record_link_assignment): Handle hidden
  282:         symbols which were provided by a linker script.
  283: 
  284: 2005-12-06  Paul Gilliam  <pgilliam@us.ibm.com>
  285: 
  286:         * cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750.
  287: 
  288: 2005-11-18  Mark Kettenis  <kettenis@gnu.org>
  289: 
  290:         * elf64-hppa.c (elf64_hppa_section_from_phdr): Create .kernel
  291:         pseudo-section.  Make sure .reg section comes after the proc
  292:         section it's generated from.
  293: 
  294: 2005-12-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  295: 
  296:         * elf32-m32r.c (m32r_elf_sweep_hook): Fix an illegal duplicate check.
  297:         (m32r_elf_relocate_section): Fix R_M32R_10_PCREL_RELA linkage bug.
  298:         (m32r_elf_gc_sweep_hook): Likewise.
  299:         (m32r_elf_check_relocs): Likewise.
  300: 
  301: 2005-11-24  Alan Modra  <amodra@bigpond.net.au>
  302: 
  303:         * elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define.
  304:         * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete.
  305:         * libbfd.c (_bfd_generic_match_sections_by_type): Delete.
  306:         * targets.c (bfd_match_sections_by_type): Don't define.
  307:         (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type.
  308:         * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
  309:         * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
  310:         * bfd-in2.h: Regenerate.
  311:         * libbfd.h: Regenerate.
  312: 
  313: 2005-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
  314:             Thiemo Seufer <ths@networkno.de>
  315: 
  316:         * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
  317:         R_MIPS_PC16.
  318:         (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
  319:         (bfd_elf32_bfd_reloc_type_lookup): Don't handle
  320:         BFD_RELOC_16_PCREL_S2.
  321:         * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for
  322:         R_MIPS_PC16.
  323:         (mips_elf64_howto_table_rela): Likewise.
  324:         (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
  325:         (bfd_elf64_bfd_reloc_type_lookup): Don't handle
  326:         BFD_RELOC_16_PCREL_S2.
  327:         * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
  328:         R_MIPS_PC16.
  329:         (elf_mips_howto_table_rela): Likewise.
  330:         (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
  331:         (bfd_elf32_bfd_reloc_type_lookup): Don't handle
  332:         BFD_RELOC_16_PCREL_S2.
  333:         * elfxx-mips.c: Formatting fixes.
  334:         (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2
  335:         and R_MIPS_PC16 identically.
  336: 
  337: 2005-11-23  Frederic Riss  <frederic.riss@st.com>
  338: 
  339:         * elfcode.h (elf_object_p): Delay the setting of start_address
  340:         until we're sure the backend matches the binary.
  341: 
  342: 2005-11-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
  343: 
  344:         * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same
  345:         manner as bfd_decode_symclass.
  346: 
  347: 2005-11-18  Alan Modra  <amodra@bigpond.net.au>
  348: 
  349:         * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch
  350:         on branches to same section.
  351: 
  352: 2005-11-17  Randolph Chung  <tausq@debian.org>
  353: 
  354:         * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under
  355:         hppa64-hp-hpux11.11.
  356:         (elf64_hppa_section_from_phdr): New function.
  357:         (elf_backend_section_from_phdr): Define.
  358: 
  359: 2005-11-11  Nick Clifton  <nickc@redhat.com>
  360: 
  361:         PR 1150
  362:         * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an
  363:         undefined symbol if it is optional.
  364:         (_bfd_mips_elf_merge_symbol_attribute): Make sure that the
  365:         optional flag is merged as well as the visibility.
  366:         * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype.
  367:         (elf_backend_merge_symbol_attribute): Define.
  368: 
  369: 2005-11-08  Nathan Sidwell  <nathan@codesourcery.com>
  370: 
  371:         Add ms2 support
  372:         * archures.c (bfd_mach_ms2): Define.
  373:         * cpu-ms1.c (arch_info_struct): Add ms2 stanza.
  374:         * elf32-ms1.c (elf32_ms1_machine): Add ms2 case.
  375:         (ms1_elf_merge_private_bfd_data): Remove unused variables.  Add
  376:         correct merging logic, with workaround.
  377:         (ms1_elf_print_private_bfd_data): Add ms2 case.
  378:         * reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc.
  379:         * libbfd.h: Regenerated.
  380:         * bfd-in2.h: Regenerated.
  381: 
  382: 2005-11-07  Steve Ellcey  <sje@cup.hp.com>
  383: 
  384:         * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
  385:         if compiler is not GCC.
  386:         * configure: Regenerate
  387: 
  388: 2005-11-07  Steve Ellcey  <sje@cup.hp.com>
  389: 
  390:         * configure: Regenerate after modifying bfd/warning.m4.
  391: 
  392: 2005-11-07  Steve Ellcey  <sje@cup.hp.com>
  393: 
  394:         * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
  395: 
  396: 2005-11-03  Daniel Jacobowitz  <dan@codesourcery.com>
  397: 
  398:         * configure.in: Check for fopen64.
  399:         * libbfd-in.h (real_fopen): New prototype.
  400:         * configure, config.in, libbfd.h: Regenerated.
  401:         * bfdio.c (real_fopen): New function.
  402:         * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it.
  403:         * cache.c (bfd_open_file): Likewise.
  404: 
  405: 2005-11-03  Thiemo Seufer  <ths@networkno.de>
  406: 
  407:         * elfxx-mips.c (mips_elf_calculate_relocation): Handle only
  408:         forced local symbols here.
  409:         (mips_elf_create_dynamic_relocation): Likewise.
  410:         (_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment.
  411: 
  412: 2005-11-03  Alan Modra  <amodra@bigpond.net.au>
  413: 
  414:         * elf.c (elf_fake_sections): When calculating tbss size, just use
  415:         the last link_order.
  416:         (assign_file_positions_for_segments): Likewise.
  417:         * elflink.c (bfd_elf_final_link): Likewise.
  418:         (elf_reloc_link_order): Correct comment.
  419: 
  420: 2005-11-02  Alan Modra  <amodra@bigpond.net.au>
  421: 
  422:         PR ld/1775
  423:         * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
  424:         parentheses.
  425: 
  426: 2005-10-29  H.J. Lu  <hongjiu.lu@intel.com>
  427: 
  428:         * Makefile.am: Run "make dep-am".
  429:         * Makefile.in: Regenerated.
  430: 
  431:         * dep-in.sed: Replace " ./" with " ".
  432: 
  433: 2005-10-29  H.J. Lu  <hongjiu.lu@intel.com>
  434: 
  435:         * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
  436:         define.
  437:         * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined.
  438:         * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only
  439:         if SCO5_CORE is defined.
  440: 
  441: 2005-10-29  Mark Kettenis  <kettenis@gnu.org>
  442: 
  443:         * Makefile.am: Run "make dep-am".
  444:         * Makefile.in: Regenerate.
  445: 
  446: 2005-10-28  Joel Brobecker  <brobecker@adacore.com>
  447: 
  448:         From Eric Botcazou  <botcazou@adacore.com>
  449:         * coffcode.h (coff_compute_section_file_positions): Fix small
  450:         error in preprocessor directives.
  451: 
  452: 2005-10-28  Joel Brobecker  <brobecker@adacore.com>
  453: 
  454:         Mostly from Eric Botcazou <botcazou@adacore.com>
  455:         * rs6000-core.c: ANSIfy all function definitions.
  456:         Add missing function prototypes.
  457:         (ptr_to_uint): New type.
  458:         (rs6000coff_core_p): Use it as intermediate step in casts.
  459:         (rs6000coff_core_file_matches_executable_p): Likewise.
  460:         * xcoff-target.h (rs6000coff_core_p): Fix prototype.
  461:         (rs6000coff_core_file_matches_executable_p): Likewise.
  462: 
  463: 2005-10-28  H.J. Lu  <hongjiu.lu@intel.com>
  464: 
  465:         PR binutils/1472
  466:         * aoutx.h (NAME (aout, machine_type)): Handle
  467:         bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa,
  468:         bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a
  469:         and bfd_mach_sparc_v9b.
  470: 
  471: 2005-10-28  Hans-Peter Nilsson  <hp@axis.com>
  472: 
  473:         PR ld/1567
  474:         * elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set
  475:         complain_on_overflow field to complain_overflow_dont.
  476: 
  477: 2005-10-27  Alan Modra  <amodra@bigpond.net.au>
  478: 
  479:         PR 973
  480:         * cache.c (enum cache_flag): New.
  481:         (close_one): Save file mtime.
  482:         (bfd_cache_lookup): Add flag arg, adjust all users.
  483:         (bfd_cache_lookup_worker): Likewise.
  484:         (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file
  485:         not open.
  486:         (cache_bflush): Similarly, and return success of file not open.
  487:         (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END.
  488:         (cache_bstat): Use CACHE_NO_SEEK_ERROR.
  489: 
  490:         * bfdwin.c (bfd_get_file_window): Seek into file in place of
  491:         using bfd_cache_lookup.
  492: 
  493:         * cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.
  494:         (bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise.
  495:         * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete.
  496:         * libbfd.h: Regenerate.
  497: 
  498:         * hppabsd-core.c (hppabsd_core_core_file_p): Use bfd_stat, not fstat.
  499:         * sco5-core.c (sco5_core_file_p): Likewise.
  500:         * trad-core.c (trad_unix_core_file_p): Likewise.
  501: 
  502:         * cache.c: Reorganize file to avoid forward reference.
  503: 
  504: 2005-10-26  Alan Modra  <amodra@bigpond.net.au>
  505: 
  506:         * cache.c (bfd_cache_lookup_worker): Don't abort on failing to
  507:         reopen file.
  508:         (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on
  509:         bfd_cache_lookup failure.
  510:         (cache_bread, cache_bwrite): Return 0 on the same.
  511:         * bfdwin.c (bfd_get_file_window): Likewise.
  512:         * hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
  513:         * sco5-core.c (sco5_core_file_p): Likewise.
  514:         * trad-core.c (trad_unix_core_file_p): Likewise.
  515: 
  516: 2005-10-26  Alan Modra  <amodra@bigpond.net.au>
  517: 
  518:         * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
  519:         rather than bfd_perror.  Print file name.  Internationalise.
  520: 
  521: 2005-10-26  Alan Modra  <amodra@bigpond.net.au>
  522: 
  523:         * cache.c (bfd_open_file): Set bfd_error_system_call on failure
  524:         to open file.
  525:         (bfd_cache_lookup_worker): Remove check that file pos is in
  526:         unsigned long range.  Print system error before aborting.
  527: 
  528: 2005-10-25  Arnold Metselaar  <arnold.metselaar@planet.nl>
  529: 
  530:         * Makefile.am: Add rules for coff-z80 and cpu-z80.
  531:         * Makefile.in: Regenerated.
  532:         * archures.c: Add bfd_arch_z80 and support for it.
  533:         * coffcode.h(coff_set_arch_mach_hook): Add case Z80MAGIC.
  534:         (coff_set_flags): Add case bfd_arch_z80.
  535:         * config.bfd: Add z80coff_vec.
  536:         * configure.in: Add z80coff_vec.
  537:         * reloc.c: Add BFD_RELOC_Z80_DISP8
  538:         * targets.c: Add z80coff_vec.
  539:         * coff-z80.c: New file
  540:         * cpu-z80.c: New file
  541:         * configure: Regenerated.
  542:         * libbfd.h: Regenerated.
  543:         * bfd-in2.h: Regenerated.
  544: 
  545: 2005-10-26  Alan Modra  <amodra@bigpond.net.au>
  546: 
  547:         PR ld/1540
  548:         * elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to
  549:         elf_backend_data with pointer to bfd_link_info.
  550:         (_bfd_elf_link_hash_copy_indirect): Likewise.
  551:         * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise.  Handle
  552:         direct and indirect symbols both having dynamic link info.
  553:         * elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise.
  554:         * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
  555:         * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  556:         * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise.
  557:         * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
  558:         * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  559:         * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
  560:         * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  561:         * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  562:         * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
  563:         * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
  564:         * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  565:         * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
  566:         * elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol.
  567:         * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype.
  568:         * elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
  569: 
  570: 2005-10-25  Alan Modra  <amodra@bigpond.net.au>
  571: 
  572:         * po/SRC-POTFILES.in: Regenerate.
  573:         * po/bfd.pot: Regenerate.
  574: 
  575: 2005-10-24  Jie Zhang <jie.zhang@analog.com>
  576: 
  577:         * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
  578:         warning.
  579: 
  580: 2005-10-24  Bernd Schmidt  <bernd.schmidt@analog.com>
  581: 
  582:         * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs.
  583:         (bfin_imm16_reloc): Always add in the addend.  Don't fetch existing
  584:         contents from section.
  585:         (bfin_relocate_section): Rework so as to not call special_functions.
  586:         Handle the relocation stack here.  Treat pcrel24 relocs specially.
  587: 
  588: 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
  589: 
  590:         * elflink.c (elf_link_input_bfd): Don't use linker_mark and
  591:         SEC_EXCLUDE to test for sections dropped from output.  Instead,
  592:         use bfd_section_removed_from_list on normal sections.  Don't
  593:         attempt to handle symbols with unknown reserved section indices.
  594:         * linker.c (_bfd_generic_link_output_symbols): Don't use
  595:         linker_mark to test for symbols belonging to dropped sections.
  596:         Do allow absolute symbols.
  597: 
  598: 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
  599: 
  600:         * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
  601:         group sections.
  602: 
  603: 2005-10-24  Jan Beulich  <jbeulich@novell.com>
  604: 
  605:         * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of
  606:         set of indirect operands.
  607: 
  608: 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
  609: 
  610:         * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
  611:         group sections.
  612: 
  613: 2005-10-23  H.J. Lu  <hongjiu.lu@intel.com>
  614: 
  615:         * coff-rs6000.c (rs6000coff_vec): Initialize
  616:         _bfd_init_private_section_data with
  617:         _bfd_generic_init_private_section_data.
  618:         (pmac_xcoff_vec): Likewise.
  619:         * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  620:         (aix5coff64_vec): Likewise.
  621: 
  622: 2005-10-23  H.J. Lu  <hongjiu.lu@intel.com>
  623: 
  624:         PR ld/1487
  625:         * elf-bfd.h (_bfd_generic_init_private_section_data): New.
  626:         (_bfd_elf_init_private_section_data): New.
  627: 
  628:         * elf.c (elf_fake_sections): Don't set SHF_GROUP for
  629:         relocatable link.
  630:         (bfd_elf_set_group_contents): Don't handle relocatable link
  631:         specially.
  632:         (assign_section_numbers): If it isn't called by assembler,
  633:         use the output section of elf_linked_to_section for
  634:         SHF_LINK_ORDER.
  635:         (_bfd_elf_init_private_section_data): New.
  636:         (_bfd_elf_copy_private_section_data): Call it.
  637: 
  638:         * libbfd-in.h (_bfd_generic_init_private_section_data): New.
  639: 
  640:         * libbfd.c (_bfd_generic_init_private_section_data): New.
  641: 
  642:         * targets.c (BFD_JUMP_TABLE_COPY): Add
  643:         _bfd_generic_init_private_section_data.
  644:         (bfd_init_private_section_data): Likewise.
  645: 
  646:         * bfd-in2.h: Regenerated.
  647:         * libbfd.h: Likewise.
  648: 
  649: 2005-10-23  Alan Modra  <amodra@bigpond.net.au>
  650: 
  651:         * elf64-ppc.c (dec_dynrel_count): Don't report errors for local
  652:         syms in gc'd sections.
  653:         (ppc64_elf_edit_opd): Don't adjust reloc counts when NO_OPD_RELOCS.
  654:         (elf_backend_action_discarded): Define.
  655:         (ppc64_elf_action_discarded): New function.
  656: 
  657: 2005-10-19  Paul Brook  <paul@codesourcery.com>
  658: 
  659:         * elf32-arm.c (find_arm_elf_section_entry): New function.
  660:         (get_arm_elf_section_data): Use it.
  661:         (unrecord_section_with_arm_elf_section_data): Use it.
  662: 
  663: 2005-10-15  H.J. Lu  <hongjiu.lu@intel.com>
  664: 
  665:         * coff-rs6000.c (rs6000coff_vec): Initialize
  666:         _bfd_match_sections_by_type with
  667:         _bfd_generic_match_sections_by_type.
  668:         (pmac_xcoff_vec): Likewise.
  669:         * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  670:         (aix5coff64_vec): Likewise.
  671: 
  672: 2005-10-15  H.J. Lu  <hongjiu.lu@intel.com>
  673: 
  674:         PR ld/1467
  675:         * elf-bfd.h (_bfd_elf_match_sections_by_type): New.
  676:         (_bfd_generic_match_sections_by_type): New. Defined.
  677: 
  678:         * elf.c (_bfd_elf_match_sections_by_type): New.
  679: 
  680:         * libbfd-in.h (_bfd_generic_match_sections_by_type): New.
  681: 
  682:         * bfd-in2.h: Regenerated.
  683:         * libbfd.h: Likewise.
  684: 
  685:         * libbfd.c (_bfd_generic_match_sections_by_type): New.
  686: 
  687:         * targets.c (BFD_JUMP_TABLE_LINK): Initialize
  688:         _bfd_match_sections_by_type with
  689:         _bfd_generic_match_sections_by_type.
  690:         (bfd_target): Add _bfd_match_sections_by_type.
  691: 
  692: 2005-10-08  Paul Brook  <paul@codesourcery.com>
  693: 
  694:         * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h.
  695:         (NUM_KNOWN_ATTRIBUTES): Define.
  696:         (aeabi_attribute, aeabi_attribute_list): Define.
  697:         (elf32_arm_obj_tdata): Add known_eabi_attributes and
  698:         other_eabi_attributes.
  699:         (uleb128_size, is_default_attr, eabi_attr_size,
  700:         elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
  701:         elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
  702:         elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int,
  703:         elf32_arm_add_eabi_attr_compat, copy_eabi_attributes,
  704:         elf32_arm_merge_eabi_attributes): New functions.
  705:         (elf32_arm_copy_private_bfd_data): Copy EABI object attributes.
  706:         (elf32_arm_fake_sections): Handle .ARM.attributes.
  707:         (elf32_arm_parse_attributes): New function.
  708:         (elf32_arm_section_from_shdr): Use it.
  709:         (bfd_elf32_bfd_final_link): Define.
  710: 
  711: 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
  712: 
  713:         * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from
  714:         GCC.
  715:         (elf32_arm_size_dynamic_sections): Likewise.
  716:         * ecofflink.c (bfd_ecoff_debug_one_external): Likewise.
  717:         * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
  718:         * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
  719:         * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
  720:         * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
  721:         * elf32-s390.c (elf_s390_check_relocs): Likewise.
  722:         (elf_s390_size_dynamic_sections): Likewise.
  723:         * elf32-sh.c (sh_elf_check_relocs): Likewise.
  724:         * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count)
  725:         (ppc64_elf_size_dynamic_sections): Likewise.
  726:         * elf64-s390.c (elf_s390_check_relocs): Likewise.
  727:         (elf_s390_size_dynamic_sections): Likewise.
  728:         * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
  729:         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.<