output.h (SECTION_EXCLUDE): New macro.
authorSriraman Tallam <tmsriram@google.com>
Tue, 27 Sep 2011 17:52:13 +0000 (17:52 +0000)
committerSriraman Tallam <tmsriram@gcc.gnu.org>
Tue, 27 Sep 2011 17:52:13 +0000 (17:52 +0000)
2011-09-27  Sriraman Tallam  <tmsriram@google.com>

* output.h (SECTION_EXCLUDE): New macro.
* varasm.c (default_elf_asm_named_section): Check for
SECTION_EXCLUDE.

From-SVN: r179288

gcc/ChangeLog
gcc/output.h
gcc/varasm.c

index ab85f50774dc42928844c6dd16b433ceb17c1bde..e130ad09fb1e43431affd4accd560876d2b60f7c 100644 (file)
@@ -1,3 +1,9 @@
+2011-09-27  Sriraman Tallam  <tmsriram@google.com>
+
+       * output.h (SECTION_EXCLUDE): New macro.
+       * varasm.c (default_elf_asm_named_section): Check for
+       SECTION_EXCLUDE.        
+
 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * fwprop.c (forward_propagate_and_simplify): After checking
index 6b7c4b8781c76b20079e138ebefa4b51a8d8801a..661b623807c009069ec9af7f86e73fc27f81b408 100644 (file)
@@ -443,6 +443,7 @@ extern void no_asm_to_stream (FILE *);
 #define SECTION_COMMON   0x800000      /* contains common data */
 #define SECTION_RELRO   0x1000000      /* data is readonly after relocation processing */
 #define SECTION_MACH_DEP 0x2000000     /* subsequent bits reserved for target */
+#define SECTION_EXCLUDE  0x4000000      /* discarded by the linker */
 
 /* This SECTION_STYLE is used for unnamed sections that we can switch
    to using a special assembler directive.  */
index e83bebbb04e653006eeb19aa1ee686db83609ab8..9eb7295d68fe6e12c63b4a0b54806213ba974621 100644 (file)
@@ -6159,6 +6159,8 @@ default_elf_asm_named_section (const char *name, unsigned int flags,
 
   if (!(flags & SECTION_DEBUG))
     *f++ = 'a';
+  if (flags & SECTION_EXCLUDE)
+    *f++ = 'e';
   if (flags & SECTION_WRITE)
     *f++ = 'w';
   if (flags & SECTION_CODE)