aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2003-06-10Add "attn", "lq" and "stq" power4 insns.Alan Modra2-11/+27
2003-06-10include/elf/Richard Sandiford5-2/+43
* h8.h (E_H8_MACH_H8300SXN): New flag. bfd/ * archures.c (bfd_mach_h8300sxn): New architecture. * bfd-in2.h: Regenerate. * cpu-h8300.c (h8300_scan): Check for 'sxn'. (h8300sxn_info_struct): New. (h8300sx_info_struct): Link to it. * elf32-h8300.c (elf32_h8_mach): Add h8300sxn case. (elf32_h8_final_write_processing): Likewise. gas/ * config/tc-h8300.c (h8300sxnmode): New. (md_pseudo_table): Add .h8300sxn entry. Sync others with FSF version. ld/ * configure.tgt (h8300*): Add h8300sxn emulations. * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o. (eh8300sxn.c, eh8300sxnelf.c): New rules. * Makefile.in: Regenerate. * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
2003-06-10daily updateAlan Modra1-1/+1
2003-06-09daily updateAlan Modra1-1/+1
2003-06-08 * elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used byAlan Modra6-159/+509
elfxx-target.h so that we can use elf_backend_got_header_size. (ELF_MACHINE_ALT1, ELF_MACHINE_ALT2): Delete. (GLINK_CALL_STUB_SIZE): Modify. Define new glink call stub and associated macros. (ppc64_elf_howto_raw <GOT_TPREL16_DS, GOT_TPREL16_LO_DS>): Correct dst_mask. (enum ppc_stub_type): Add ppc_stub_long_branch_r2off and ppc_stub_plt_branch_r2off. (struct ppc_stub_hash_entry): Reorganize. (struct ppc_link_hash_table): Add no_multi_toc, multi_toc_needed, toc_curr, toc_off and emit_stub_syms. (ppc64_elf_link_hash_table_create): Init them. (ppc_stub_name): Correct string size. (ppc64_elf_check_relocs): Set has_gp_reloc on GOT and TOC relocs. (ppc64_elf_size_dynamic_sections): Set no_multi_toc if GOT entries used. (ppc_type_of_stub): Tweak root.type test. (build_plt_stub): Remove glink code. Adjust for insn macro changes. (ppc_size_one_stub): Handle ppc_stub_long_branch_r2off and ppc_stub_plt_branch_r2off. (ppc_build_one_stub): Likewise. Fix var shadowing. Correct addis,addi range test. Use toc_off to calculte r2 values. Handle emit_stub_syms. (ppc64_elf_setup_section_lists): Remove htab creator flavour test. Initialize elf_gp and toc_curr. (ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): New functions. (ppc64_elf_next_input_section): Set toc_off. (group_sections): Ensure groups have the same TOC. (ppc64_elf_size_stubs): Check whether we need a TOC adjusting stub. (ppc64_elf_build_stubs): Add emit_stub_syms param, and stash in htab. Build new glink stub. (ppc64_elf_relocate_section): Handle multiple TOCs. Fix comments. (ppc64_elf_finish_dynamic_sections): Adjust DT_PPC64_GLINK. * elf64-ppc.h (ppc64_elf_build_stubs): Update prototype. (ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): Declare. * section.c (struct sec): Rename flag12 to has_gp_reloc. (STD_SECTION): Update. * ecoff.c (bfd_debug_section): Update comment. * bfd-in2.h: Regenerate.
2003-06-08daily updateAlan Modra1-1/+1
2003-06-07daily updateAlan Modra1-1/+1
2003-06-06 * elfcode.h (elf_slurp_reloc_table_from_section): Don't dereferenceDaniel Jacobowitz2-1/+8
NULL function pointers.
2003-06-06daily updateAlan Modra1-1/+1
2003-06-05 * simple.c (bfd_simple_get_relocated_section_contents): CallDaniel Jacobowitz2-1/+6
_bfd_generic_link_add_symbols instead of bfd_link_add_symbols.
2003-06-04Moved the ticoff0/1 swaptables and coff0/1 bad format hooks to coffcode.hSvein Seldal4-226/+129
2003-06-04Altered the CREATE_xxx_COFF_TARGET_VEC macro arguments -- changelog dropped outSvein Seldal1-0/+22
2003-06-04Altered the CREATE_xxx_COFF_TARGET_VEC macro argumentsSvein Seldal17-282/+82
2003-06-04Fixed initialization bugSvein Seldal2-2/+7
2003-06-03binutils/Jakub Jelinek4-0/+74
* readelf.c (get_segment_type): Handle PT_GNU_STACK. bfd/ * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK. (bfd_section_from_phdr): Likewise. (map_sections_to_segments): Create PT_GNU_STACK segment header. (get_program_header_size): Count with PT_GNU_STACK. * elf-bfd.h (struct elf_obj_tdata): Add stack_flags. * elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags. include/ * bfdlink.h (struct bfd_link_info): Add execstack and noexecstack. * elf/common.h (PT_GNU_STACK): Define. ld/ * ldgram.y (phdr_type): Grok PT_GNU_STACK. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add -z execstack and -z noexecstack. (gld${EMULATION_NAME}_list_options): Likewise. * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
2003-06-03bfd/H.J. Lu2-26/+26
2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * elflink.h (elf_link_input_bfd): Call linker error_handler for discarded definitions. include/ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New. ld/ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * ldmisc.c: Include "bfdlink.h". (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION and -LD_DEFINITION_IN_DISCARDED_SECTION. * Makefile.am: Rebuild dependency. * Makefile.in: Regenerated. ld/testsuite/ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> * ld-discard/extern.d: Updated. * ld-discard/start.d: Likewise. * ld-discard/static.d: Likewise.
2003-06-03Return 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY.Nick Clifton2-0/+8
2003-06-03Add pc-relative 32-bit reloc to v850 port. Fixes ld-elf/merge test failure.Nick Clifton6-807/+1230
2003-06-03 * elf32-sh.c (sh_elf_size_dynamic_sections): Create .interp sectionKaz Kojima3-4/+10
and DT_DEBUG dynamic tag even for position independent executables. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewize.
2003-06-02 * config.bfd: Move obsolete entries out of the range of theDaniel Jacobowitz2-8/+18
targmatch sed script.
2003-06-02 * config.bfd (mips*-dec-bsd*, mips*-*-pe*): Mark as obsolete.Daniel Jacobowitz2-5/+8
2003-06-02daily updateAlan Modra1-1/+1
2003-06-01daily updateAlan Modra1-1/+1
2003-05-31 * elf32-ppc.c (allocate_dynrelocs): Use single slot for first 8192Jakub Jelinek2-1/+6
plt entries, not just 8191.
2003-05-31daily updateAlan Modra1-1/+1
2003-05-30 * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.Daniel Jacobowitz2-1/+6
Reported by Ken Faiczak <kfaiczak@SANDVINE.com>.
2003-05-30bfd/Jakub Jelinek13-30/+52
* elflink.h (elf_link_add_object_symbols): Use !info->executable instead of info->shared where appropriate. (bfd_elfNN_size_dynamic_sections, elf_link_output_extsym): Likewise. * elflink.c (_bfd_elf_create_got_section): Likewise. (_bfd_elf_link_create_dynamic_sections): Likewise. (_bfd_elf_link_assign_sym_version): Likewise. * elf32-i386.c (elf_i386_size_dynamic_sections): Create .interp section and DT_DEBUG dynamic tag even for position independent executables. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. * elf32-s390.c (elf_s390_size_dynamic_sections: Likewise. * elf64-ppc.c (ppc64_elf_size_dynamic_sections: Likewise. * elf64-s390.c (elf_s390_size_dynamic_sections: Likewise. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections: Likewise. * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections: Likewise. * elf32-sparc.c (elf32_sparc_size_dynamic_sections: Likewise. * elf64-alpha.c (elf64_alpha_size_dynamic_sections: Likewise. * elf64-sparc.c (sparc64_elf_size_dynamic_sections: Likewise. include/ * bfdlink.h (struct bfd_link_info): Add pie and executable bits. ld/ * lexsup.c (OPTION_PIE): Define. (ld_options): Add -pie and --pic-executable options. (parse_args): Handle OPTION_PIE. * ldmain.c (main): Initialize link_info.pie and link_info.executable. * genscripts.sh: Generate PIE scripts. * ld.texinfo: Document -pie and --pic-executable options. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): (gld${EMULATION_NAME}_place_orphan): Likewise. (gld${EMULATION_NAME}_get_script): Include PIE scripts. * scripttempl/elf.sc: In PIE scripts set . the same way as in shared scripts. * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes. * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise. * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
2003-05-30daily updateAlan Modra1-1/+1
2003-05-29 * elf.c (elfcore_grok_nto_status): Only set lwpid for the active orAlan Modra2-6/+28
signalled thread. (elfcore_grok_nto_gregs): Only make .reg section for the active thread.
2003-05-29Replace <ctype.h> with "safe-ctype.h"Nick Clifton4-86/+73
2003-05-29 * elfxx-mips.c: Don't force symbols local unconditionally.Thiemo Seufer2-2/+6
2003-05-29daily updateAlan Modra1-1/+1
2003-05-282003-05-28 Alan Modra <amodra@bigpond.net.au>H.J. Lu2-8/+8
* elf32-hppa.c (elf32_hppa_relocate_section): Delete bogus undefined_symbol call.
2003-05-27 * elfxx-mips.c (mips_elf_hash_sort_data): Fix formattting.Richard Sandiford2-2/+8
(mips_elf_link_hash_table): Likewise.
2003-05-23daily updateAlan Modra1-1/+1
2003-05-22 * elf64-mips.c (elf_mips_gnu_rel16_s2): Add internally usedThiemo Seufer3-0/+89
R_MIPS_GNU_REL16_S2 support. (bfd_elf64_bfd_reloc_type_lookup): Use it. (mips_elf64_rtype_to_howto): Use it. * elfn32-mips.c (elf_mips_gnu_rel16_s2): Add internally used R_MIPS_GNU_REL16_S2 support. (bfd_elf32_bfd_reloc_type_lookup): Use it. (mips_elf_n32_rtype_to_howto): Use it.
2003-05-22 * som.h: Define PA_2_0 before including a.out.hDave Anglin2-0/+7
2003-05-22daily updateAlan Modra1-1/+1
2003-05-212003-05-07 Eric Christopher <echristo@redhat.com>Eric Christopher2-59/+50
Alexandre Oliva <aoliva@redhat.com> * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Adjust pic tests, change to warning. (_bfd_mips_elf_final_link): Remove EF_MIPS_CPIC flag setting. 2003-05-07 Eric Christopher <echristo@redhat.com> * config/tc-mips.c (mips_abicalls): New variable. (md_parse_option): Use. (s_option): Ditto. (s_abicalls): Ditto. (mips_elf_final_processing): Set EF_MIPS_PIC and EF_MIPS_CPIC dependent on above.
2003-05-21Check for a target triplet of shl-...-netbsdelf as well as shle-...-netbsdelf.Nick Clifton2-5/+6
2003-05-21Fix dst_mask for X_STORMY16_REL_12 reloc.Nick Clifton2-1/+4
2003-05-21USe is_elf_hash_table() to check for the presence of an elf_link_hash_tableNick Clifton2-2/+8
2003-05-21.Roland McGrath1-1/+18
2003-05-212003-05-19 Roland McGrath <roland@redhat.com>Roland McGrath2-9/+26
* elf.c (bfd_elf_bfd_from_remote_memory): New function. * bfd-in.h: Declare it. * bfd-in2.h: Regenerated. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function. * elf-bfd.h (struct elf_backend_data): New function pointer member elf_backend_bfd_from_remote_memory. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory): Declare them. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro. (elfNN_bed): Add that to the initializer.
2003-05-212003-05-19 Roland McGrath <roland@redhat.com>Roland McGrath4-1/+259
* elf.c (bfd_elf_bfd_from_remote_memory): New function. * bfd-in.h: Declare it. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function. * elf-bfd.h (struct elf_backend_data): New function pointer member elf_backend_bfd_from_remote_memory. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory): Declare them. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro. (elfNN_bed): Add that to the initializer.
2003-05-212003-05-19 Roland McGrath <roland@redhat.com>Roland McGrath1-0/+38
* elf.c (bfd_elf_bfd_from_remote_memory): New function. * bfd-in.h: Declare it. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function. * elf-bfd.h (struct elf_backend_data): New function pointer member elf_backend_bfd_from_remote_memory. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory): Declare them. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro. (elfNN_bed): Add that to the initializer. 2003-05-15 Roland McGrath <roland@redhat.com> * elf.c (elfcore_grok_note): Grok NT_AUXV note, make ".auxv" section.
2003-05-21daily updateAlan Modra1-1/+1
2003-05-20bfd/H.J. Lu3-2/+14
2003-05-20 Jakub Jelinek <jakub@redhat.com> * elflink.h (elf_link_output_extsym): Only issue error about != STV_DEFAULT symbols if they are bfd_link_hash_undefined. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF when removing the old definition for symbols with non-default visibility. ld/testsuite/ 2003-05-20 Jakub Jelinek <jakub@redhat.com> * ld-elfvsb/common.c: New file. * ld-elfvsb/elfvsb.exp: Add common. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * ld-elfvsb/sh3.c: New file. * ld-elfvsb/test.c: Likewise. * ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
2003-05-20daily updateAlan Modra1-1/+1
2003-05-182003-05-18 Jason Eckhardt <jle@rice.edu>Jason Eckhardt2-1/+5
gas: * config/tc-i860.c (i860_process_insn): Initialize fc after each opcode mismatch. include/opcode: * i860.h (form, pform): Add missing .dd suffix. opcodes: * i860-dis.c (print_insn_i860): Instruction shrd has a dual bit, print it. bfd: * elf32-i860.c (elf32_i860_relocate_highadj): Simplify calculation.