Index: binutils/bfd/coff-rs6000.c |
diff --git a/binutils/bfd/coff-rs6000.c b/binutils/bfd/coff-rs6000.c |
index e8d54841a6a9c760cef86aadbe7cad6eb9c36f19..040a030a40b689c8d6512dbacb78be57c7b9d432 100644 |
--- a/binutils/bfd/coff-rs6000.c |
+++ b/binutils/bfd/coff-rs6000.c |
@@ -896,11 +896,11 @@ reloc_howto_type xcoff_howto_table[] = |
EMPTY_HOWTO (0xe), |
- /* Non-relocating reference. */ |
+ /* Non-relocating reference. Bitsize is 1 so that r_rsize is 0. */ |
HOWTO (R_REF, /* type */ |
0, /* rightshift */ |
- 2, /* size (0 = byte, 1 = short, 2 = long) */ |
- 32, /* bitsize */ |
+ 0, /* size (0 = byte, 1 = short, 2 = long) */ |
+ 1, /* bitsize */ |
FALSE, /* pc_relative */ |
0, /* bitpos */ |
complain_overflow_dont, /* complain_on_overflow */ |
@@ -1162,6 +1162,8 @@ _bfd_xcoff_reloc_type_lookup (abfd, code) |
case BFD_RELOC_32: |
case BFD_RELOC_CTOR: |
return &xcoff_howto_table[0]; |
+ case BFD_RELOC_NONE: |
+ return &xcoff_howto_table[0xf]; |
default: |
return NULL; |
} |