summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* * elf.c (_bfd_elf_get_synthetic_symtab): Only bump the symbolAlan Modra2007-11-122-2/+8
| | | | pointer when we have a valid symbol. Init udata.p to NULL.
* daily updateAlan Modra2007-11-111-1/+1
|
* daily updateAlan Modra2007-11-101-1/+1
|
* daily updateAlan Modra2007-11-091-1/+1
|
* * elf-vxworks.c (elf_vxworks_emit_relocs): Don't clobberNathan Sidwell2007-11-092-36/+46
| | | | rel_hash. Move loop inside if test.
* Apply delta accidentally omitted from 2007-11-05 commit.Danny Smith2007-11-091-14/+0
| | | | | * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text and .bss section use the default.
* daily updateAlan Modra2007-11-081-1/+1
|
* * elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare.Nathan Sidwell2007-11-082-0/+70
| | | | | | | | | | | | | | | | | | | | | | | (elf_vxworks_finish_dynamic_entry): Declare. * elf-vxworks.c: Include elf/vxworks.h. (elf_vxworks_add_dynamic_entries): New. (elf_vxworks_finish_dynamic_entry): New. * Makefile.am (elf-vxworks.lo): Add dependency. * Makefile.in (elf-vxworks.lo): Add dependency. * elf32-i386.c (elf_i386_size_dynamic_sections, elf_i386_finish_dynamic_sections): Call elf_vxworks_add_dynamic_entries and elf_vxworks_finish_dynamic_entry. * elf32-ppc.c (ppc_elf_size_dynamic_sections, ppc_elf_finish_dynamic_sections): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections, sparc_finish_dyn): Likewise. * elf32-sh.c (sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_sections): Likewise. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_finish_dynamic_sections): Likewise. * elf32-arm.c (elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections): Likewise.
* include/elf/gdb_6_7-branchNathan Sidwell2007-11-089-3/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vxworks.h: New. bfd/ * elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare. (elf_vxworks_finish_dynamic_entry): Declare. * elf-vxworks.c: Include elf/vxworks.h. (elf_vxworks_add_dynamic_entries): New. (elf_vxworks_finish_dynamic_entry): New. * Makefile.am (elf-vxworks.lo): Add dependency. * Makefile.in (elf-vxworks.lo): Add dependency. * elf32-i386.c (elf_i386_size_dynamic_sections, elf_i386_finish_dynamic_sections): Call elf_vxworks_add_dynamic_entries and elf_vxworks_finish_dynamic_entry. * elf32-ppc.c (ppc_elf_size_dynamic_sections, ppc_elf_finish_dynamic_sections): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections, sparc_finish_dyn): Likewise. * elf32-sh.c (sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_sections): Likewise. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_finish_dynamic_sections): Likewise. * elf32-arm.c (elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections): Likewise. ld/ * ld-vxworks/tls-2.d: New. * ld-vxworks/tls-2.s: New.
* daily updateAlan Modra2007-11-071-1/+1
|
* * bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP onNick Clifton2007-11-072-1/+14
| | | | .debug_frame for Irix.
* daily updateAlan Modra2007-11-061-1/+1
|
* bfd/Alan Modra2007-11-062-394/+445
| | | | | | | | | | | | | | | * elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here.. (ppc64_elf_gc_sweep_hook): ..or here.. (ppc64_elf_tls_optimize): ..or here. Make two passes through the relocs, ensuring that tls_get_addr calls follow gd and ld relocs. (allocate_dynrelocs): Refcount tlsld_got here. (ppc64_elf_size_dynamic_sections): Allocate local got and call allocate_dynrelocs before allocating tlsld_got. (ppc64_elf_relocate_section): Remove check that a tls_get_addr call follows gd and ld relocs. ld/testsuite/ * ld-powerpc/tlsso.d: Update for changed got alloc order. * ld-powerpc/tlsso.r: Likewise.
* bfd/Alan Modra2007-11-062-236/+264
| | | | | | | | | | | | | | * elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here.. (ppc_elf_gc_sweep_hook): ..or here.. (ppc_elf_tls_optimize): ..or here. Make two passes through the relocs, ensuring that tls_get_addr calls follow gd and ld relocs. (allocate_dynrelocs): Refcount tlsld_got here. (ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before allocating tlsld_got. (ppc_elf_relocate_section): Remove check that a tls_get_addr call follows gd and ld relocs. ld/testsuite/ * ld-powerpc/tlsso32.d: Update for changed got alloc order.
* daily updateAlan Modra2007-11-051-1/+1
|
* * merge.c (sec_merge_hash_lookup): Revert last change.Alan Modra2007-11-052-18/+22
| | | | | | | | (record_section): Likewise. (_bfd_merge_sections): Likewise. (_bfd_merged_section_offset): Properly handle NULL secinfo. (_bfd_add_merge_section): Allocate extra space for a zero terminator on SEC_STRINGS sections.
* includeDanny Smith2007-11-042-14/+6
| | | | | | | | | | | | | | | | | | * coff/pe.h (COFF_ENCODE_ALIGNMENT) Define. gas * read.c (ALIGN_LIMIT): Rename to ... (TC_ALIGN_LIMIT): Guard against prior definition. * config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define. bfd * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text and .bss section use the default. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. ld/testsuite * ld-scripts/align.exp: Enable for PECOFF. * ld-scripts/alignof.exp: Likewise.
* daily updateAlan Modra2007-11-041-1/+1
|
* daily updateAlan Modra2007-11-031-1/+1
|
* daily updateAlan Modra2007-11-021-1/+1
|
* daily updateAlan Modra2007-11-011-1/+1
|
* bfd:sid-snapshot-20071101Joseph Myers2007-11-012-5/+33
| | | | | | | | | | | | | * merge.c (sec_merge_hash_lookup): Add parameter sec_end. Check for unterminated strings. All callers changed. (record_section): Add parameter abfd. Give error message for unterminated strings. (_bfd_merge_sections): Update call to record_section. (_bfd_write_merged_section, _bfd_merged_section_offset): Handle NULL secinfo from merge failures. ld/testsuite: * ld-elf/merge3.d, ld-elf/merge3.s: New.
* daily updateAlan Modra2007-10-311-1/+1
|
* * elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for alignNick Clifton2007-10-312-17/+25
| | | | relocs when there are no relocs attached to the section.
* * elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.Alan Modra2007-10-313-20/+7
| | | | | * elflink.c (bfd_elf_match_symbols_in_sections): Make static. Remove section name comparisons.
* daily updateAlan Modra2007-10-301-1/+1
|
* * mn10300.h (R_MN10300_ALIGN): Define.Nick Clifton2007-10-305-9/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * reloc.c (BFD_RELOC_MN10300_ALIGN): Add. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * elf-m10300.h: Handle R_MN10300_ALIGN relocs. * mn10300_elf_relax_delete_bytes): Honour R_MN10300_ALIGN relocs. Re-fix off by one error in comparisons. * config/tc-mn10300.c (tc_gen_reloc): Fix test that decides when sym_diff relocs should be generated. (md_apply_fix): Skip R_MN10300_ALIGN relocs. (mn10300_fix_adjustable): Do not adjust R_MN10300_ALIGN relocs. (mn10300_handle_align): New function. Generate R_MN10300_ALIGN relocs to record alignment requests. * config/tc-mn10300.h (TC_FORCE_RELOCATION_SUB_SAME): Also force R_MN10300_ALIGN relocs. (HANDLE_ALIGN): Define. Call mn10300_handle_align. * gas/all/gas.exp: Do not run diff1.s test for mn10300. * ld-mn10300/mn10300.exp: Run new tests. Skip i126256 test if a compiler is not available. * ld-mn10300/i112045-3.s: New test. * ld-mn10300/i112045-3.d: Expected disassembly. * ld-mn10300/i135409.s: Rename to i135409-1.s. * ld-mn10300/i135409.d: Rename to i135409-1.d * ld-mn10300/i135409-2.s: New test. * ld-mn10300/i135409-2.d: Expected symbol table. * ld-mn10300/i36434.d: Adjust expected disassembly.
* daily updateAlan Modra2007-10-291-1/+1
|
* daily updateAlan Modra2007-10-281-1/+1
|
* daily updateAlan Modra2007-10-271-1/+1
|
* daily updateAlan Modra2007-10-271-1/+1
|
* daily updateAlan Modra2007-10-261-1/+1
|
* bfd/Pedro Alves2007-10-253-6/+9
| | | | | | | | | | | | * bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case. * bfd-in2.h: Regenerate. ld/ * pe-dll.c (autofilter_symbollist_generic) (autofilter_symbollist_i386, autofilter_liblist) (autofilter_objlist, autofilter_symbolprefixlist) (autofilter_symbolsuffixlist): Don't use STRING_COMMA_LEN with NULL.
* * elf32-ppc.c (ppc_elf_merge_obj_attributes): Add support forDaniel Jacobowitz2007-10-252-16/+72
| | | | | | | | | | | | | | Tag_GNU_Power_ABI_Vector. * readelf.c (display_power_gnu_attribute): Add support for Tag_GNU_Power_ABI_Vector. * ppc.h (Tag_GNU_Power_ABI_Vector): New. * ld-powerpc/attr-gnu-8-1.s, ld-powerpc/attr-gnu-8-11.d, ld-powerpc/attr-gnu-8-2.s, ld-powerpc/attr-gnu-8-23.d, ld-powerpc/attr-gnu-8-3.s, ld-powerpc/attr-gnu-8-31.d: New. * ld-powerpc/powerpc.exp: Run new tests.
* * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Do not addJoseph Myers2007-10-252-3/+12
| | | | PT_NULL header when not linking.
* * elf.c (elfcore_grok_ppc_vmx): New function.Alan Modra2007-10-253-0/+35
| | | | | | (elfcore_grok_note): Handle NT_PPC_VMX. (elfcore_write_ppc_vmx): New function. * elf-bfd.h (elfcore_write_ppc_vmx): Declare.
* daily updateAlan Modra2007-10-251-1/+1
|
* * Makefile.am: Run "make dep-am".Alan Modra2007-10-244-20/+29
| | | | | * Makefile.in: Regenerate. * po/SRC-POTFILES.in: Regenerate.
* daily updateAlan Modra2007-10-241-1/+1
|
* * elf64-ppc.c (ppc_build_one_stub): Don't duplicate relocsAlan Modra2007-10-232-45/+60
| | | | | | emitted for ".brlt" entries. (toc_adjusting_stub_needed): Don't treat ".fixup" specially here.. (ppc64_elf_next_input_section): ..instead do so here.
* daily updateAlan Modra2007-10-231-1/+1
|
* daily updateAlan Modra2007-10-221-1/+1
|
* daily updateAlan Modra2007-10-211-1/+1
|
* daily updateAlan Modra2007-10-201-1/+1
|
* Add MN10300 linker relaxation support for symbol differencesNick Clifton2007-10-196-51/+219
|
* * elf-m10300.c: Convert to ISO C.Nick Clifton2007-10-192-502/+397
| | | | * tc-mn10300.c: Convert to ISO C.
* daily updateAlan Modra2007-10-191-1/+1
|
* PR ld/4424Alan Modra2007-10-189-7/+84
| | | | | | | | | | | | | | | | | | | * config.bfd (targ_selvecs): Add bfd_elf64_alpha_vec for alpha/FreeBSD. Add bfd_elf64_sparc_vec for sparc64/FreeBSD. Add bfd_elf32_i386_vec and bfd_efi_app_ia32_vec for i386/FreeBSD. (targ64_selvecs): Set for i386/FreeBSD. * elf-bfd.h (elf_backend_data): Add relocs_compatible. (_bfd_elf_default_relocs_compatible): Declare. (_bfd_elf_relocs_compatible): Declare. * elfxx-target.h (elf_backend_relocs_compatible): Define. (elfNN_bed): Init new relocs_compatible field. * elflink.c (_bfd_elf_default_relocs_compatible): New function. (_bfd_elf_relocs_compatible): New function. (elf_link_add_object_symbols): Call bed->relocs_compatible. * elf32-i386.c (elf_backend_relocs_compatible): Define. * elf64-alpha.c: Likewise. * elf64-sparc.c: Likewise. * elf64-x86-64.c: Likewise.
* daily updateAlan Modra2007-10-181-1/+1
|
* * elf32-xtensa.c (relax_section): Check for a reference to a discardedBob Wilson2007-10-172-1/+54
| | | | DWARF section and anticipate its replacement with the kept section.