aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2010-07-20include/elf/Alan Modra2-15/+20
* internal.h (ELF_TBSS_SPECIAL): New macro, extracted from.. (ELF_SECTION_SIZE): ..here. (ELF_SECTION_IN_SEGMENT_1): Add "strict" arg. (ELF_SECTION_IN_SEGMENT_STRICT): New macro. bfd/ * elf.c (assign_file_positions_for_load_sections): Check that zero size sections are allocated in segments too. (assign_file_positions_for_non_load_sections): Warn if zero size alloc sections are found here. (copy_elf_program_header): Don't drop zero size sections from segment map. (copy_private_bfd_data): Check for changes in zero size sections. binutils/ * readelf.c (process_program_headers): Don't ignore all zero size sections. ld/testsuite/ * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.r: Update.
2010-07-20daily updateAlan Modra1-1/+1
2010-07-19daily updateAlan Modra1-1/+1
2010-07-18daily updateAlan Modra1-1/+1
2010-07-17 * elf.c (_bfd_elf_map_sections_to_segments): Force new segmentAlan Modra2-5/+25
for sections with overlapping LMAs. (assign_file_positions_for_load_sections): Catch overlap for sections that wrap around the address space. Replace a warning that duplicates ld's --check-sections error with a warning that lma has been adjusted for overlapping sections.
2010-07-17daily updateAlan Modra1-1/+1
2010-07-16daily updateAlan Modra1-1/+1
2010-07-15daily updateAlan Modra1-1/+1
2010-07-14 PR ld/11817Cary Coutant2-56/+43
* dwarf2.c (read_section): Revert patch for compressed debug sections. (find_line): Likewise. (read_and_uncompress_section): Remove.
2010-07-14Don't allocate .got.plt section if there are no GOT nor PLT entries.H.J. Lu3-0/+42
bfd/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't allocate .got.plt section if there are no GOT nor PLT entries. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise. ld/testsuite/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * ld-elf/exclude3b.d: Don't run on ia64-*-*. Replace .got with .dynamic. * ld-elf/exclude3d.d: New. * ld-i386/nogot1.d: Likewise. * ld-i386/nogot1.s: Likewise. * ld-x86-64/nogot1.d: Likewise. * ld-x86-64/nogot1.s: Likewise. * ld-i386/i386.exp: Run nogot1. * ld-x86-64/x86-64.exp: Likewise.
2010-07-14daily updateAlan Modra1-1/+1
2010-07-13Support garbage collection against STT_GNU_IFUNC symbols.H.J. Lu4-4/+92
bfd/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11791 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support garbage collection against STT_GNU_IFUNC symbols. * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set elf.plt.offset/elf.got.offset to -1. (elf_i386_tls_transition): Skip TLS transition for functions. (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols. * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set elf.plt.offset/elf.got.offset to -1. (elf64_x86_64_tls_transition): Skip TLS transition for functions. (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols. ld/testsuite/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11791 * ld-ifunc/ifunc-10-i386.d: New. * ld-ifunc/ifunc-10-i386.s: Likewise. * ld-ifunc/ifunc-10-x86-64.d: Likewise. * ld-ifunc/ifunc-10-x86-64.s: Likewise. * ld-ifunc/ifunc-11-i386.d: Likewise. * ld-ifunc/ifunc-11-i386.s: Likewise. * ld-ifunc/ifunc-11-x86-64.d: Likewise. * ld-ifunc/ifunc-11-x86-64.s: Likewise.
2010-07-13daily updateAlan Modra1-1/+1
2010-07-12Re-indent elf32-i386.c.H.J. Lu2-4/+8
2010-07-12 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_i386_check_relocs): Re-indent. (elf_i386_relocate_section): Likewise.
2010-07-12daily updateAlan Modra1-1/+1
2010-07-11daily updateAlan Modra1-1/+1
2010-07-10daily updateAlan Modra1-1/+1
2010-07-09daily updateAlan Modra1-1/+1
2010-07-08daily updateAlan Modra1-1/+1
2010-07-07daily updateAlan Modra1-1/+1
2010-07-06Initialize prev_line.H.J. Lu2-0/+5
2010-07-06 H.J. Lu <hongjiu.lu@intel.com> * dwarf2.c (add_line_info): Initialize prev_line.
2010-07-06bfd/Alan Modra2-6/+17
* elf32-ppc.c (ppc_elf_relax_section): Insert branch around trampolines only for .init and .fini sections. ld/testsuite/ * ld-powerpc/relax.s: Add branch back to _start. * ld-powerpc/relax.d: Update. * ld-powerpc/relaxr.d: Update.
2010-07-06daily updateAlan Modra1-1/+1
2010-07-05 * elf32-ppc.c: Formatting.Alan Modra2-24/+29
(ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
2010-07-05daily updateAlan Modra1-1/+1
2010-07-04daily updateAlan Modra1-1/+1
2010-07-03bfd/ChangeLog:Cary Coutant3-37/+64
* compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED. * dwarf2.c (read_and_uncompress_section): New function. (read_section): Call it. (find_line): Likewise. binutils/ChangeLog: * objdump.c (load_specific_debug_section): Decompress section contents before applying relocations. * readelf.c (load_specific_debug_section): Update section size after decompression. gas/ChangeLog: * Makefile.am: Add compress-debug.c and compress-debug.h. * Makefile.in: Regenerate. * config.in: Add HAVE_ZLIB_H. * configure.in: Check for zlib.h. * configure: Regenerate. * as.c (parse_args): Add --compress-debug-sections and --nocompress-debug-sections. * as.h (flag_compress_debug): New variable. * compress-debug.c: New file. * compress-debug.h: New file. * write.c: Include compress-debug.h. (compress_frag): New function. (compress_debug): New function. (write_object_file): Compress debug sections if requested.
2010-07-03daily updateAlan Modra1-1/+1
2010-07-02daily updateAlan Modra1-1/+1
2010-07-01 * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL ratherAlan Modra2-3/+9
than SYMBOL_REFERENCES_LOCAL. (ppc64_elf_relocate_section): Likewise.
2010-07-01 * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.Alan Modra2-2/+14
2010-07-01daily updateAlan Modra1-1/+1
2010-06-30daily updateAlan Modra1-1/+1
2010-06-29remove maxq-coff portAlan Modra14-585/+42
2010-06-29daily updateAlan Modra1-1/+1
2010-06-28 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSEDAlan Modra2-5/+8
to silence gcc warning.
2010-06-28daily updateAlan Modra1-1/+1
2010-06-27 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.Alan Modra2-3/+12
(group_sections): Likewise.
2010-06-27fix set but unused variable warningsAlan Modra60-409/+195
2010-06-27daily updateAlan Modra1-1/+1
2010-06-26daily updateAlan Modra1-1/+1
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-11/+36
* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with its flags. Create an absolute section if needed.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-46/+53
* vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create dummy psect anymore. Adjust. (_bfd_vms_write_eeom): Adjust (use target_index instead of index) (_bfd_vms_write_etir): Ditto. (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of section name. Adjust.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+14
* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
2010-06-25include/elf/Alan Modra2-19/+177
* ppc64.h (R_PPC64_LO_DS_OPT): Define. bfd/ * elf64-ppc.c (toc_skip_enum): Define. (ppc64_elf_edit_toc): Use two low bits of skip array as markers. Optimize largetoc sequences. (adjust_toc_syms): Update for skip array change. (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT. ld/ * emultempl/ppc64elf.em (prelim_size_sections): New function. (ppc_before_allocation): Use it. Size sections before toc edit too.
2010-06-25 * elf64-ppc.c (is_static_defined): New function.Alan Modra2-61/+115
(get_tls_mask, ppc_type_of_stub): Use it here. (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input. (ppc64_elf_tls_setup): Typo fix. (adjust_toc_syms): Correctly handle symbols defined past the end of the toc. Move syms on removed entries to next entry rather than to start of toc. (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to edit ppc64 input. Allocate one extra word in skip array. Honour info->keep_memory when reading relocs if we can. Adjust toc relocs after adjusting symbols.
2010-06-25daily updateAlan Modra1-1/+1
2010-06-24daily updateAlan Modra1-1/+1
2010-06-23 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrunNathan Sidwell2-6/+11
when scaning map.
2010-06-23daily updateAlan Modra1-1/+1