Don't display bits only used for BFD in abfd->flags.
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Nov 2010 02:31:02 +0000 (02:31 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Nov 2010 02:31:02 +0000 (02:31 +0000)
bfd/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
* bfd-in2.h: Regenerated.

binutils/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* objdump.c (dump_bfd_header): Don't display
BFD_FLAGS_FOR_BFD_USE_MASK bits in abfd->flags.

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

index 3538ef5dc9a35dbb232cfb225211d4408d1b1b6c..24d096b4674faae76db7a23228279d1dd980b0dc 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
+       * bfd-in2.h: Regenerated.
+
 2010-11-02  Joseph Myers  <joseph@codesourcery.com>
 
        * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
index aec5c24d4e72ec5f59b66eeb2041a0df1d688c11..c6a54b5acbeeb893aee8d34e58106bcdfde1f60c 100644 (file)
@@ -5081,6 +5081,11 @@ struct bfd
 #define BFD_FLAGS_SAVED \
   (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS)
 
+  /* Flags bits which are for BFD use only.  */
+#define BFD_FLAGS_FOR_BFD_USE_MASK \
+  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
+   | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT)
+
   /* Currently my_archive is tested before adding origin to
      anything. I believe that this can become always an add of
      origin, with origin set to 0 for non archive files.  */
index 3b2960320d89adb18287cf2198b073b1743e1242..a9ce7cc226b63de39fffda6bf91d18f766fa9736 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -161,6 +161,11 @@ CODE_FRAGMENT
 .#define BFD_FLAGS_SAVED \
 .  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS)
 .
+.  {* Flags bits which are for BFD use only.  *}
+.#define BFD_FLAGS_FOR_BFD_USE_MASK \
+.  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
+.   | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT)
+.
 .  {* Currently my_archive is tested before adding origin to
 .     anything. I believe that this can become always an add of
 .     origin, with origin set to 0 for non archive files.  *}
index 8acf57e1d64c6ed0978bcfb2d9ea017834bb4ce6..3ecc5fb6271f5ccc8e38484b8304586ac900d383 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * objdump.c (dump_bfd_header): Don't display
+       BFD_FLAGS_FOR_BFD_USE_MASK bits in abfd->flags.
+
 2010-11-02  Joseph Myers  <joseph@codesourcery.com>
 
        * readelf.c (display_tic6x_attribute): Handle more attributes.
index 5f996e682d4236120e7ca954e472a70baf604e89..c672f15c660f0fef3b63d81333fa4a133931a3f0 100644 (file)
@@ -2562,7 +2562,7 @@ dump_bfd_header (bfd *abfd)
   printf (_("architecture: %s, "),
          bfd_printable_arch_mach (bfd_get_arch (abfd),
                                   bfd_get_mach (abfd)));
-  printf (_("flags 0x%08x:\n"), abfd->flags);
+  printf (_("flags 0x%08x:\n"), abfd->flags & ~BFD_FLAGS_FOR_BFD_USE_MASK);
 
 #define PF(x, y)    if (abfd->flags & x) {printf("%s%s", comma, y); comma=", ";}
   PF (HAS_RELOC, "HAS_RELOC");
This page took 0.048672 seconds and 4 git commands to generate.