aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
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.
2000-07-202000-07-20 H.J. Lu <hjl@gnu.org>H.J. Lu2-3/+9
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2000-07-20Fix typo in CRIS entryHans-Peter Nilsson1-2/+1
2000-07-20 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.Hans-Peter Nilsson20-426/+1524
(ALL_MACHINES_CFILES): Add cpu-cris.c. (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo. (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c. (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules. * Makefile.in: Rebuild. * aclocal.m4: Rebuild. * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris. * archures.c (enum bfd_architecture): Add bfd_arch_cris. (bfd_cris_arch): Declare. (bfd_archures_list): Add bfd_cris_arch. * bfd-in2.h: Rebuild. * config.bfd: (cris-*-*): New target. * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors. * configure: Rebuild. * elf.c (prep_headers): Add bfd_arch_cris. * libbfd.h: Rebuild. * libaout.h (enum machine_type): Add M_CRIS. * reloc.c: Add CRIS relocations. * targets.c (bfd_target bfd_elf32_cris_vec, cris_aout_vec): Declare. (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec. * cpu-cris.c, aout-cris.c, elf32-cris.c: New files. * po/POTFILES.in, po/bfd.pot: Regenerate.
2000-07-202000-07-19 H.J. Lu <hjl@gnu.org>H.J. Lu13-1/+50
* elf32-arm.h (elf32_arm_size_dynamic_sections): Also set DF_TEXTREL if DT_TEXTREL is set. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise. * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. * bfd/elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if DT_RPATH is set. Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2000-07-202000-07-19 H.J. Lu <hjl@gnu.org>H.J. Lu6-1/+91
* bfd-in.h (bfd_elf_set_dt_needed_soname): New. * bfd-in2.h: Rebuild. * elf-bfd.h (elf_obj_tdata): Add dt_soname. (elf_dt_soname): New. * elf.c (bfd_elf_set_dt_needed_soname): New. * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED entry if the shared object loaded by DT_NEEDED is used to resolve the reference in a regular object.
2000-07-202000-07-19 H.J. Lu <hjl@gnu.org>H.J. Lu2-3/+8
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG, DT_DEPAUDIT and DT_AUDIT as strings.
2000-07-20Fix formattingNick Clifton2-116/+149
2000-07-192000-07-19 H.J. Lu <hjl@gnu.org>H.J. Lu2-3/+5
* elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2000-07-192000-07-19 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+41
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW, DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ, DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1, DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT, DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT, DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2000-07-18Rename bfd_elf_get_arch_size to bfd_get_arch_sizeNick Clifton6-81/+127
Rename bfd_elf_get_sign_extend_vma to bfd_get_sign_extend_vma
2000-07-182000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>Ulf Carlsson2-2/+8
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add paranthesis in if statement.
2000-07-172000-07-17 Koundinya K <kk@ddeorg.soft.net>Ulf Carlsson2-150/+250
Enable the support for Traditional MIPS. * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand return ict_none appropriately for traditional mips targets. (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips. (STUB_MOVE): Conditionalize for traditonal mips. (STUB_LI16): Likewise. (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making room for RTPROC header. (_bfd_mips_elf_modify_segment_map): For a normal mips executable set the permission for the PT_DYNAMIC as read, write and execute. (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING for traditonal mips. (_bfd_mips_elf_create_dynamic_sections): Add the symbol _DYNAMIC_LINKING for traditonal mips. (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP in case of traditonal mips. (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT entry is required. For a function if PLT is not required then set the corresponding hash table entry to 0. (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for traditonal mips. (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a shared object set the value to 0. (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol _DYNAMIC_LINKING for traditonal mips. (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP for traditonal mips.
2000-07-152000-07-15 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+6
* aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2000-07-12* libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writingDJ Delorie2-5/+30
out a structure that is BFD_IN_MEMORY.
2000-07-12Use section id in get_dyn_name.Alan Modra3-17/+31
2000-07-11Add function bfd_elf_get_sign_extend_vma.Andrew Cagney4-0/+27
2000-07-11The MIPS thinks that addresses are signed. Sign extend MIPS ECOFFAndrew Cagney4-20/+39
addresses.
2000-07-11* elfcode.h (elf_object_p): Use bfd_set_start_address and notAndrew Cagney2-5/+20
bfd_get_start_address. (elf_swap_ehdr_in): Sign extend e_entry when applicable. (elf_swap_ehdr_out): Ditto.
2000-07-10Add set of bfd_mach_ cases for compatibility with older binutilsNick Clifton4-63/+94
2000-07-10Ryan Bradetich's warning fixes.Alan Modra3-20/+26
2000-07-10Avoid negative section sequence ids.Alan Modra2-3/+8
2000-07-092000-07-09 Koundinya K <kk@ddeorg.soft.net>Ulf Carlsson2-0/+49
* elf32-mips.c (sort_dynamic_relocs): New Function. (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs via qsort to sort the dynamic relocations in increasing r_symndx value.
2000-07-09Restore hppa-elf32 to working order.Alan Modra13-1312/+1407
2000-07-08Add sequence id field to asection.Alan Modra8-644/+671
Tidy comments and replace deprecated CONST with const.
2000-07-08Don't add a space before `/*' when processing comments.Alan Modra2-3/+8
2000-07-07* archive.c (_bfd_write_archive_contents): Add an informativeDJ Delorie2-0/+10
comment.
2000-07-06Fix formattingNick Clifton2-31/+26
2000-07-05add MAINTAINERS filesDJ Delorie2-0/+5
2000-07-04* coff-arm.c (coff_arm_relocate_section): Do not ignore the symbolAlexandre Oliva2-0/+12
value of PC-relative offsets.
2000-07-04Fix hash section entry size to match ELF standard. Override for alpha-linux.Jim Wilson3-1/+40
* elf64-alpha.c (alpha_elf_size_info): New. (elf_backend_size_info): Define to alpha_elf_size_info. * elfcode.h (elf_size_info): Change hash bucket size to 4.
2000-07-042000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>Ulf Carlsson1-0/+5
* elf32-mips.c: Include elf32-target.h again for the traditional MIPS targets.
2000-07-032000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>Ulf Carlsson1-0/+17
* elf32-mips.c: Include elf32-target.h again for the traditional MIPS targets.
2000-07-03Tidy up formatting.Nick Clifton2-8/+17
Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
2000-07-03Fix typo in previous deltaNick Clifton1-2/+2