From 905712060597d0c7a13ffccbca40330c7ad3e3a8 Mon Sep 17 00:00:00 2001 From: Jiong Wang Date: Thu, 16 Feb 2017 09:40:03 +0000 Subject: [PATCH] [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 --- 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 789915c6628..a6a4c646b61 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-02-16 Jiong Wang + + * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. + * bfd-in2.h: Regenerated. + 2017-02-15 H.J. Lu PR ld/21168 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 80d60cbb772..f90bb8ce69c 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 1607f394ac8..a9402e48552 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 \ -- 2.30.2