[binutils-gdb] [Patch] Add BFD_LINKER_CREATED to BFD_FLAGS_SAVED

Jiong Wang jiwang@sourceware.org
Thu Feb 16 10:13:00 GMT 2017


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=905712060597d0c7a13ffccbca40330c7ad3e3a8

commit 905712060597d0c7a13ffccbca40330c7ad3e3a8
Author: Jiong Wang <jiong.wang@arm.com>
Date:   Thu Feb 16 09:40:03 2017 +0000

    [Patch] Add BFD_LINKER_CREATED to BFD_FLAGS_SAVED
    
    bfd/
    	* bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
    	* bfd-in2.h: Regenerated.
    
    Bug exposed by https://sourceware.org/ml/binutils/2017-02/msg00128.html

Diff:
---
 bfd/ChangeLog | 5 +++++
 bfd/bfd-in2.h | 5 +++--
 bfd/bfd.c     | 5 +++--
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 789915c..a6a4c64 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-16  Jiong Wang <jiong.wang@arm.com>
+
+	* bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
+	* bfd-in2.h: Regenerated.
+
 2017-02-15  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/21168
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 80d60cb..f90bb8c 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -6806,8 +6806,9 @@ struct bfd
 
   /* Flags bits to be saved in bfd_preserve_save.  */
 #define BFD_FLAGS_SAVED \
-  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_PLUGIN \
-   | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON)
+  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
+   | BFD_PLUGIN | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON \
+   | BFD_USE_ELF_STT_COMMON)
 
   /* Flags bits which are for BFD use only.  */
 #define BFD_FLAGS_FOR_BFD_USE_MASK \
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 1607f39..a9402e48 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -180,8 +180,9 @@ CODE_FRAGMENT
 .
 .  {* Flags bits to be saved in bfd_preserve_save.  *}
 .#define BFD_FLAGS_SAVED \
-.  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_PLUGIN \
-.   | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON)
+.  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
+.   | BFD_PLUGIN | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON \
+.   | BFD_USE_ELF_STT_COMMON)
 .
 .  {* Flags bits which are for BFD use only.  *}
 .#define BFD_FLAGS_FOR_BFD_USE_MASK \



More information about the Binutils-cvs mailing list