This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] More mostly cosmetic changes all over binutils
amodra@one.net.au wrote:
>On Thu, May 03, 2001 at 09:19:37PM +0200, Thiemo Seufer wrote:
>> here comes more fallout from my mips64-linux development.
>
>Looks mostly OK except for use of `U' suffix on constants, which is
>not compatible with K&R compilers. That means your include/elf/common.h
>and ld/ldgram.y changes are not acceptable. Instead of
>
>#define SOMETHING 0x1234U
>
>write
>
>#define SOMETHING ((unsigned) 0x1234)
Uh, fortunately I haven't seen such a compiler yet. :-)
Changed accordingly.
Thiemo
2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/bfd/ChangeLog
* ecoff.c (bfd_debug_section): Fix initialization.
* elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
is always a positive integer. Cast away sign mismatch.
* elf32-mips.c: Fix misleading comment and typo.
(_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
correct data type.
* elflink.c: Fix typo.
(_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
* ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/binutils/ChangeLog
* readelf.c (process_unwind): Remove const specifier.
2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/include/elf/ChangeLog
* external.h: Fix typo.
* mips.h: Add/Extend many comments with reference to the MIPS ELF64
spec v. 2.4, available at e.g.
ftp://oss.sgi.com/pub/linux/mips/doc/ABI/ELF64.ps.
(EF_MIPS_UCODE): Define.
(EF_MIPS_OPTIONS_FIRST): Define.
(EF_MIPS_ARCH_ASE): Define.
(EF_MIPS_ARCH_ASE_MDMX): Define.
(EF_MIPS_ARCH_ASE_M16): Define.
(SHF_MIPS_ADDR): Renamed SHF_MIPS_ADDR32.
(SHF_MIPS_STRING): Renamed SHF_MIPS_ADDR64.
(SHF_MIPS_NODUPES): Define.
(ELF64_MIPS_R_SSYM): New MIPS ELF 64 relocation info access macro.
(ELF64_MIPS_R_TYPE3): Likewise.
(ELF64_MIPS_R_TYPE2): Likewise.
(ELF64_MIPS_R_TYPE): Likewise.
(OHW_R10KLDL): Define.
2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/ld/ChangeLog
* ldgram.y: Fix typo.
2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/libiberty/ChangeLog
* md5.c (md5_init_ctx): Declare constants as unsigned.
(md5_process_block): Likewise.
2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/opcodes/ChangeLog
* disassemble.c (disassembler_usage): Remove unused attribute.
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/bfd/ecoff.c src/bfd/ecoff.c
--- src-orig/bfd/ecoff.c Wed Mar 14 17:02:12 2001
+++ src/bfd/ecoff.c Thu May 3 08:45:46 2001
@@ -75,19 +75,19 @@
static asection bfd_debug_section =
{
/* name, id, index, next, flags, user_set_vma, reloc_done, */
- "*DEBUG*", 0, 0, 0, 0, 0, 0,
+ "*DEBUG*", 0, 0, NULL, 0, 0, 0,
/* linker_mark, gc_mark, segment_mark, vma, lma, _cooked_size, */
0, 0, 0, 0, 0, 0,
/* _raw_size, output_offset, output_section, alignment_power, */
0, 0, NULL, 0,
/* relocation, orelocation, reloc_count, filepos, rel_filepos, */
- 0, 0, 0, 0, 0,
+ NULL, NULL, 0, 0, 0,
/* line_filepos, userdata, contents, lineno, lineno_count, */
0, NULL, NULL, NULL, 0,
- /* comdat, kept_section, moving_line_filepos, target_index, */
- NULL, NULL, 0, 0,
- /* used_by_bfd, constructor_chain, owner, */
- NULL, NULL, NULL,
+ /* entsize, comdat, kept_section, moving_line_filepos, */
+ 0, NULL, NULL, 0,
+ /* target_index, used_by_bfd, constructor_chain, owner, */
+ 0, NULL, NULL, NULL,
/* symbol, */
(struct symbol_cache_entry *) NULL,
/* symbol_ptr_ptr, */
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/bfd/elf.c src/bfd/elf.c
--- src-orig/bfd/elf.c Tue May 1 16:56:02 2001
+++ src/bfd/elf.c Fri May 4 20:01:27 2001
@@ -4734,7 +4734,7 @@
Elf_Internal_Verdef *iverdefarr;
Elf_Internal_Verdef iverdefmem;
unsigned int i;
- int maxidx;
+ unsigned int maxidx;
hdr = &elf_tdata (abfd)->dynverdef_hdr;
@@ -4754,8 +4754,8 @@
{
_bfd_elf_swap_verdef_in (abfd, everdef, &iverdefmem);
- if ((iverdefmem.vd_ndx & VERSYM_VERSION) > maxidx)
- maxidx = iverdefmem.vd_ndx & VERSYM_VERSION;
+ if ((iverdefmem.vd_ndx & ((unsigned) VERSYM_VERSION)) > maxidx)
+ maxidx = iverdefmem.vd_ndx & ((unsigned) VERSYM_VERSION);
everdef = ((Elf_External_Verdef *)
((bfd_byte *) everdef + iverdefmem.vd_next));
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/bfd/elf32-mips.c src/bfd/elf32-mips.c
--- src-orig/bfd/elf32-mips.c Tue May 1 16:56:02 2001
+++ src/bfd/elf32-mips.c Thu May 3 08:45:46 2001
@@ -539,7 +539,7 @@
0xffffffff, /* dst_mask */
false), /* pcrel_offset */
- /* 26 bit branch address. */
+ /* 26 bit jump address. */
HOWTO (R_MIPS_26, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
@@ -1667,7 +1667,7 @@
}
/* Handle a 64 bit reloc in a 32 bit MIPS ELF file. These are
- generated when addreses are 64 bits. The upper 32 bits are a simle
+ generated when addresses are 64 bits. The upper 32 bits are a simple
sign extension. */
static bfd_reloc_status_type
@@ -3071,8 +3071,8 @@
boolean
_bfd_mips_elf_section_from_bfd_section (abfd, hdr, sec, retval)
- bfd *abfd ATTRIBUTE_UNUSED;
- Elf32_Internal_Shdr *hdr ATTRIBUTE_UNUSED;
+ bfd *abfd;
+ Elf_Internal_Shdr *hdr ATTRIBUTE_UNUSED;
asection *sec;
int *retval;
{
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/bfd/elflink.c src/bfd/elflink.c
--- src-orig/bfd/elflink.c Wed Mar 14 17:02:22 2001
+++ src/bfd/elflink.c Thu May 3 08:45:56 2001
@@ -108,7 +108,7 @@
flagword flags, pltflags;
register asection *s;
struct elf_backend_data *bed = get_elf_backend_data (abfd);
- int ptralign = 0;
+ int ptralign;
switch (bed->s->arch_size)
{
@@ -333,7 +333,7 @@
return true;
}
-/* Assign dynsym indicies. In a shared library we generate a section
+/* Assign dynsym indices. In a shared library we generate a section
symbol for each output section, which come first. Next come all of
the back-end allocated local dynamic syms, followed by the rest of
the global symbols. */
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/bfd/ecoffswap.h src/bfd/ecoffswap.h
--- src-orig/bfd/ecoffswap.h Wed Mar 14 17:02:12 2001
+++ src/bfd/ecoffswap.h Thu May 3 08:45:46 2001
@@ -196,7 +196,7 @@
intern->adr = ecoff_get_off (abfd, (bfd_byte *)ext->f_adr);
intern->rss = bfd_h_get_32 (abfd, (bfd_byte *)ext->f_rss);
#if defined (ECOFF_64) || defined (ECOFF_SIGNED_64)
- if (intern->rss == 0xffffffff)
+ if (intern->rss == (signed long) 0xffffffff)
intern->rss = -1;
#endif
intern->issBase = bfd_h_get_32 (abfd, (bfd_byte *)ext->f_issBase);
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/binutils/readelf.c src/binutils/readelf.c
--- src-orig/binutils/readelf.c Thu Apr 5 20:22:40 2001
+++ src/binutils/readelf.c Thu May 3 08:45:56 2001
@@ -3434,7 +3434,7 @@
strsec = section_headers + sec->sh_link;
aux.strtab_size = strsec->sh_size;
GET_DATA_ALLOC (strsec->sh_offset, aux.strtab_size,
- aux.strtab, const char *, "string table");
+ aux.strtab, char *, "string table");
}
else if (sec->sh_type == SHT_IA_64_UNWIND)
unwsec = sec;
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/include/elf/external.h src/include/elf/external.h
--- src-orig/include/elf/external.h Wed Mar 14 17:05:31 2001
+++ src/include/elf/external.h Thu May 3 08:46:20 2001
@@ -26,7 +26,7 @@
/* This file is part of ELF support for BFD, and contains the portions
that describe how ELF is represented externally by the BFD library.
I.E. it describes the in-file representation of ELF. It requires
- the elf-common.h file which contains the portions that are common to
+ the elf/common.h file which contains the portions that are common to
both the internal and external representations. */
/* The 64-bit stuff is kind of random. Perhaps someone will publish a
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/include/elf/mips.h src/include/elf/mips.h
--- src-orig/include/elf/mips.h Wed Apr 4 18:36:04 2001
+++ src/include/elf/mips.h Thu May 3 08:46:20 2001
@@ -34,16 +34,16 @@
START_RELOC_NUMBERS (elf_mips_reloc_type)
RELOC_NUMBER (R_MIPS_NONE, 0)
RELOC_NUMBER (R_MIPS_16, 1)
- RELOC_NUMBER (R_MIPS_32, 2)
- RELOC_NUMBER (R_MIPS_REL32, 3)
+ RELOC_NUMBER (R_MIPS_32, 2) /* In Elf 64: alias R_MIPS_ADD */
+ RELOC_NUMBER (R_MIPS_REL32, 3) /* In Elf 64: alias R_MIPS_REL */
RELOC_NUMBER (R_MIPS_26, 4)
RELOC_NUMBER (R_MIPS_HI16, 5)
RELOC_NUMBER (R_MIPS_LO16, 6)
- RELOC_NUMBER (R_MIPS_GPREL16, 7)
+ RELOC_NUMBER (R_MIPS_GPREL16, 7) /* In Elf 64: alias R_MIPS_GPREL */
RELOC_NUMBER (R_MIPS_LITERAL, 8)
- RELOC_NUMBER (R_MIPS_GOT16, 9)
+ RELOC_NUMBER (R_MIPS_GOT16, 9) /* In Elf 64: alias R_MIPS_GOT */
RELOC_NUMBER (R_MIPS_PC16, 10)
- RELOC_NUMBER (R_MIPS_CALL16, 11)
+ RELOC_NUMBER (R_MIPS_CALL16, 11) /* In Elf 64: alias R_MIPS_CALL */
RELOC_NUMBER (R_MIPS_GPREL32, 12)
/* The remaining relocs are defined on Irix, although they are not
in the MIPS ELF ABI. */
@@ -99,9 +99,24 @@
position independent code. */
#define EF_MIPS_CPIC 0x00000004
+/* Code in file uses contais UCODE (obsolete) */
+#define EF_MIPS_UCODE 0x00000010
+
/* Code in file uses new ABI (-n32 on Irix 6). */
#define EF_MIPS_ABI2 0x00000020
+/* Process the .MIPS.options section first by ld */
+#define EF_MIPS_OPTIONS_FIRST 0x00000080
+
+/* Architectural Extensions used by this file */
+#define EF_MIPS_ARCH_ASE 0x0f000000
+
+/* Use MDMX multimedia extensions */
+#define EF_MIPS_ARCH_ASE_MDMX 0x08000000
+
+/* Use MIPS-16 ISA extensions */
+#define EF_MIPS_ARCH_ASE_M16 0x04000000
+
/* Indicates code compiled for a 64-bit machine in 32-bit mode.
(regs are 32-bits wide.) */
#define EF_MIPS_32BITMODE 0x00000100
@@ -265,19 +280,19 @@
/* ??? */
#define SHT_MIPS_RFDESC 0x7000001a
-/* ??? */
+/* Delta C++: symbol table */
#define SHT_MIPS_DELTASYM 0x7000001b
-/* ??? */
+/* Delta C++: instance table */
#define SHT_MIPS_DELTAINST 0x7000001c
-/* ??? */
+/* Delta C++: class table */
#define SHT_MIPS_DELTACLASS 0x7000001d
/* DWARF debugging section. */
#define SHT_MIPS_DWARF 0x7000001e
-/* ??? */
+/* Delta C++: declarations */
#define SHT_MIPS_DELTADECL 0x7000001f
/* List of libraries the binary depends on. Includes a time stamp, version
@@ -290,25 +305,25 @@
/* ??? */
#define SHT_MIPS_TRANSLATE 0x70000022
-/* ??? */
+/* Special pixie sections */
#define SHT_MIPS_PIXIE 0x70000023
-/* ??? */
+/* Address translation table (for debug info) */
#define SHT_MIPS_XLATE 0x70000024
-/* ??? */
+/* SGI internal address translation table (for debug info) */
#define SHT_MIPS_XLATE_DEBUG 0x70000025
-/* ??? */
+/* Intermediate code */
#define SHT_MIPS_WHIRL 0x70000026
-/* ??? */
+/* C++ exception handling region info */
#define SHT_MIPS_EH_REGION 0x70000027
-/* ??? */
+/* Obsolete address translation table (for debug info) */
#define SHT_MIPS_XLATE_OLD 0x70000028
-/* ??? */
+/* Runtime procedure descriptor table exception information (ucode) ??? */
#define SHT_MIPS_PDR_EXCEPTION 0x70000029
@@ -446,11 +461,12 @@
/* This section should be merged. */
#define SHF_MIPS_MERGE 0x20000000
-/* This section contains 32 bit addresses. */
-#define SHF_MIPS_ADDR32 0x40000000
+/* This section contains address data of size implied by section
+ element size. */
+#define SHF_MIPS_ADDR 0x40000000
-/* This section contains 64 bit addresses. */
-#define SHF_MIPS_ADDR64 0x80000000
+/* This section contains string data. */
+#define SHF_MIPS_STRING 0x80000000
/* This section may not be stripped. */
#define SHF_MIPS_NOSTRIP 0x08000000
@@ -460,6 +476,10 @@
/* Linker should generate implicit weak names for this section. */
#define SHF_MIPS_NAMES 0x02000000
+
+/* Section contais text/data which may be replicated in other sections.
+ Linker should retain only one copy. */
+#define SHF_MIPS_NODUPES 0x01000000
/* Processor specific program header types. */
@@ -469,7 +489,7 @@
/* Runtime procedure table. */
#define PT_MIPS_RTPROC 0x70000001
-/* Options (for what ???). */
+/* .MIPS.options section. */
#define PT_MIPS_OPTIONS 0x70000002
/* Processor specific dynamic array tags. */
@@ -561,19 +581,19 @@
/* Pixie information (???). */
#define DT_MIPS_PIXIE_INIT 0x70000023
-/* ??? */
+/* Address of .MIPS.symlib */
#define DT_MIPS_SYMBOL_LIB 0x70000024
-/* ??? */
+/* The GOT index of the first PTE for a segment */
#define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025
-/* ??? */
+/* The GOT index of the first PTE for a local symbol */
#define DT_MIPS_LOCAL_GOTIDX 0x70000026
-/* ??? */
+/* The GOT index of the first PTE for a hidden symbol */
#define DT_MIPS_HIDDEN_GOTIDX 0x70000027
-/* ??? */
+/* The GOT index of the first PTE for a protected symbol */
#define DT_MIPS_PROTECTED_GOTIDX 0x70000028
/* Address of `.MIPS.options'. */
@@ -615,20 +635,44 @@
#define RHF_NOTPOT 0x00000002
/* Ignore LD_LIBRARY_PATH. */
-#define RHS_NO_LIBRARY_REPLACEMENT \
- 0x00000004
+#define RHS_NO_LIBRARY_REPLACEMENT 0x00000004
-#define RHF_NO_MOVE 0x00000008
-#define RHF_SGI_ONLY 0x00000010
+/* DSO address may not be relocated. */
+#define RHF_NO_MOVE 0x00000008
+
+/* SGI specific features. */
+#define RHF_SGI_ONLY 0x00000010
+
+/* Guarantee that .init will finish executing before any non-init
+ code in DSO is called. */
#define RHF_GUARANTEE_INIT 0x00000020
+
+/* Contains Delta C++ code. */
#define RHF_DELTA_C_PLUS_PLUS 0x00000040
+
+/* Guarantee that .init will start executing before any non-init
+ code in DSO is called. */
#define RHF_GUARANTEE_START_INIT 0x00000080
+
+/* Generated by pixie. */
#define RHF_PIXIE 0x00000100
+
+/* Delay-load DSO by default. */
#define RHF_DEFAULT_DELAY_LOAD 0x00000200
+
+/* Object may be requickstarted */
#define RHF_REQUICKSTART 0x00000400
+
+/* Object has been requickstarted */
#define RHF_REQUICKSTARTED 0x00000800
+
+/* Generated by cord. */
#define RHF_CORD 0x00001000
+
+/* Object contains no unresolved undef symbols. */
#define RHF_NO_UNRES_UNDEF 0x00002000
+
+/* Symbol table is in a safe order. */
#define RHF_RLD_ORDER_SAFE 0x00004000
/* Special values for the st_other field in the symbol table. These
@@ -722,6 +766,12 @@
bfd_signed_vma r_addend;
} Elf64_Mips_Internal_Rela;
+/* MIPS ELF 64 relocation info access macros. */
+#define ELF64_MIPS_R_SSYM(i) (((i) >> 24) & 0xff)
+#define ELF64_MIPS_R_TYPE3(i) (((i) >> 16) & 0xff)
+#define ELF64_MIPS_R_TYPE2(i) (((i) >> 8) & 0xff)
+#define ELF64_MIPS_R_TYPE(i) ((i) & 0xff)
+
/* Values found in the r_ssym field of a relocation entry. */
/* No relocation. */
@@ -878,7 +928,8 @@
#define OEX_FPU_MAX 0x1f00 /* FPEs which may be enabled. */
#define OEX_PAGE0 0x10000 /* Page zero must be mapped. */
#define OEX_SMM 0x20000 /* Force sequential memory mode. */
-#define OEX_FPDBUG 0x40000 /* Force floating-point debug mode. */
+#define OEX_FPDBUG 0x40000 /* Force precise floating-point
+ exceptions (debug mode). */
#define OEX_DISMISS 0x80000 /* Dismiss invalid address faults. */
/* Masks of the FP exceptions for OEX_FPU_MIN and OEX_FPU_MAX. */
@@ -894,10 +945,13 @@
#define OPAD_SYMBOL 0x04
/* Masks for the info word of an ODK_HWPATCH descriptor. */
-#define OHW_R4KEOP 0x01 /* R4000 end-of-page patch. */
-#define OHW_R8KPFETCH 0x02 /* May need R8000 prefetch patch. */
-#define OHW_R5KEOP 0x04 /* R5000 end-of-page patch. */
-#define OHW_R5KCVTL 0x08 /* R5000 cvt.[ds].l bug (clean == 1). */
+#define OHW_R4KEOP 0x00000001 /* R4000 end-of-page patch. */
+#define OHW_R8KPFETCH 0x00000002 /* May need R8000 prefetch patch. */
+#define OHW_R5KEOP 0x00000004 /* R5000 end-of-page patch. */
+#define OHW_R5KCVTL 0x00000008 /* R5000 cvt.[ds].l bug
+ (clean == 1). */
+#define OHW_R10KLDL 0x00000010 /* Needs R10K misaligned
+ load patch. */
/* Masks for the info word of an ODK_IDENT/ODK_GP_GROUP descriptor. */
#define OGP_GROUP 0x0000ffff /* GP group number. */
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/ld/ldgram.y src/ld/ldgram.y
--- src-orig/ld/ldgram.y Wed Mar 14 17:05:46 2001
+++ src/ld/ldgram.y Thu May 3 08:46:20 2001
@@ -1,4 +1,4 @@
-/* A YACC grammer to parse a superset of the AT&T linker scripting languaue.
+/* A YACC grammar to parse a superset of the AT&T linker scripting language.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com).
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/libiberty/md5.c src/libiberty/md5.c
--- src-orig/libiberty/md5.c Fri Feb 9 19:35:07 2001
+++ src/libiberty/md5.c Fri May 4 19:55:15 2001
@@ -65,10 +65,10 @@
md5_init_ctx (ctx)
struct md5_ctx *ctx;
{
- ctx->A = 0x67452301;
- ctx->B = 0xefcdab89;
- ctx->C = 0x98badcfe;
- ctx->D = 0x10325476;
+ ctx->A = (unsigned) 0x67452301;
+ ctx->B = (unsigned) 0xefcdab89;
+ ctx->C = (unsigned) 0x98badcfe;
+ ctx->D = (unsigned) 0x10325476;
ctx->total[0] = ctx->total[1] = 0;
ctx->buflen = 0;
@@ -322,22 +322,22 @@
*/
/* Round 1. */
- OP (A, B, C, D, 7, 0xd76aa478);
- OP (D, A, B, C, 12, 0xe8c7b756);
- OP (C, D, A, B, 17, 0x242070db);
- OP (B, C, D, A, 22, 0xc1bdceee);
- OP (A, B, C, D, 7, 0xf57c0faf);
- OP (D, A, B, C, 12, 0x4787c62a);
- OP (C, D, A, B, 17, 0xa8304613);
- OP (B, C, D, A, 22, 0xfd469501);
- OP (A, B, C, D, 7, 0x698098d8);
- OP (D, A, B, C, 12, 0x8b44f7af);
- OP (C, D, A, B, 17, 0xffff5bb1);
- OP (B, C, D, A, 22, 0x895cd7be);
- OP (A, B, C, D, 7, 0x6b901122);
- OP (D, A, B, C, 12, 0xfd987193);
- OP (C, D, A, B, 17, 0xa679438e);
- OP (B, C, D, A, 22, 0x49b40821);
+ OP (A, B, C, D, 7, (unsigned) 0xd76aa478);
+ OP (D, A, B, C, 12, (unsigned) 0xe8c7b756);
+ OP (C, D, A, B, 17, (unsigned) 0x242070db);
+ OP (B, C, D, A, 22, (unsigned) 0xc1bdceee);
+ OP (A, B, C, D, 7, (unsigned) 0xf57c0faf);
+ OP (D, A, B, C, 12, (unsigned) 0x4787c62a);
+ OP (C, D, A, B, 17, (unsigned) 0xa8304613);
+ OP (B, C, D, A, 22, (unsigned) 0xfd469501);
+ OP (A, B, C, D, 7, (unsigned) 0x698098d8);
+ OP (D, A, B, C, 12, (unsigned) 0x8b44f7af);
+ OP (C, D, A, B, 17, (unsigned) 0xffff5bb1);
+ OP (B, C, D, A, 22, (unsigned) 0x895cd7be);
+ OP (A, B, C, D, 7, (unsigned) 0x6b901122);
+ OP (D, A, B, C, 12, (unsigned) 0xfd987193);
+ OP (C, D, A, B, 17, (unsigned) 0xa679438e);
+ OP (B, C, D, A, 22, (unsigned) 0x49b40821);
/* For the second to fourth round we have the possibly swapped words
in CORRECT_WORDS. Redefine the macro to take an additional first
@@ -353,58 +353,58 @@
while (0)
/* Round 2. */
- OP (FG, A, B, C, D, 1, 5, 0xf61e2562);
- OP (FG, D, A, B, C, 6, 9, 0xc040b340);
- OP (FG, C, D, A, B, 11, 14, 0x265e5a51);
- OP (FG, B, C, D, A, 0, 20, 0xe9b6c7aa);
- OP (FG, A, B, C, D, 5, 5, 0xd62f105d);
- OP (FG, D, A, B, C, 10, 9, 0x02441453);
- OP (FG, C, D, A, B, 15, 14, 0xd8a1e681);
- OP (FG, B, C, D, A, 4, 20, 0xe7d3fbc8);
- OP (FG, A, B, C, D, 9, 5, 0x21e1cde6);
- OP (FG, D, A, B, C, 14, 9, 0xc33707d6);
- OP (FG, C, D, A, B, 3, 14, 0xf4d50d87);
- OP (FG, B, C, D, A, 8, 20, 0x455a14ed);
- OP (FG, A, B, C, D, 13, 5, 0xa9e3e905);
- OP (FG, D, A, B, C, 2, 9, 0xfcefa3f8);
- OP (FG, C, D, A, B, 7, 14, 0x676f02d9);
- OP (FG, B, C, D, A, 12, 20, 0x8d2a4c8a);
+ OP (FG, A, B, C, D, 1, 5, (unsigned) 0xf61e2562);
+ OP (FG, D, A, B, C, 6, 9, (unsigned) 0xc040b340);
+ OP (FG, C, D, A, B, 11, 14, (unsigned) 0x265e5a51);
+ OP (FG, B, C, D, A, 0, 20, (unsigned) 0xe9b6c7aa);
+ OP (FG, A, B, C, D, 5, 5, (unsigned) 0xd62f105d);
+ OP (FG, D, A, B, C, 10, 9, (unsigned) 0x02441453);
+ OP (FG, C, D, A, B, 15, 14, (unsigned) 0xd8a1e681);
+ OP (FG, B, C, D, A, 4, 20, (unsigned) 0xe7d3fbc8);
+ OP (FG, A, B, C, D, 9, 5, (unsigned) 0x21e1cde6);
+ OP (FG, D, A, B, C, 14, 9, (unsigned) 0xc33707d6);
+ OP (FG, C, D, A, B, 3, 14, (unsigned) 0xf4d50d87);
+ OP (FG, B, C, D, A, 8, 20, (unsigned) 0x455a14ed);
+ OP (FG, A, B, C, D, 13, 5, (unsigned) 0xa9e3e905);
+ OP (FG, D, A, B, C, 2, 9, (unsigned) 0xfcefa3f8);
+ OP (FG, C, D, A, B, 7, 14, (unsigned) 0x676f02d9);
+ OP (FG, B, C, D, A, 12, 20, (unsigned) 0x8d2a4c8a);
/* Round 3. */
- OP (FH, A, B, C, D, 5, 4, 0xfffa3942);
- OP (FH, D, A, B, C, 8, 11, 0x8771f681);
- OP (FH, C, D, A, B, 11, 16, 0x6d9d6122);
- OP (FH, B, C, D, A, 14, 23, 0xfde5380c);
- OP (FH, A, B, C, D, 1, 4, 0xa4beea44);
- OP (FH, D, A, B, C, 4, 11, 0x4bdecfa9);
- OP (FH, C, D, A, B, 7, 16, 0xf6bb4b60);
- OP (FH, B, C, D, A, 10, 23, 0xbebfbc70);
- OP (FH, A, B, C, D, 13, 4, 0x289b7ec6);
- OP (FH, D, A, B, C, 0, 11, 0xeaa127fa);
- OP (FH, C, D, A, B, 3, 16, 0xd4ef3085);
- OP (FH, B, C, D, A, 6, 23, 0x04881d05);
- OP (FH, A, B, C, D, 9, 4, 0xd9d4d039);
- OP (FH, D, A, B, C, 12, 11, 0xe6db99e5);
- OP (FH, C, D, A, B, 15, 16, 0x1fa27cf8);
- OP (FH, B, C, D, A, 2, 23, 0xc4ac5665);
+ OP (FH, A, B, C, D, 5, 4, (unsigned) 0xfffa3942);
+ OP (FH, D, A, B, C, 8, 11, (unsigned) 0x8771f681);
+ OP (FH, C, D, A, B, 11, 16, (unsigned) 0x6d9d6122);
+ OP (FH, B, C, D, A, 14, 23, (unsigned) 0xfde5380c);
+ OP (FH, A, B, C, D, 1, 4, (unsigned) 0xa4beea44);
+ OP (FH, D, A, B, C, 4, 11, (unsigned) 0x4bdecfa9);
+ OP (FH, C, D, A, B, 7, 16, (unsigned) 0xf6bb4b60);
+ OP (FH, B, C, D, A, 10, 23, (unsigned) 0xbebfbc70);
+ OP (FH, A, B, C, D, 13, 4, (unsigned) 0x289b7ec6);
+ OP (FH, D, A, B, C, 0, 11, (unsigned) 0xeaa127fa);
+ OP (FH, C, D, A, B, 3, 16, (unsigned) 0xd4ef3085);
+ OP (FH, B, C, D, A, 6, 23, (unsigned) 0x04881d05);
+ OP (FH, A, B, C, D, 9, 4, (unsigned) 0xd9d4d039);
+ OP (FH, D, A, B, C, 12, 11, (unsigned) 0xe6db99e5);
+ OP (FH, C, D, A, B, 15, 16, (unsigned) 0x1fa27cf8);
+ OP (FH, B, C, D, A, 2, 23, (unsigned) 0xc4ac5665);
/* Round 4. */
- OP (FI, A, B, C, D, 0, 6, 0xf4292244);
- OP (FI, D, A, B, C, 7, 10, 0x432aff97);
- OP (FI, C, D, A, B, 14, 15, 0xab9423a7);
- OP (FI, B, C, D, A, 5, 21, 0xfc93a039);
- OP (FI, A, B, C, D, 12, 6, 0x655b59c3);
- OP (FI, D, A, B, C, 3, 10, 0x8f0ccc92);
- OP (FI, C, D, A, B, 10, 15, 0xffeff47d);
- OP (FI, B, C, D, A, 1, 21, 0x85845dd1);
- OP (FI, A, B, C, D, 8, 6, 0x6fa87e4f);
- OP (FI, D, A, B, C, 15, 10, 0xfe2ce6e0);
- OP (FI, C, D, A, B, 6, 15, 0xa3014314);
- OP (FI, B, C, D, A, 13, 21, 0x4e0811a1);
- OP (FI, A, B, C, D, 4, 6, 0xf7537e82);
- OP (FI, D, A, B, C, 11, 10, 0xbd3af235);
- OP (FI, C, D, A, B, 2, 15, 0x2ad7d2bb);
- OP (FI, B, C, D, A, 9, 21, 0xeb86d391);
+ OP (FI, A, B, C, D, 0, 6, (unsigned) 0xf4292244);
+ OP (FI, D, A, B, C, 7, 10, (unsigned) 0x432aff97);
+ OP (FI, C, D, A, B, 14, 15, (unsigned) 0xab9423a7);
+ OP (FI, B, C, D, A, 5, 21, (unsigned) 0xfc93a039);
+ OP (FI, A, B, C, D, 12, 6, (unsigned) 0x655b59c3);
+ OP (FI, D, A, B, C, 3, 10, (unsigned) 0x8f0ccc92);
+ OP (FI, C, D, A, B, 10, 15, (unsigned) 0xffeff47d);
+ OP (FI, B, C, D, A, 1, 21, (unsigned) 0x85845dd1);
+ OP (FI, A, B, C, D, 8, 6, (unsigned) 0x6fa87e4f);
+ OP (FI, D, A, B, C, 15, 10, (unsigned) 0xfe2ce6e0);
+ OP (FI, C, D, A, B, 6, 15, (unsigned) 0xa3014314);
+ OP (FI, B, C, D, A, 13, 21, (unsigned) 0x4e0811a1);
+ OP (FI, A, B, C, D, 4, 6, (unsigned) 0xf7537e82);
+ OP (FI, D, A, B, C, 11, 10, (unsigned) 0xbd3af235);
+ OP (FI, C, D, A, B, 2, 15, (unsigned) 0x2ad7d2bb);
+ OP (FI, B, C, D, A, 9, 21, (unsigned) 0xeb86d391);
/* Add the starting values of the context. */
A += A_save;
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/opcodes/disassemble.c src/opcodes/disassemble.c
--- src-orig/opcodes/disassemble.c Fri Apr 27 18:45:30 2001
+++ src/opcodes/disassemble.c Thu May 3 08:46:20 2001
@@ -322,7 +322,7 @@
void
disassembler_usage (stream)
- FILE * stream ATTRIBUTE_UNUSED;
+ FILE * stream;
{
#ifdef ARCH_arm
print_arm_disassembler_options (stream);