This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Add SHF_COMPRESSED flag to include/

We've discussed the idea of adding an SHF_COMPRESSED flag here before,
with the idea of ultimately using it instead of the ugly ".zdebug_*"
convention for compressed debug sections. Ali brought the issue up on
the gABI mailing list recently, and it seems to have gained as much
consensus there as it's likely to get.

He wants to use this at Oracle/Sun, and I think we'll eventually want
to use it in the Gnu tools as well, so it seems reasonable to add it
as a new generic flag.

OK to commit?


2012-09-19  Ali Bahrami
            Cary Coutant  <>

	* common.h (SHF_COMPRESSED): New define.

Index: common.h
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.137
diff -u -p -r1.137 common.h
--- common.h	13 Aug 2012 14:52:48 -0000	1.137
+++ common.h	19 Sep 2012 21:30:34 -0000
@@ -502,6 +502,7 @@
 #define SHF_OS_NONCONFORMING (1 << 8)	/* OS specific processing required */
 #define SHF_GROUP	(1 << 9)	/* Member of a section group */
 #define SHF_TLS		(1 << 10)	/* Thread local storage section */
+#define SHF_COMPRESSED	(1 << 11)	/* Section contents are compressed */

 /* #define SHF_MASKOS	0x0F000000    *//* OS-specific semantics */
 #define SHF_MASKOS	0x0FF00000	/* New value, Oct 4, 1999 Draft */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]