aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-10-21 22:57:31 +0000
committerSteve Chamberlain <steve@cygnus>1991-10-21 22:57:31 +0000
commit065114de7b72f459b2507ec7b18e3f6a5d623619 (patch)
tree97ed7ab117275776c24f15b5198cdc3ea6dcda1c /gas
parent14dd454bea3944270aae97d60b5a7f1d8ea46d60 (diff)
downloadgdb-065114de7b72f459b2507ec7b18e3f6a5d623619.zip
gdb-065114de7b72f459b2507ec7b18e3f6a5d623619.tar.gz
gdb-065114de7b72f459b2507ec7b18e3f6a5d623619.tar.bz2
Make sure that 29k relocs are done right.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/obj-coff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index a81db40..b157acc 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -255,10 +255,10 @@ relax_addressT segment_address_in_file;
Two relocations are emmited, R_IHIHALF, and R_IHCONST. The second one
doesn't contain a symbol, but uses the value for offset */
if (ri.r_type == R_IHIHALF) {
- /* now emit the second bit */
- ri.r_type = R_IHCONST;
- ri.r_symndx = 0;
- *where += bfd_coff_swap_reloc_out(stdoutput, &ri, *where);
+ /* now emit the second bit */
+ ri.r_type = R_IHCONST;
+ ri.r_symndx = fixP->fx_addnumber;
+ *where += bfd_coff_swap_reloc_out(stdoutput, &ri, *where);
}
#endif