aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2009-10-16 PR binutils/10785Alan Modra4-17/+35
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc bim and bim->buffer. bfd_malloc instead. * peicode.h (pe_ILF_build_a_bfd): Similarly. (ILF_DATA_SIZE): Don't include bim. * opncls.c (bfd_close): Test bim->buffer non-NULL before freeing.
2009-10-15daily updateAlan Modra1-1/+1
2009-10-14daily updateAlan Modra1-1/+1
2009-10-14include/Alan Modra2-1/+5
* bfdlink.h (enum bfd_link_common_skip_ar_symbols): Rename from bfd_link_common_skip_ar_aymbols. (struct bfd_link_info): Here too. bfd/ * aoutx.h (aout_link_check_ar_symbols): Typo fix. ld/ * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
2009-10-13daily updateAlan Modra1-1/+1
2009-10-132009-10-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+9
PR binutils/10763 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Declare plt earlier.
2009-10-13 * elflink.c (_bfd_elf_merge_symbol): Revert previous patch.Alan Modra2-4/+8
2009-10-13Fix %s that should be %B in several message formats.Roland McGrath2-7/+12
2009-10-12daily updateAlan Modra1-1/+1
2009-10-11daily updateAlan Modra1-1/+1
2009-10-10daily updateAlan Modra1-1/+1
2009-10-10 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols forAlan Modra2-3/+10
excluded output sections.
2009-10-09daily updateAlan Modra1-1/+1
2009-10-09bfd/Tristan Gingold2-0/+7
2009-10-09 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH. (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
2009-10-092009-10-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-90/+135
* mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Rename to bfd_mach_o_read_symtab_symbols. (bfd_mach_o_scan_write_thread): Rename to bfd_mach_o_write_thread. (bfd_mach_o_scan_write_relocs): Rename to bfd_mach_o_write_relocs. (bfd_mach_o_scan_write_section_32): Rename to bfd_mach_o_write_section_32. (bfd_mach_o_scan_write_section_64): Rename to bfd_mach_o_write_section_64. (bfd_mach_o_scan_write_segment_32): Rename to bfd_mach_o_write_segment_32. (bfd_mach_o_scan_write_segment_64): Rename to bfd_mach_o_write_segment_64. (bfd_mach_o_scan_write_symtab): Rename to bfd_mach_o_write_symtab. (bfd_mach_o_scan_read_section_32): Rename to bfd_mach_o_read_section_32. (bfd_mach_o_scan_read_section_64): Rename to bfd_mach_o_read_section_64. (bfd_mach_o_scan_read_section): Rename to bfd_mach_o_read_section. (bfd_mach_o_scan_read_symtab_strtab): Rename to bfd_mach_o_read_symtab_strtab. (bfd_mach_o_scan_read_symtab_symbol): Rename to bfd_mach_o_read_symtab_symbol. (bfd_mach_o_scan_read_dysymtab_symbol): Rename to bfd_mach_o_read_dysymtab_symbol. (bfd_mach_o_scan_read_dylinker): Rename to bfd_mach_o_read_dylinker. (bfd_mach_o_scan_read_dylib): Rename to bfd_mach_o_read_dylib. (bfd_mach_o_scan_read_prebound_dylib): Rename to bfd_mach_o_read_prebound_dylib. (bfd_mach_o_scan_read_thread): Rename to bfd_mach_o_read_thread. (bfd_mach_o_scan_read_dysymtab): Rename to bfd_mach_o_read_dysymtab. (bfd_mach_o_scan_read_symtab): Rename to bfd_mach_o_read_symtab. (bfd_mach_o_scan_read_uuid): Rename to bfd_mach_o_read_uuid. (bfd_mach_o_scan_read_linkedit): Rename to bfd_mach_o_read_linkedit. (bfd_mach_o_scan_read_str): Rename to bfd_mach_o_read_str. (bfd_mach_o_scan_read_dyld_info): Rename to bfd_mach_o_read_dyld_info. (bfd_mach_o_scan_read_segment): Rename to bfd_mach_o_read_segment. (bfd_mach_o_scan_read_segment_32): Rename to bfd_mach_o_read_segment_32. (bfd_mach_o_scan_read_segment_64): Rename to bfd_mach_o_read_segment_64. (bfd_mach_o_scan_read_command): Rename to bfd_mach_o_read_command. * mach-o.h (bfd_mach_o_scan_read_dysymtab_symbol): Rename to bfd_mach_o_read_dysymtab_symbol.
2009-10-092009-10-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-38/+149
* mach-o.c (bfd_mach_o_section_get_entry_size): Moved. (bfd_mach_o_section_get_nbr_indirect): Ditto. (bfd_mach_o_get_synthetic_symtab): New function. (bfd_mach_o_print_private_header): Print the number of commands in decimal. * mach-o.h (bfd_mach_o_get_synthetic_symtab): Add prototype. * mach-o-target.c: Do not defined bfd_mach_o_get_synthetic_symtab.
2009-10-08daily updateAlan Modra1-1/+1
2009-10-082009-10-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+5
* config.bfd: Add bfd_mach_o_i386_vec in x86_64-darwin targ_selvecs.
2009-10-07daily updateAlan Modra1-1/+1
2009-10-062009-10-06 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* bfd-in2.h: Regenerated.
2009-10-05daily updateAlan Modra1-1/+1
2009-10-04daily updateAlan Modra1-1/+1
2009-10-03daily updateAlan Modra1-1/+1
2009-10-03daily updateAlan Modra1-1/+1
2009-10-02include/aout/Alan Modra14-34/+30
* aout64.h (N_SHARED_LIB): Define as zero if not already defined. * sun4.h (N_SHARED_LIB): Define. * hp300hpux.h (N_SHARED_LIB): Don't define. bfd/ * aout-cris.c (N_SHARED_LIB): Don't define. * hp300bsd.c (N_SHARED_LIB): Don't define. * i386bsd.c (N_SHARED_LIB): Don't define. * i386linux.c (N_SHARED_LIB): Don't define. * i386lynx.c (N_SHARED_LIB): Don't define. * m68klinux.c (N_SHARED_LIB): Don't define. * m88kmach3.c (N_SHARED_LIB): Don't define. * mipsbsd.c (N_SHARED_LIB): Don't define. * newsos3.c (N_SHARED_LIB): Don't define. * pc532-mach.c (N_SHARED_LIB): Don't define. * pdp11.c (N_SHARED_LIB): Don't define. * sparclinux.c (N_SHARED_LIB): Don't define. * vaxbsd.c (N_SHARED_LIB): Don't define.
2009-10-02daily updateAlan Modra1-1/+1
2009-10-01 * cofflink.c (_bfd_coff_generic_relocate_section): Look for the auxDave Korn2-1/+6
symbol for a weak undef in the auxbfd, not the input bfd.
2009-10-01bfd/Ulrich Weigand2-16/+28
* elf32-spu.c (spu_elf_auto_overlay): Insert icache linker script after .toe instead of before .text section. Set the LMA of all overlay sections to their icache IA address. (spu_elf_find_overlays): Determine icache set id without reference to the LMA. ld/testsuite/ * ld-spu/icache1.d: Update to new section layout.
2009-10-01daily updateAlan Modra1-1/+1
2009-09-302009-09-30 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+7
* configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS.
2009-09-30daily updateAlan Modra1-1/+1
2009-09-292009-09-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-42/+27
* elf64-x86-64.c (elf64_x86_64_append_rela): New. (elf64_x86_64_relocate_section): Use it. (elf64_x86_64_finish_dynamic_symbol): Likewise.
2009-09-29bfdNick Clifton13-0/+3610
* Makefile.am (ALL_MACHINES): Add cpu-rx.lo. (ALL_MACHINES_CFILES): Add cpu-rx.c. (BFD32_BACKENDS): Add elf32-rx.lo. (BFD32_BACKENDS_CFILES): Add elf32-rx.c. * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx. Export bfd_rx_arch. (bfd_archures_list): Add bfd_rx_arch. * config.bfd: Add entry for rx-*-elf. * configure.in: Add entries for bfd_elf32_rx_le_vec and bfd_elf32_rx_be_vec. * reloc.c: Add RX relocations. * targets.c: Add RX target vectors. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * libbfd.h: Regenerate. * cpu-rx.c: New file. * elf32-rx.c: New file. binutils * readelf.c: Add support for RX target. * MAINTAINERS: Add DJ and NickC as maintainers for RX. gas * Makefile.am: Add RX target. * configure.in: Likewise. * configure.tgt: Likewise. * read.c (do_repeat_with_expander): New function. * read.h: Provide a prototype for do_repeat_with_expander. * doc/Makefile.am: Add RX target documentation. * doc/all.texi: Likewise. * doc/as.texinfo: Likewise. * Makefile.in: Regenerate. * NEWS: Mention support for RX architecture. * configure: Regenerate. * doc/Makefile.in: Regenerate. * config/rx-defs.h: New file. * config/rx-parse.y: New file. * config/tc-rx.h: New file. * config/tc-rx.c: New file. * doc/c-rx.texi: New file. gas/testsuite * gas/rx: New directory. * gas/rx/*: New set of test cases. * gas/elf/section2.e-rx: New expected output file. * gas/all/gas.exp: Add support for RX target. * gas/elf/elf.exp: Likewise. * gas/lns/lns.exp: Likewise. * gas/macros/macros.exp: Likewise. include * dis-asm.h: Add prototype for print_insn_rx. include/elf * rx.h: New file. include/opcode * rx.h: New file. ld * Makefile.am: Add rules to build RX emulation. * configure.tgt: Likewise. * NEWS: Mention support for RX architecture. * Makefile.in: Regenerate. * emulparams/elf32rx.sh: New file. * emultempl/rxelf.em: New file. opcodes * Makefile.am: Add RX files. * configure.in: Add support for RX target. * disassemble.c: Likewise. * Makefile.in: Regenerate. * configure: Regenerate. * opc2c.c: New file. * rx-decode.c: New file. * rx-decode.opc: New file. * rx-dis.c: New file.
2009-09-292009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>M R Swami Reddy2-3/+5
* elf32-cr16.c (elf32_cr16_relocate_section): Removed info->relocatable to fix the ld/testsuites/ld-elf/linkonce1 test case.
2009-09-29daily updateAlan Modra1-1/+1
2009-09-28oops - omitted from previous deltaNick Clifton2-4/+10
2009-09-28 PR 10478Nick Clifton3-2/+13
* elf.c (bfd_section_from_shdr): Allow SHN_BEFORE and SHN_AFTER section link values in x86 binaries. * elfcode.h (elf_object_p): Likewise. * readelf.c (get_elf_section_flags): Allow SHN_BEFORE and SHN_AFTER section link values in x86 binaries. (process_section_headers): Likewise.
2009-09-28 * elf32-m68k.c (elf_m68k_final_write_processing): New function.Nick Clifton2-0/+67
(elf_backend_final_write_processing): Macro defined as above function.
2009-09-28daily updateAlan Modra1-1/+1
2009-09-27daily updateAlan Modra1-1/+1
2009-09-26daily updateAlan Modra1-1/+1
2009-09-25 Update soruces to make alpha, arc and arm targets compile cleanlyNick Clifton5-361/+408
with -Wc++-compat: * config/tc-alpha.c: Add casts. (extended_bfd_reloc_code_real_type): New type. Used to avoid enumeration conversion warnings. (struct alpha_fixup, void assemble_insn, assemble_insn) (assemble_tokens): Use new type. * ecoff.c: Add casts. (mark_stabs): Use enumeration names. * config/obj-elf.c: Add cast * config/tc-arc.c: Add casts. * config/obj-aout.h (text_section,data_section,bss_section): Make extern. * config/obj-elf.c: Add cast. * config/tc-arm.c: Add casts. (X, TxCE, TxCE, TxC3, TxC3w, TxCM_, TxCM, TUE, TUF, CE, CL, cCE) (cCL, C3E, xCM_, nUF, nCE_tag): Change input format to avoid the need for keywords as arguments. * ecoff.c: Add casts. * ecofflink.c: Add casts. * elf64-alpha.c: Add casts. (struct alpha_elf_got_entry, struct alpha_elf_reloc_entry): Move to top level. (SKIP_HOWTO): Use enum name. * elf32-arm.c: Add casts. (elf32_arm_vxworks_bed): Update code to avoid multiple declarations. (struct map_stub): Move to top level. * arc-dis.c Fix casts. * arc-ext.c: Add casts. * arm-dis.c (enum opcode_sentinel_enum): Gave name to anonymous enum. * emultempl/armelf.em: Add casts.
2009-09-25daily updateAlan Modra1-1/+1
2009-09-24bfd/H.J. Lu2-5/+15
2009-09-24 H.J. Lu <hongjiu.lu@intel.com> PR ld/10630 * elflink.c (elf_link_output_extsym): Turn off visibility on local symbol. (bfd_elf_final_link): Turn off visibility on dynamic local symbol. ld/testsuite/ 2009-09-24 H.J. Lu <hongjiu.lu@intel.com> PR ld/10630 * ld-alpha/tlsbin.rd: Remove HIDDEN/.hidden on local symbols. * ld-alpha/tlsbinr.rd: Likewise. * ld-alpha/tlspic.rd: Likewise. * ld-cris/libdso-2.d: Likewise. * ld-cris/locref1.d: Likewise. * ld-cris/locref2.d: Likewise. * ld-cris/tls-e-20a.d: Likewise. * ld-cris/tls-e-20.d: Likewise. * ld-cris/tls-e-80.d: Likewise. * ld-cris/tls-gc-68.d: Likewise. * ld-cris/tls-gc-69.d: Likewise. * ld-cris/tls-gc-70.d: Likewise. * ld-cris/tls-gc-75.d: Likewise. * ld-cris/tls-gc-76.d: Likewise. * ld-cris/tls-gc-79.d: Likewise. * ld-cris/tls-gd-1h.d: Likewise. * ld-cris/tls-gd-2h.d: Likewise. * ld-cris/tls-ld-4.d: Likewise. * ld-cris/tls-ld-5.d: Likewise. * ld-cris/tls-ld-6.d: Likewise. * ld-cris/tls-ld-7.d: Likewise. * ld-cris/tls-ldgd-14.d: Likewise. * ld-cris/tls-ldgd-15.d: Likewise. * ld-cris/tls-local-63.d: Likewise. * ld-cris/tls-local-64.d: Likewise. * ld-elf/pr9676.rd: Likewise. * ld-elf/pr9679.rd: Likewise. * ld-elfvsb/hidden2.d: Likewise. * ld-i386/tlsbindesc.rd: Likewise. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsdesc.rd: Likewise. * ld-i386/tlsgdesc.rd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlspic.rd: Likewise. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-powerpc/tlsexe32.r: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso32.r: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.r: Likewise. * ld-s390/tlsbin_64.rd: Likewise. * ld-s390/tlsbin.rd: Likewise. * ld-s390/tlspic_64.rd: Likewise. * ld-s390/tlspic.rd: Likewise. * ld-sparc/gotop32.rd: Likewise. * ld-sparc/gotop64.rd: Likewise. * ld-sparc/tlssunbin32.rd: Likewise. * ld-sparc/tlssunbin64.rd: Likewise. * ld-sparc/tlssunnopic32.rd: Likewise. * ld-sparc/tlssunnopic64.rd: Likewise. * ld-sparc/tlssunpic32.rd: Likewise. * ld-sparc/tlssunpic64.rd: Likewise. * ld-x86-64/tlsbindesc.rd: Likewise. * ld-x86-64/tlsbin.rd: Likewise. * ld-x86-64/tlsdesc.rd: Likewise. * ld-x86-64/tlsgdesc.rd: Likewise. * ld-x86-64/tlspic.rd: Likewise. * ld-xtensa/tlsbin.rd: Likewise. * ld-xtensa/tlspic.rd: Likewise. * ld-elf/local1.d: New. * ld-elf/local1.map: Likewise. * ld-elf/local1.s: Likewise. * ld-ia64/local1.d: Likewise. * ld-ia64/local1.map: Likewise. * ld-ia64/local1.s: Likewise.
2009-09-24 PR binutils/10654Alan Modra2-97/+36
* dwarf2.c (lookup_address_in_line_info_table): Remove workaround for invalid location lists generated by gcc-2.95 and Intel 6.0 C++. Remove "function" parm, adjust caller.
2009-09-24daily updateAlan Modra1-1/+1
2009-09-23bfd/Alan Modra5-11/+63
* bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit arguments. * elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT, DT_DEPAUDIT from audit/depaudit arguments. (elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries. (elf_link_add_object_symbols): Set dt_audit target data when finding a DT_AUDIT. * bfd-in2.h: Regenerate. * bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit, --depaudit, and -P options. (gld${EULATION_NAME}_handle_options): Ditto. (gld${EULATION_NAME}_list_options): Ditto. (gld${EMULATION_NAME}_append_to_separated_string): New function for handling rpath-like colon separated strings. (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit libs to bfd. Propagate DT_AUDIT from needed libs to depaudit. * ld.texinfo: Document new options. ld/testsuite/ * ld-elf/audit.exp: New. * ld-elf/audit.rd: New. * ld-elf/depaudit.rd: New. * ld-elf/depaudit2.rd: New.
2009-09-23 * elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure emptyJie Zhang2-26/+28
.rel.plt and .plt sections are removed. (elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss section. Remove the duplicated removing of empty .rel.plt section.
2009-09-23daily updateAlan Modra1-1/+1
2009-09-22daily updateAlan Modra1-1/+1