aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2009-04-01bfd/Richard Sandiford2-2/+5
* xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
2009-04-012009-04-01 Christophe Lyon <christophe.lyon@st.com>Christophe Lyon2-33/+31
bfd/ * elf32-arm.c (group_sections): Rewrite loops for better readability.
2009-04-01daily updateAlan Modra1-1/+1
2009-03-31* elflink.c (elf_link_input_bfd): Don't try to resolve complexDJ Delorie2-1/+7
relocs when doing a relocatable link.
2009-03-31daily updateAlan Modra1-1/+1
2009-03-30daily updateAlan Modra1-1/+1
2009-03-29daily updateAlan Modra1-1/+1
2009-03-28 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", notMark Mitchell5-29/+39
"ERROR:", in error messages. * cpu-arm.c (bfd_arm_merge_machines): Likewise. * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise. * elf32-arm.c (tag_cpu_arch_combine): Likewise. (elf32_arm_merge_eabi_attributes): Likewise. (elf32_arm_merge_private_bfd_data): Likewise.
2009-03-28daily updateAlan Modra1-1/+1
2009-03-27 * section.c (bfd_get_section_contents): Detect and handle the caseNick Clifton2-0/+16
where a section has the SEC_IN_MEMORY flag set but no actual contents allocated.
2009-03-27daily updateAlan Modra1-1/+1
2009-03-26 PR 6494Alan Modra2-6/+11
* elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO p_filesz and p_memsz are equal. Use p_memsz as the segment size. (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO if we don't find matching PT_LOAD when copying.
2009-03-26daily updateAlan Modra1-1/+1
2009-03-252009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>M R Swami Reddy1-0/+5
* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of the reloc descriptions.
2009-03-252009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>M R Swami Reddy1-20/+20
* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of the reloc descriptions.
2009-03-25 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>Hans-Peter Nilsson2-2/+9
<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols. <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
2009-03-25daily updateAlan Modra1-1/+1
2009-03-242009-03-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-4/+11
* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. (bfd_i386_arch_intel_syntax): Likewise. (i8086_arch): Likewise. (bfd_x86_64_arch): Likewise.
2009-03-24 * elf32-cris.c (cris_elf_relocate_section): <caseHans-Peter Nilsson2-6/+31
R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local symbols for non-allocated sections. Don't check whether to generate R_CRIS_DTPMOD for non-allocated sections. (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't handle relocation GC:ing if applied to non-allocated section. (cris_elf_check_relocs): Similar.
2009-03-24 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>Hans-Peter Nilsson2-2/+7
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size when emitting a known TP offset in the GOT.
2009-03-24daily updateAlan Modra1-1/+1
2009-03-23 * elf64-ppc.c (synthetic_opd): Delete.Alan Modra2-6/+12
(compare_symbols): Look for .opd name rather than section match. (ppc64_elf_get_synthetic_symtab): Likewise.
2009-03-23daily updateAlan Modra1-1/+1
2009-03-22daily updateAlan Modra1-1/+1
2009-03-21 * elf32-ppc.c (is_pic_glink_stub): Delete.Alan Modra2-21/+18
(is_nonpic_glink_stub): New function. (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather than first pic one. (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
2009-03-21daily updateAlan Modra1-1/+1
2009-03-202009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>Andreas Krebbel3-42/+39
Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* macros for visibilty and locality checks. (elf_s390_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (elf_s390_relocate_section): Likewise. (elf_s390_finish_dynamic_symbol): Likewise. * elf64-s390.c (elf_s390_check_relocs): Likewise. (elf_s390_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (elf_s390_relocate_section): Likewise. (elf_s390_finish_dynamic_symbol): Likewise.
2009-03-20daily updateAlan Modra1-1/+1
2009-03-192009-03-19 Kai Tietz <kai.tietz@onevision.com>Kai Tietz4-15/+32
* bfd-in2.h: Regenerated. * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY for debugging sections and map memory read/write dependent on SEC_COFF_NOREAD. (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections without memory read flags set. * section.c: Add SEC_COFF_NOREAD to section flags.
2009-03-19* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to longAndreas Schwab2-11/+16
for format string.
2009-03-19bfd/Alan Modra3-70/+69
* elf32-spu.c (spu_elf_find_overlays): Separate error return from "no overlays" return. If there are overlays, create overlay manager entry symbols here, so that.. (spu_elf_build_stubs): ..we don't need to set them up here. Simplify entry symbol tests. * elf32-spu.h (spu_elf_find_overlays): Update prototype. ld/ * emultempl/spuelf.em (spu_before_allocation): Report errors from spu_elf_find_overlays.
2009-03-19daily updateAlan Modra1-1/+1
2009-03-18 * Makefile.am (BFD32_BACKENDS): Remove elf32-score andNick Clifton6-15/+15
elf32-score7 files. (BFD32_BACKEND_CFILES): Likewise. (BFD64_BACKENDS): Add elf32-score and elf32-score7 files. (BFD64_BACKENDS_CFILES): Likewise. * Makefile.in: Regenerate. * config.bfd: More Score targets into BFD64 list. * configure.in: Move score vectors to 64-bit list. * targets.c: Likewise. * score-dis.c: Only compile when 64-bit bfds are enabled.
2009-03-18* elf.c (elfcore_grok_openbsd_procinfo)Mark Kettenis2-0/+75
(elfcore_grok_openbsd_note): New functions. (elf_parse_notes): Handle notes from OpenBSD ELF core files.
2009-03-18bfd/Alan Modra2-4/+1
* vms-hdr.c: Don't include alloca.h. opcodes/ * cgen-opc.c: Include alloca-conf.h rather than alloca.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
2009-03-18include/Alan Modra7-79/+44
* alloca-conf.h: Revise based on autoconf-2.61, autoconf-2.13 documentation. bfd/ * elf32-m68hc1x.c: Include alloca-conf.h. * xsym.c: Likewise. * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. * som.c: Likewise. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * sysdep.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ * as.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * openrisc-opc.c: Regenerate. ld/ * ld.h: Remove alloca handling.
2009-03-18daily updateAlan Modra1-1/+1
2009-03-17 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.Daniel Jacobowitz2-2/+6
2009-03-17bfd/Alan Modra3-105/+152
* elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. Add compact_stub. (emum _ovly_flavour): Delete ovly_compact, ovly_none. * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and ovly_return fields with ovly_entry[2]. Adjust all users. (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler when soft-icache. (spu_elf_build_stubs): Likewise. (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for ovly_flavour changes. Update all callers. (ovl_stub_size_log2): New function. (build_stub): Handle compact icache stubs. Use different manager entry point for stubs in non-icache area. (spu_elf_size_stubs): Don't allocate space for indirect branch descriptors. (spu_elf_build_stubs): And don't built them. ld/ * emultempl/spu_icache.S: Add new entry to dummy handler. * emultempl/spu_icache.o_c: Regenerate. * emultempl/spuelf.em (params): Init new field. (no_overlays): New static var. (spu_before_allocation): Use it. (OPTION_SPU_COMPACT_STUBS): Define. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs. (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays handling. ld/testsuite/ * ld-spu/icache1.d: Update for fixed set_id, new manager entry, and reduced data.
2009-03-17daily updateAlan Modra1-1/+1
2009-03-16Move changelog entry to the right file.Andrew Stubbs1-0/+4
Sorry folks.
2009-03-162009-03-16 Andrew Stubbs <ams@codesourcery.com>Andrew Stubbs1-2/+1
* dwarf2.c (read_section): Always use rawsize, if available.
2009-03-16 * simple.c (bfd_simple_get_relocated_section_contents): Use largerAlan Modra2-1/+7
of rawsize and size for buffer.
2009-03-16daily updateAlan Modra1-1/+1
2009-03-15 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlayUlrich Weigand2-17/+28
parameter just because fixed sections fit into local store. (spu_elf_auto_overlay): Do not declare as "noreturn". Skip generating overlays if fixed sections plus reserved stack and heap space fit into local store.
2009-03-15 * elf32-spu.c (build_stub): Correct icache set_id.Alan Modra2-3/+8
(spu_elf_relocate_section): Likewise.
2009-03-15daily updateAlan Modra1-1/+1
2009-03-14bfd/Richard Sandiford2-1/+11
* xcofflink.c (xcoff_link_check_archive_element): Only free the symbol table if it was created by the current call.
2009-03-14bfd/Richard Sandiford2-1/+11
* xcofflink.c (xcoff_build_ldsyms): Give imported descriptors class XMC_DS rather than XMC_UA.
2009-03-14include/coff/Richard Sandiford4-52/+144
* xcoff.h (XCOFF_EXPALL, XCOFF_EXPFULL): New flags. (xcoff_loader_info): Add auto_export_flags. bfd/ * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the bfd_boolean export_defineds parameter with an unsigned int auto_export_flags parameter. * bfd-in2.h: Regenerate. * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, split out from xcoff_build_ldsyms. (xcoff_covered_by_expall_p): New function. (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms but with extra code to handle -bexpfull and -bexpall. (xcoff_mark_auto_exports): New function. (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether a function should be automatically exported. (bfd_xcoff_size_dynamic_sections): Replace the export_defineds parameter with an auto_export_flags parameter. Update ldinfo accordingly. Use xcoff_mark_auto_exports to mark all automatically- exported symbols. ld/ * emultempl/aix.em (auto_export_flags): New variable. (explicit_auto_export_flags): Likewise. (OPTION_EXPALL, OPTION_EXPFULL): New enum values. (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise. (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull, -bnoexpall and -bnoexpfull. (gld${EMULATION_NAME}_handle_option): Handle them. (gld${EMULATION_NAME}_before_allocation): Update the call to bfd_size_dynamic_sections. ld/testsuite/ * ld-powerpc/aix-export-1-all.dd, ld-powerpc/aix-export-1-full.dd, ld-powerpc/aix-export-1a.s, ld-powerpc/aix-export-1b.s: New tests. * ld-powerpc/aix52.exp: Run them.