projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
954d412
)
29k const fix
author
Steve Chamberlain
<sac@cygnus>
Tue, 26 May 1992 22:20:09 +0000
(22:20 +0000)
committer
Steve Chamberlain
<sac@cygnus>
Tue, 26 May 1992 22:20:09 +0000
(22:20 +0000)
bfd/coffcode.h
patch
|
blob
|
history
diff --git
a/bfd/coffcode.h
b/bfd/coffcode.h
index d978e30d01cfd7372278e9a236a817b872751ea5..09a4744791d4cd2878f48fa759484b47acd19262 100644
(file)
--- a/
bfd/coffcode.h
+++ b/
bfd/coffcode.h
@@
-1797,6
+1797,15
@@
DEFUN(coff_write_relocs,(abfd),
abort ();
n.r_vaddr = q->address + s->vma;
+ /* The 29k const/consth reloc pair is a real kludge - the consth
+ part doesn't have a symbol - it has an offset. So rebuilt
+ that here */
+#ifdef R_IHCONST
+ if (q->howto->type == R_IHCONST)
+ n.r_symndx = q->addend;
+ else
+#endif
+
if (q->sym_ptr_ptr) {
n.r_symndx = get_index((*(q->sym_ptr_ptr)));
/* Take notice if the symbol reloc points to a symbol we don't have