[Patch] Add BFD_LINKER_CREATED to BFD_FLAGS_SAVED
authorJiong Wang <jiong.wang@arm.com>
Thu, 16 Feb 2017 09:40:03 +0000 (09:40 +0000)
committerJiong Wang <jiong.wang@arm.com>
Thu, 16 Feb 2017 10:11:46 +0000 (10:11 +0000)
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

bfd/ChangeLog
bfd/bfd-in2.h
bfd/bfd.c

index 789915c662847086760712063df50b985c395029..a6a4c646b611bfe229960f511f7f672d402cb281 100644 (file)
@@ -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
index 80d60cbb77219c67c630850bb41fdc9da25037c4..f90bb8ce69ca3e6144c1f3979079fd3df7eee749 100644 (file)
@@ -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 \
index 1607f394ac8d70144bfa66aba01c7041ef0d38d8..a9402e485526aad3ced593ca8296e1a32b58560d 100644 (file)
--- 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 \
This page took 0.033865 seconds and 4 git commands to generate.