This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: add PGI (SGS Thomson) DWARF extensions to readelf
- From: James Cownie <jcownie at etnus dot com>
- To: binutils at sources dot redhat dot com, steven dot nakamoto at st dot com
- Date: Thu, 21 Aug 2003 09:41:07 +0100
- Subject: Re: PATCH: add PGI (SGS Thomson) DWARF extensions to readelf
Nick was kind enough to say
> > Would a patch which just added the PGI enumerations to the headers
> > be acceptable in the meantime ?
>
> Yes. :-)
Therefore appended below is such a patch. When my copyright assignment
is all done I'll resubmit the other parts of the original patch which
actually _use_ these values. In the meantime having them in the
headers at least gives them some visibility and (I hope) prevents
other compiler writers from using the same numbers for other
extensions.
-- Jim
James Cownie <jcownie@etnus.com>
Etnus, LLC. +44 117 9071438
http://www.etnus.com
Index: include/elf/ChangeLog
===================================================================
RCS file: /cvs/src/src/include/elf/ChangeLog,v
retrieving revision 1.181
diff -u -r1.181 ChangeLog
--- include/elf/ChangeLog 29 Jul 2003 06:42:51 -0000 1.181
+++ include/elf/ChangeLog 21 Aug 2003 08:36:08 -0000
@@ -1,3 +1,7 @@
+2003-07-31 James Cownie <jcownie@etnus.com>
+
+ * dwarf2.h: Add PGI dwarf extensions.
+
2003-07-28 Eric Christopher <echristo@redhat.com>
* ppc.h (R_PPC_RELAX32): New. Fake relocation.
Index: include/elf/dwarf2.h
===================================================================
RCS file: /cvs/src/src/include/elf/dwarf2.h,v
retrieving revision 1.12
diff -u -r1.12 dwarf2.h
--- include/elf/dwarf2.h 10 Dec 2002 17:48:27 -0000 1.12
+++ include/elf/dwarf2.h 21 Aug 2003 08:36:08 -0000
@@ -198,7 +198,10 @@
/* Extensions for UPC. See: http://upc.gwu.edu/~upc. */
DW_TAG_upc_shared_type = 0x8765,
DW_TAG_upc_strict_type = 0x8766,
- DW_TAG_upc_relaxed_type = 0x8767
+ DW_TAG_upc_relaxed_type = 0x8767,
+ /* PGI (STMicroelectronics) extensions */
+ DW_TAG_PGI_kanji_type = 0xA000,
+ DW_TAG_PGI_interface_block = 0xA020
};
#define DW_TAG_lo_user 0x4080
@@ -336,7 +339,11 @@
/* VMS extensions. */
DW_AT_VMS_rtnbeg_pd_address = 0x2201,
/* UPC extension. */
- DW_AT_upc_threads_scaled = 0x3210
+ DW_AT_upc_threads_scaled = 0x3210,
+ /* PGI (STMicroelectronics) extensions */
+ DW_AT_PGI_lbase = 0x3a00,
+ DW_AT_PGI_soffset = 0x3a01,
+ DW_AT_PGI_lstride = 0x3a02
};
#define DW_AT_lo_user 0x2000 /* Implementation-defined range start. */