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/18d6fb0ac7a4
branches:  trunk
changeset: 794811:18d6fb0ac7a4
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 2b17cffd53ea -r 18d6fb0ac7a4 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