aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2000-09-032000-09-02 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt2-0/+26
* elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro. (elf32_i860_is_local_label_name): New function and prototype.
2000-09-02Increase minor version number (to 2.10.91) to help tools detect the newNick Clifton6-3/+368
ability to support removal of duplciate DWARF@ debug information.
2000-09-02Add .gnu.linkobce.wi. to the list of debug section names.Nick Clifton7-124/+168
Update generated files
2000-09-02Find all sections containing debug information and include them in the stash.Nick Clifton2-188/+224
2000-09-02* elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,Alexandre Oliva5-14/+1881
R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New. (sh_reloc_map): Add new relocs. (sh_elf_check_relocs, sh_elf_link_hash_newfunc, sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol, sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New functions. (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define. (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le, elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): New array constants. (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry): New variables. (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset, elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset, elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset): Define. (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry, elf_sh_link_hash_table): New structs. (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros. (sh_elf_relocate_section, sh_elf_check_relocs): Handle new relocation types. (elf_backend_create_dynamic_sections, bfd_elf32_bfd_link_hash_table_create, elf_backend_adjust_dynamic_symbol, elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol, elf_backend_finish_dynamic_sections, elf_backend_want_got_plt, elf_backend_plt_readonly, elf_backend_want_plt_sym, elf_backend_got_header_size, elf_backend_plt_header_size): Define. * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT, BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC): New relocs. * bfd-in2.h, libbfd.h: Rebuilt.
2000-09-01(elf_i386_finish_dynamic_symbol): Remove unnecessary check added 2000-08-27.Alan Modra2-3/+6
2000-08-31 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flagsJoern Rennecke2-1/+7
not initialized, set them to indicate the SH1 instruction set.
2000-08-31* acinclude.m4: Include libtool and gettext macros from theAlexandre Oliva4-1106/+905
top level. * aclocal.m4, configure: Rebuilt.
2000-08-302000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder7-68/+298
* elf.c: Eliminate references to __sparcv9 macro; replace with autoconf variables HAVE_PSINFO32_T etc. * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T, HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO. * config.in: Ditto. * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto. * aclocal.m4: Ditto. * configure: Regenerate.
2000-08-27Reclaim reloc space for symbols that have been forced local.Alan Modra2-43/+63
2000-08-24Allow common symbols to have an alignment of 1 if explicitly requested, andNick Clifton2-1/+10
not overridden by other definitions.
2000-08-22Fix bugs detecting w65 architecture.Nick Clifton3-4/+15
2000-08-222000-08-22 H.J. Lu <hjl@gnu.org>H.J. Lu6-0/+106
* elf-bfd.h (elf_link_hash_table): Add runpath. * bfd-in.h (bfd_elf_get_runpath_list): New prototype. * bfd-in2.h: Rebuilt. * elf.c (_bfd_elf_link_hash_table_init): Initialize the "runpath" field to NULL. (bfd_elf_get_runpath_list): New function. * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and DT_RUNPATH entries.
2000-08-22* elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,Alexandre Oliva2-21/+28
R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them explicitly. Improve validation of r_type.
2000-08-21Zero out the dynamic allocated content space. Add a comment to remind us thatNick Clifton5-4/+33
one day this ought to be fixed.
2000-08-212000-08-21 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt2-17/+14
bfd: * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate field with the newly relocated value instead of adding it to the existing immediate field. (elf32_i860_relocate_splitn): Likewise. (elf32_i860_relocate_highadj): Likewise. gas: * config/tc-i860.c (md_apply_fix3): Do not insert the immediate if the fixup resulted in a relocation.
2000-08-162000-08-16 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt2-10/+35
* elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it was previously just a stub).
2000-08-16* elflink.c (_bfd_elf_create_got_section): Don't abort().Alexandre Oliva2-6/+28
Formatting fixes. (_bfd_elf_create_dynamic_sections): Likewise.
2000-08-16 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation addressJakub Jelinek2-8/+25
for undefined symbols to be the beginning of the section. * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate four extra entries at the beginning of the .rela.plt section. (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt section to account for the four reserved entries in the .plt section.
2000-08-16* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0Geoffrey Keating3-27/+64
to the list of NOPs we recognize after a branch-and-link. Use the ori NOP when one is needed. * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation for large archives.
2000-08-14Add support for IA-64 specific elf header flags.Jim Wilson2-1/+36
bfd/ 2000-08-14 Jim Wilson <wilson@cygnus.com> * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP. (elf64_ia64_print_private_bfd_data): Likewise. Also handle EF_IA_64_ABSOLUTE. gas/ 2000-08-14 Jim Wilson <wilson@cygnus.com> * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic. (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC. (md_begin): Change assignment to md.flag to OR in the new bit. include/elf/ 2000-08-14 Jim Wilson <wilson@cygnus.com> * elf/ia64.h (EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, EF_IA_64_NOFUNCDESC_CONS_GP, EF_IA_64_ABSOLUTE): Define.
2000-08-11* elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.Alexandre Oliva2-2/+6
2000-08-102000-08-10 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt2-4/+370
* elf32-i860.c (elf32_i860_relocate_section): New function. (i860_final_link_relocate): New function. (elf32_i860_relocate_splitn): New function. (elf32_i860_relocate_pc16): New function. (elf32_i860_relocate_highadj): New function. (elf32_i860_howto): Minor adjustments to some relocations. (elf_info_to_howto_rel): Define. (elf_backend_relocate_section): Define.
2000-08-10Fix formattingNick Clifton2-141/+139
2000-08-10Fix bug in sh_elf_reloc_loopBernd Schmidt2-1/+5
2000-08-09gas:Jason Eckhardt2-6/+10
2000-08-08 Jason Eckhardt <jle@cygnus.com> * config/tc-i860.h: Rework completely for BFD_ASSEMBLER. (i860_fix_info): New enum. (MD_APPLY_FIX3): Define. (WORKING_DOT_WORD): Define. (TC_HANDLES_FX_DONE): Define. (DIFF_EXPR_OK): Define. (LISTING_HEADER): Define. (TARGET_FORMAT): Select target format based on endian flag. (TARGET_BYTES_BIG_ENDIAN): Default to little endian. (target_big_endian): Add external declaration. * config/tc-i860.c: All existing code reworked completely. Other new code shown below. (SYNTAX_SVR4): Define. (target_warn_expand): New variable. (md_shortopts): Declare and define (-Qy, -Qn, and -V options). (md_longopts): Declare and define with new options (-EL, -EB, and -mwarn-expand). (md_show_usage): New function. (md_operand): New function. (obtain_reloc_for_imm16): New function. (md_apply_fix3): New function. (tc_gen_reloc): New function. include: 2000-08-08 Jason Eckhardt <jle@cygnus.com> * opcode/i860.h: Small formatting adjustments. opcode: 2000-08-08 Jason Eckhardt <jle@cygnus.com> * i860-dis.c (print_br_address): Change third argument from int to long. bfd: 2000-08-08 Jason Eckhardt <jle@cygnus.com> * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2000-08-07Apply Nick Clifton's suggestion.Kazu Hirata2-5/+4
2000-08-072000-08-07 Kazu Hirata <kazu@hxi.com>Kazu Hirata3-7/+10
* ieee.c: Fix a comment typo. * elf64-ia64.c: Likewise.
2000-08-052000-08-05 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt2-7/+677
* elf32-i860 (elf32_i860_howto_table): New structure. (lookup_howto): New function. (elf32_i860_reloc_type_lookup): New function. (elf32_i860_info_to_howto_rela): New function. (elf_code_to_howto_index): New structure. (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela. (bfd_elf32_bfd_reloc_type_lookup): Re-define as elf32_i860_reloc_type_lookup.
2000-08-04 * som.c (struct fixup_format): Constify `format'.Jeff Law2-285/+296
(som_hppa_howto_table): Use SOM_HOWTO macro. (try_prev_fixup, hppa_som_reloc): Decorate unused parameter. (som_bfd_reloc_type_lookup): Likewise. (compare_subspaces): Remove unused `count1', `count2'. (som_begin_writing): Remove unused `total_reloc_size'. (som_bfd_derive_misc_symbol_info): Decorate unused parameter. (som_print_symbol, som_bfd_is_local_label_name): Likewise. (som_set_reloc_info): Constify `cp'. Remove unused `addend'. (som_find_nearest_line): Decorate unused parameter(s). (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise. (som_bfd_link_split_section): Likewise.
2000-08-04If the destination of a BLX instruction is aligned on a half word boundary,Nick Clifton1-6/+15
set the H bit.
2000-08-03Restore reverted code. Fix bug in reverted code which was eliminating tooNick Clifton4-196/+335
many segments.
2000-08-032000-08-03 H.J. Lu <hjl@gnu.org>H.J. Lu4-184/+78
* section.c: Back out the change made by Nick Clifton <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic binaries. * bfd-in2.h: Likewise. * elf.c: Likewise.
2000-08-03* elf32-sh.c (sh_elf_reloc_loop): Warning removal.Alexandre Oliva2-3/+7
2000-08-012000-07-31 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt4-0/+138
* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860. * bfd-in2.h, libbfd.h: Regenerate.
2000-07-31Minor formatting fixes.Nick Clifton8-248/+259
2000-07-31Improve section to segment mapping code.Nick Clifton4-70/+206
2000-07-28200007-22 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt1-0/+25
* cpu-i860.c: Added comments. * elf32-i860.c (TARGET_LITTLE_SYM): Defined to bfd_elf32_i860_little_vec. (TARGET_LITTLE_NAME): Defined to "elf32-i860-little". (ELF_MAXPAGESIZE): Changed to 4096. * targets.c (bfd_elf32_i860_little_vec): Declaration of new target. (bfd_target_vector): Added bfd_elf32_i860_little_vec. * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added config for little endian elf32 i860. (targ_defvec): Define for the new config above as "bfd_elf32_i860_little_vec". (targ_selvecs): Define for the new config above as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec" * configure.in (bfd_elf32_i860_little_vec): Added recognition of new target vec. * configure: Regenerated.
2000-07-282000-07-22 Jason Eckhardt <jle@cygnus.com>Jason Eckhardt6-258/+259
* include/opcode/i860.h (btne, bte, bla): Changed these opcodes to use sbroff ('r') instead of split16 ('s'). (J, K, L, M): New operand types for 16-bit aligned fields. (ld.x, {p}fld.x, fst.x, pst.d): Changed these opcodes to use I, J, K, L, M instead of just I. (T, U): New operand types for split 16-bit aligned fields. (st.x): Changed these opcodes to use S, T, U instead of just S. (andh, andnoth, orh, xorh): Deleted 3-register forms as they do not exist on the i860. (pfgt.sd, pfle.sd): Deleted these as they do not exist on the i860. (pfeq.ss, pfeq.dd): New opcodes. (st.s): Fixed incorrect mask bits. (fmlow): Fixed incorrect mask bits. (fzchkl, pfzchkl): Fixed incorrect mask bits. (faddz, pfaddz): Fixed incorrect mask bits. (form, pform): Fixed incorrect mask bits. (pfld.l): Fixed incorrect mask bits. (fst.q): Fixed incorrect mask bits. (all floating point opcodes): Fixed incorrect mask bits for handling of dual bit. * include/elf/i860.h: New file. (elf_i860_reloc_type): Defined ELF32 i860 relocations. * bfd/cpu-i860.c: Added comments. * bfd/elf32-i860.c (TARGET_LITTLE_SYM): Defined to bfd_elf32_i860_little_vec. (TARGET_LITTLE_NAME): Defined to "elf32-i860-little". (ELF_MAXPAGESIZE): Changed to 4096. * bfd/targets.c (bfd_elf32_i860_little_vec): Declaration of new target. (bfd_target_vector): Added bfd_elf32_i860_little_vec. * bfd/config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added config for little endian elf32 i860. (targ_defvec): Define for the new config above as "bfd_elf32_i860_little_vec". (targ_selvecs): Define for the new config above as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec" * bfd/configure.in (bfd_elf32_i860_little_vec): Added recognition of new target vec. * bfd/configure: Regenerated. * opcodes/i860-dis.c: New file. (print_insn_i860): New function. (print_br_address): New function. (sign_extend): New function. (BITWISE_OP): New macro. (I860_REG_PREFIX): New macro. (grnames, frnames, crnames): New structures. * opcodes/disassemble.c (ARCH_i860): Define. (disassembler): Add check for bfd_arch_i860 to set disassemble function to print_insn_i860. * include/dis-asm.h (print_insn_i860): Add prototype. * opcodes/Makefile.in (CFILES): Added i860-dis.c. (ALL_MACHINES): Added i860-dis.lo. (i860-dis.lo): New dependences. * opcodes/configure.in: New bits for bfd_i860_arch. * opcodes/configure: Regenerated.
2000-07-282000-07-27 H.J. Lu <hjl@gnu.org>H.J. Lu2-11/+32
* elflink.h (elf_merge_symbol): Take one more argument, dt_needed, to indicate if the symbol comes from a DT_NEEDED entry. Don't overide the existing weak definition if dt_needed is true. (elf_link_add_object_symbols): Pass dt_needed to elf_merge_symbol ().
2000-07-27Zero the allocated contents of reloc sections.Nick Clifton2-2/+9
2000-07-25* configure.host (*-*-aix*): AIX has 'long long' always.Geoffrey Keating2-0/+6
2000-07-25* coff-rs6000.c (xcoff_write_one_armap_big): New procedure.Geoffrey Keating2-16/+106
(xcoff_write_armap_big): Write both 32-bit and 64-bit armaps. (xcoff_write_archive_contents_big): Don't update the offset of the symbol table, xcoff_write_armap will do it.
2000-07-24Regenerate auto-generated filesNick Clifton8-400/+399
2000-07-232000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>Ulf Carlsson2-3/+8
* elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead of dynobj for SGI_COMPAT checks.
2000-07-21oops - omitted from previous deltaNick Clifton1-0/+4
2000-07-21Applied Michael's Sokolov's patch to implement --embedded-relocs for m68k coff.Nick Clifton2-1/+98
2000-07-21Detect and report corrupt relocsNick Clifton2-0/+12
2000-07-212000-07-20 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+7
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check info->new_dtags when setting DT_FLAGS_1. It will only be set by the new linker options. It shouldn't break anything.
2000-07-212000-07-20 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1 only if info->new_dtags is true.