summaryrefslogtreecommitdiff
path: root/bfd/nlm32-alpha.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-12-04 12:08:42 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-12-04 12:08:42 +0000
commitbf17ae6467d6a90ed33cc24156846d893c33c87e (patch)
treed4c73a06e0efd6b225115c5f042e5dbc88fdcbdd /bfd/nlm32-alpha.c
parentae50416c27c356f907fc3006c88b79751efbbb5a (diff)
downloadbinutils-redhat-bf17ae6467d6a90ed33cc24156846d893c33c87e.tar.gz
* coff-i860.c (coff_i860_reloc_nyi): Return bfd_reloc_not_supported.
* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Warning fixes. (mn10300_elf_relax_section): Likewise. * nlm32-alpha.c (ONES): Define. (nlm32_alpha_howto_table): Use it to avoid warnings.
Diffstat (limited to 'bfd/nlm32-alpha.c')
-rw-r--r--bfd/nlm32-alpha.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/bfd/nlm32-alpha.c b/bfd/nlm32-alpha.c
index bcaa6abaef..990ce8d5a7 100644
--- a/bfd/nlm32-alpha.c
+++ b/bfd/nlm32-alpha.c
@@ -97,6 +97,8 @@ nlm_alpha_write_prefix (abfd)
return TRUE;
}
+#define ONES(n) (((bfd_vma) 1 << ((n) - 1) << 1) - 1)
+
/* How to process the various reloc types. */
static reloc_howto_type nlm32_alpha_howto_table[] =
@@ -144,8 +146,8 @@ static reloc_howto_type nlm32_alpha_howto_table[] =
0, /* special_function */
"REFQUAD", /* name */
TRUE, /* partial_inplace */
- 0xffffffffffffffff, /* src_mask */
- 0xffffffffffffffff, /* dst_mask */
+ ONES (64), /* src_mask */
+ ONES (64), /* dst_mask */
FALSE), /* pcrel_offset */
/* A 32 bit GP relative offset. This is just like REFLONG except
@@ -304,8 +306,8 @@ static reloc_howto_type nlm32_alpha_howto_table[] =
0, /* special_function */
"SREL64", /* name */
TRUE, /* partial_inplace */
- 0xffffffffffffffff, /* src_mask */
- 0xffffffffffffffff, /* dst_mask */
+ ONES (64), /* src_mask */
+ ONES (64), /* dst_mask */
FALSE), /* pcrel_offset */
/* Push a value on the reloc evaluation stack. */
@@ -336,7 +338,7 @@ static reloc_howto_type nlm32_alpha_howto_table[] =
"OP_STORE", /* name */
FALSE, /* partial_inplace */
0, /* src_mask */
- 0xffffffffffffffff, /* dst_mask */
+ ONES (64), /* dst_mask */
FALSE), /* pcrel_offset */
/* Subtract the reloc address from the value on the top of the