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 Make the vax target buildable



details:   https://anonhg.NetBSD.org/src/rev/885ddfb6c6cb
branches:  trunk
changeset: 343563:885ddfb6c6cb
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Feb 14 19:00:04 2016 +0000

description:
Make the vax target buildable

diffstat:

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

diffs (25 lines):

diff -r 7067a5c63461 -r 885ddfb6c6cb external/gpl3/binutils/dist/bfd/elf32-vax.c
--- a/external/gpl3/binutils/dist/bfd/elf32-vax.c       Sun Feb 14 18:12:30 2016 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-vax.c       Sun Feb 14 19:00:04 2016 +0000
@@ -1365,7 +1365,8 @@
        }
 
       /* Allocate space in the .got and .rela.got sections.  */
-      if (info->shared || WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, 0, h))
+      if (bfd_link_pic (info) || WILL_CALL_FINISH_DYNAMIC_SYMBOL (
+          elf_hash_table (info)->dynamic_sections_created, 0, h))
        {
          sgot->size += 4;
          srelgot->size += sizeof (Elf32_External_Rela);
diff -r 7067a5c63461 -r 885ddfb6c6cb external/gpl3/binutils/dist/gas/config/tc-vax.c
--- a/external/gpl3/binutils/dist/gas/config/tc-vax.c   Sun Feb 14 18:12:30 2016 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-vax.c   Sun Feb 14 19:00:04 2016 +0000
@@ -3598,8 +3598,6 @@
 void
 vax_cfi_emit_pcrel_expr (expressionS *expP, unsigned int nbytes)
 {
-  vax_cons_special_reloc = "pcrel";
   expP->X_add_number += nbytes;
   emit_expr (expP, nbytes);
-  vax_cons_special_reloc = NULL;
 }



Home | Main Index | Thread Index | Old Index