Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/gas/config Bias the cfi pc expr ...



details:   https://anonhg.NetBSD.org/src/rev/70f772e18824
branches:  trunk
changeset: 328071:70f772e18824
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Mar 25 16:17:33 2014 +0000

description:
Bias the cfi pc expr by nbytes since vax pcrel are relative to end of the
relocation, not the beginning.  By adding the size of relocation, it will
become relative to the start of the relocation.

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-vax.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 767af44acba1 -r 70f772e18824 external/gpl3/binutils/dist/gas/config/tc-vax.c
--- a/external/gpl3/binutils/dist/gas/config/tc-vax.c   Tue Mar 25 15:52:16 2014 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-vax.c   Tue Mar 25 16:17:33 2014 +0000
@@ -3599,9 +3599,10 @@
 }
 
 void
-vax_cfi_emit_pcrel_expr (expressionS *exp, unsigned int nbytes)
+vax_cfi_emit_pcrel_expr (expressionS *expP, unsigned int nbytes)
 {
   vax_cons_special_reloc = "pcrel";
-  emit_expr (exp, nbytes);
+  expP->X_add_number += nbytes;
+  emit_expr (expP, nbytes);
   vax_cons_special_reloc = NULL;
 }



Home | Main Index | Thread Index | Old Index