This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] Add SHF_COMPRESSED flag to include/
- From: Cary Coutant <ccoutant at google dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Ali Bahrami <Ali dot Bahrami at oracle dot com>
- Date: Wed, 19 Sep 2012 14:38:46 -0700
- Subject: [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.
https://groups.google.com/d/msg/generic-abi/dBOS1H47Q64/PaJvELtaJrsJ
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?
-cary
2012-09-19 Ali Bahrami Ali.Bahrami@oracle.com
Cary Coutant <ccoutant@google.com>
include/elf/
* 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 */