aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-08-28 * ppc-opc.c (icbt): Order correctly.Matthew Green2-2/+6
2001-08-28*** empty log message ***gdbadmin1-1/+1
2001-08-27* event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: SomeMark Kettenis11-617/+672
gratuitious whitespace changes. [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined. * top.c: Remove redundant logic to define HAVE_SIGSETMASK. (sigsetmask) Don't define macro. (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from async_stop_sig from event-top.c. [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined. * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical order. Add sigsetmask. (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in alphabetical order. * config/xm-aix4.h, config/alpha/xm-alphalinux.h, config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h (HAVE_SIGSETMASK): Remove. * aclocal.m4, config.in, configure
2001-08-27merge from gccDJ Delorie4-31/+20
2001-08-27 * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.Thiemo Seufer2-2/+7
(macro): Reflect change to MAX_GPREL_OFFSET.
2001-08-27 * elf32-i386.c: Add missing prototypes.Daniel Jacobowitz5-0/+24
* elf32-ppc.c: Likewise. * elf32-sh-lin.c: Likewise. * elfarm-nabi.c: Likewise.
2001-08-27 * elf32-i386.c (elf_i386_grok_prstatus): New function.Daniel Jacobowitz5-0/+297
(elf_i386_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise. * elf32-ppc.c (ppc_elf_grok_prstatus): New function. (ppc_elf_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise. * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function. (elf32_shlin_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise. * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function. (elf32_arm_nabi_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise.
2001-08-272001-08-27 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+13
* elf32-mips.c (mips_elf_create_dynamic_relocation): Add more sanity check. (mips_elf_calculate_relocation): Create dynamic relocation for symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR bit is not set.
2001-08-272001-08-27 H.J. Lu <hjl@gnu.org>H.J. Lu2-5/+27
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. (_bfd_mips_elf_copy_indirect_symbol): Likewise. (_bfd_elf32_mips_grok_prstatus): Likewise. (_bfd_elf32_mips_grok_psinfo): Likewise. (_bfd_mips_elf_hide_symbol): Make it static and cast to `struct mips_elf_link_hash_entry *'. (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2001-08-27 * gas/macros/macros.exp: xfail powerpc-*-aix.Alan Modra17-3/+1063
* gas/ppc/astest64.s: New. * gas/ppc/astest64.d: New. * gas/ppc/astest2_64.s: New. * gas/ppc/astest2_64.d: New. * gas/ppc/test1elf.asm: New. * gas/ppc/test1xcoff.asm: New. * gas/ppc/generate.sh: New. Generate new files below from above .asm * gas/ppc/test1elf32.s: New. * gas/ppc/test1elf32.d: New. * gas/ppc/test1elf64.s: New. * gas/ppc/test1elf64.d: New. * gas/ppc/test1xcoff32.s: New. * gas/ppc/test1xcoff32.d: New. * gas/ppc/ppc.exp: Run new tests. * gas/ppc/simpshft.s: Tweak align now that we get nops.
2001-08-27 * ld-checks/checks.exp: .lcomm is incompatible with ppc coff.Alan Modra6-5/+20
* ld-scripts/cross1.t: Add .toc section. * ld-scripts/cross2.t: Likewise. * ld-scripts/phdrs.exp: powerpc64 is 64 bit. * ld-srec/srec.exp: xfail powerpc64
2001-08-27 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.Alan Modra6-12/+86
(eelf64ppc.c, eelf64lppc.c): Add make targets. Run "make dep-am" * Makefile.in: Regenerate. * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj entries to correct alphabetical position. * emulparams/elf64ppc.sh: New. * emulparams/elf64lppc.sh: New.
2001-08-27 * configure.in: Recognise powerpc*le*, not just powerpcle*.Alan Modra5-327/+702
* configure: Regenerate. * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER, PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros. (md_assemble): Use them. (ppc_machine): Support stub for ELF64 as well as XCOFF. (md_pseudo_table): Add "llong", "quad". (md_parse_option): Match default_cpu of powerpc*. (ppc_arch): Likewise. (ppc_subseg_align): Only for OBJ_XCOFF. (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF. (md_begin): Select PPC_OPCODE_64 for 64 bit. (ppc_insert_operand): Don't bother testing 'file' before calling as_bad_where. Use as_bad_where for operand->insert errors. (mapping): Add ELF64 relocation modifiers. (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc expressions with abs_symbol. (ppc_elf_cons): Correct offset for little endian targets. (ppc_elf_frob_symbol): New. (md_assemble): Add support for 64 bit ELF relocs. (ppc_tc): Ensure 8 byte alignment when 64 bit. (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match ".toc" section for 64 bit ELF. (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h. (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit, use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16. Expand on comments, error message. Add support for 64 bit relocs, and use PPC_HI etc. macros. * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define. (HANDLE_ALIGN): Define to generate nops in code sections rather than zeros. (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC. (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections. (tc_fix_adjustable): Move body of macro to tc-ppc.c. (ppc_fix_adjustable): Declare. (tc_frob_symbol): Define. (ppc_elf_frob_symbol): Declare.
2001-08-27 * binutils-all/readelf.s-64: Adjust offsets for powerpc64. Don'tAlan Modra2-4/+10
use constructs like [45][08] when all combinations are not valid. Instead use (48|50) to explicitly state which values are correct.
2001-08-27Add missing prototypesNick Clifton8-309/+346
2001-08-27 * readelf.c (dump_relocations): Recognise EM_PPC64.Alan Modra2-0/+5
2001-08-27 * ppc-opc.c (DS): Add PPC_OPERAND_DS flag.Alan Modra2-8/+40
(LS): Define. (insert_ds): Complain if not a multiple of 4. (XSYNC): Define. (XSYNC_MASK): Define. (powerpc_opcodes): Add "slbmte", "lwsync", "ptesync", "slbmfev", "slbmfee". Modify "sync" to use XSYNC_MASK and LS.
2001-08-27 * ppc.h (PPC_OPERAND_DS): Define.Alan Modra2-1/+7
2001-08-27 * ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.Alan Modra2-1/+77
2001-08-27 * config.bfd: Add powerpc64 target. Add powerpc64 vectors toAlan Modra13-34/+3965
targ64_selvecs for 32 bit powerpc targets. * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo. (BFD64_BACKENDS_CFILES): Add elf64-ppc.c. Run "make dep-am". * Makefile.in: Regenerate. * configure.in: Add elf64_powerpc vecs. * configure: Regenerate. * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit. * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target. * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec. * elf64-ppc.c: New file. * reloc.c: Add powerpc64 relocs. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate.
2001-08-27 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if theAndreas Schwab2-27/+34
reloc is against read-only section. (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_m68k_reloc_type_class): New function. (elf_backend_reloc_type_class): Define.
2001-08-27 * xcoff.h (struct __rtinit): Make proper prototype for rtl.Andreas Jaeger2-2/+7
2001-08-27 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if theAndreas Jaeger4-65/+97
reloc is against read-only section. (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_s390_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_s390_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (ppc_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-27Declare BSIZE as staticNick Clifton2-1/+5
2001-08-27From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:Andrew Cagney3-23/+5
* config/powerpc/nbsd.mh (XM_FILE): Delete.
2001-08-27*** empty log message ***gdbadmin1-1/+1
2001-08-26* doublest.h (HOST_FLOAT_FORMAT): Delete macro.Andrew Cagney2-16/+5
(HOST_DOUBLE_FORMAT): Delete macro.
2001-08-26 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if theAndreas Jaeger4-113/+130
reloc is against read-only section. (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_cris_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_backend_reloc_type_class): Define. (sh_elf_reloc_type_class): New. (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_arm_reloc_type_class): New.
2001-08-26 * h8500-opc.h: Add default initializers to h8500_table to shut upAndreas Jaeger2-534/+539
GCC warnings.
2001-08-26 * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.Thiemo Seufer2-0/+7
2001-08-26For include/opcode:Andreas Jaeger18-101/+219
* d30v.h: Fix declaration of reg_name_cnt. * d10v.h: Fix declaration of d10v_reg_name_cnt. * arc.h: Add prototypes from opcodes/arc-opc.c. For opcodes: * tic54x-dis.c: Add unused attributes where needed. * z8k-dis.c (output_instr): Add unused attribute. * h8300-dis.c: Add missing prototypes. (bfd_h8_disassemble): Make static. * cris-dis.c: Add missing prototype. * h8500-dis.c: Likewise. * m68hc11-dis.c: Likewise. * pj-dis.c: Likewise. * tic54x-dis.c: Likewise. * v850-dis.c: Likewise. * vax-dis.c: Likewise. * w65-dis.c: Likewise. * z8k-dis.c: Likewise. * d10v-dis.c: Add missing prototype. (dis_long): Remove unused variable. (dis_2_short): Likewise. * sh-dis.c: Add missing prototypes. * v850-opc.c: Likewise. Add unused attributes where needed. * ns32k-dis.c: Add missing prototypes. (bit_extract_simple): Remove unused variable.
2001-08-26 * oasys.c: Add missing prototypes.Andreas Jaeger5-8/+62
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused attribute for parameter. * elf.c (_bfd_elf_reloc_type_class): Likewise. * versados.c (get_4): Make static. (get_10): Make static. Add missing prototypes. (process_esd): Fix call to versados_new_symbol.
2001-08-26 * config/tc-s390.c: Add missing prototypesAndreas Jaeger2-1/+22
(md_gather_operands): Make static.
2001-08-26 * tc_mips.h (MAX_GPREL_OFFSET): Change it to the maximum allowedThiemo Seufer3-17/+24
value, not the word beyond maximum. * tc_mips.c (macro_build_lui): Code cleanup. (macro): Reflect change to MAX_GPREL_OFFSET. (mips_ip): Check explicitly against S_EX_NONE. (my_get_SmallExpression): parse for %gp_rel, not %gprel. (md_apply_fix): Code cleanup.
2001-08-26*** empty log message ***gdbadmin1-1/+1
2001-08-252001-08-25 H.J. Lu <hjl@gnu.org>H.J. Lu2-3/+18
* nm.c (print_width): New. (display_rel_file): Set `print_width' according to bfd_sprintf_vma. (print_symbol_info_bsd): Check `print_width' instead of BFD64.
2001-08-25Add missing prototypesNick Clifton19-999/+1140
2001-08-25fix compile time warning messageNick Clifton2-1/+6
2001-08-25 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string forThiemo Seufer2-6/+11
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2001-08-25 * binutils-all/readelf.exp: Don't regard mips*el-*-* as traditionalThiemo Seufer9-6/+249
mips. * gas/mips/mips.exp: Likewise. Use traditional testcases for mips${el}16-f if needed. * gas/mips/elempic.d: New file, testcase for little endian empic. * gas/mips/elfel-rel2.d: Don't test trailing zeroes in dump. * gas/mips/mips16-f.d: Use non-traditional symbol sorting. * gas/mips/mipsel16-f.d: Likewise. * gas/mips/mipsel16-e.d: New file, testcase for little endian MIPS16 relocations. * gas/mips/tmipsel16-f.d: New file, testcase for little endian MIPS16 relocations, traditional variant.
2001-08-25*** empty log message ***gdbadmin1-1/+1
2001-08-242001-08-24 H.J. Lu <hjl@gnu.org>H.J. Lu2-8/+8
* elf.c (_bfd_elf_merge_sections): Fail if not using an ELF hash structure.
2001-08-24 * config/tc-ppc.h: Fix prototype declaration.Andreas Jaeger2-9/+13
2001-08-24Apply H.J.'s patch to revert change to elfxx-target.hNick Clifton8-34/+140
Apply my patch to allow SREC as output format.
2001-08-24* objcopy.c (use_alt_mach_code): New variable.Alexandre Oliva4-0/+43
(OPTION_ALT_MACH_CODE): Define. (copy_options): Added --alt-machine-code. (copy_main): Handle it. (copy_object): Switch to alternate machine code if requested. * doc/binutils.texi: Document new option. * NEWS: Likewise.
2001-08-24* bfd.c (bfd_alt_mach_code): New function.Alexandre Oliva3-0/+63
* bfd-in2.h: Rebuilt.
2001-08-24* elf-m10300.c (mn10300_elf_relocate_section): Test the rightAlexandre Oliva2-2/+8
`type' field in the hash entry when deciding whether to follow a link.
2001-08-24* config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,Mark Kettenis6-15/+6
config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant inclusion of <limits.h>.
2001-08-24 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, notJakub Jelinek3-25/+56
last. (elf_link_sort_relocs): Adjust accordingly. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. (elf64_alpha_check_relocs): Set it if section this reloc is against is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against read-only section. (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation is is against read-only section. (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't check section names. (elf64_alpha_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-24* regcache.c (read_register_bytes): When REGISTER_NAME indicatesAndrew Cagney2-5/+18
that a register should be ignored, supply a value for the register from the raw registers[] buffer.