aboutsummaryrefslogtreecommitdiff
path: root/bfd/nlm32-alpha.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-12-04 12:08:42 +0000
committerAlan Modra <amodra@gmail.com>2003-12-04 12:08:42 +0000
commit1a101a422077cc4ebe1c0abb2f87e44cef3151e4 (patch)
treea27a5952376944ffc36460e2266ccf0049d2a824 /bfd/nlm32-alpha.c
parent8f8077465d4315c8f9e7a3572e7bb46d42c31188 (diff)
downloadfsf-binutils-gdb-1a101a422077cc4ebe1c0abb2f87e44cef3151e4.zip
fsf-binutils-gdb-1a101a422077cc4ebe1c0abb2f87e44cef3151e4.tar.gz
fsf-binutils-gdb-1a101a422077cc4ebe1c0abb2f87e44cef3151e4.tar.bz2
* 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 bcaa6ab..990ce8d 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