aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2009-04-022009-04-02 Christophe Lyon <christophe.lyon@st.com>Christophe Lyon2-8/+47
bfd/ * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb, elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long branch stubs. (elf32_arm_stub_type): New enum values for the two new stubs. (arm_type_of_stub): Make use of the two new stubs. (arm_size_one_stub): Handle the two new stubs. testsuite/ * ld-arm/farcall-thumb-thumb-pic-veneer.d: Update expected results. * ld-arm/farcall-thumb-thumb.d: Likewise.
2009-04-022009-04-01 Matt Thomas <matt@netbsd.org>Matt Thomas2-19/+32
* elf32-vax.c (elf_vax_check_relocs): Do not put relocations against hidden symbols into the GOT or PLT.GOT. (elf_vax_relocate_section): Do not emit a PCREL reloc into a shared object if it is against a hidden symbol.
2009-04-02daily updateAlan Modra1-1/+1
2009-04-01bfd/Richard Sandiford2-9/+36
* xcofflink.c (xcoff_archive_info): Add contains_shared_object_p and know_contains_shared_object_p. (xcoff_archive_contains_shared_object_p): Add an "info" parameter. Cache the result in the archive_info table. (xcoff_auto_export_p): Add an "info" parameter and update the call to xcoff_archive_contains_shared_object_p. (xcoff_mark_auto_exports): Update accordingly. (xcoff_post_gc_symbol): Likewise.
2009-04-01bfd/Richard Sandiford2-0/+17
* xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT rather than C_EXT. ld/testsuite/ * ld-powerpc/aix-gc-1.nd: New test. * ld-powerpc/aix52.exp: Run it.
2009-04-01bfd/Richard Sandiford2-262/+259
* coff-rs6000.c (member_layout): New structure. (archive_iterator): Likewise. (member_layout_init): New function. (archive_iterator_begin): Likewise. (archive_iterator_next): Likewise. (xcoff_write_armap_old): Use the new iterator functions. (do_shared_object_padding): Delete. (xcoff_write_armap_big): Use the new iterator functions. Simplify handling of arch_info. (xcoff_write_archive_contents_old): Allocate arelt_data in the first loop rather than the second. Allocate a member header if there isn't one, then work out the stat information and length in the first loop too. Use the new iterators for the second loop. (xcoff_write_archive_contents_big): Likewise.
2009-04-01bfd/Richard Sandiford4-68/+219
* bfd-in.h (bfd_xcoff_split_import_path): Declare. (bfd_xcoff_set_archive_import_path): Likewise. * bfd-in2.h: Regenerate. * xcofflink.c: Include libiberty.h. (xcoff_archive_info): New structure. (xcoff_archive_info_hash): New function. (xcoff_archive_info_eq): Likewise. (xcoff_get_archive_info): Likewise. (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info. (bfd_xcoff_split_import_path): New function. (bfd_xcoff_set_archive_import_path): Likewise. (xcoff_set_import_path): Move earlier in file. (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive object to the the directory part of the bfd's filename. Get the import path and filename of an archive object from the archive's xcoff_tdata, initializing it if necessary. Update use of import_file_id. (bfd_link_input_bfd): Update use of import_file_id. (xcoff_write_global_symbol): Likewise. ld/ * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New function. (ld_${EMULATION_NAME}_emulation): Use it.
2009-04-01include/coff/Richard Sandiford2-0/+90
* xcoff.h (xcoff_link_hash_table): Move to bfd/xcofflink.c. bfd/ * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
2009-04-01bfd/Richard Sandiford1-407/+387
* xcofflink.c (xcoff_link_create_extra_sections): Don't create a .loader section for relocatable links. (xcoff_need_ldrel_p): New function. (xcoff_mark): Use it. (bfd_xcoff_link_count_reloc): Only count loader relocs if there's a loader section. (xcoff_build_ldsym): New function, split out from... (xcoff_build_ldsyms): ...here. Rename to... (xcoff_post_gc_symbol): ...this. Only export symbols, and only call xcoff_build_ldsym, if there's a loader section. (xcoff_build_loader_section): New function, extracted verbatim from... (bfd_xcoff_size_dynamic_sections): ...here. Only call it if there's a loader section. Only add an __rtinit loader symbol if there's a loader section. Update after above name change. (xcoff_symbol_section, xcoff_create_ldrel): New functions. (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section and xcoff_create_ldrel. (xcoff_write_global_symbol): Use xcoff_create_ldrel. (xcoff_reloc_link_order): Likewise, but only call it if there's a loader section. Use xcoff_symbol_section. (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym if there's a loader section. ld/testsuite/ * ld-powerpc/aix-rel-1.s, ld-powerpc/aix-rel-1.od: New test. * ld-powerpc/aix52.exp: Run it.
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.