This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
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
- Cc: Steven Nakamoto <steven dot nakamoto at st dot com>
- Date: Fri, 01 Aug 2003 09:58:33 +0100
- Subject: PATCH: add PGI (SGS Thomson) DWARF extensions to readelf
- Reply-to: James Cownie <jcownie at etnus dot com>
Folks,
Here's a patch which adds some PGI DWARF extensions to readelf.
I hope it's small and obvious enough not to need a copyright
assignment (especially since I'm on holiday for two weeks from
tomorrow).
-- Jim
James Cownie <jcownie@etnus.com>
Etnus, LLC. +44 117 9071438
http://www.etnus.com
Index: binutils/ChangeLog
===================================================================
RCS file: /cvs/src/src/binutils/ChangeLog,v
retrieving revision 1.678
diff -u -r1.678 ChangeLog
--- binutils/ChangeLog 30 Jul 2003 03:54:15 -0000 1.678
+++ binutils/ChangeLog 1 Aug 2003 08:53:28 -0000
@@ -1,3 +1,7 @@
+2003-07-31 James Cownie <jcownie@etnus.com>
+
+ * readelf.c: Add PGI dwarf extesions.
+
2003-07-30 Alan Modra <amodra@bigpond.net.au>
* objdump.c: Remove unnecessary prototypes.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.214
diff -u -r1.214 readelf.c
--- binutils/readelf.c 4 Jul 2003 10:42:26 -0000 1.214
+++ binutils/readelf.c 1 Aug 2003 08:53:35 -0000
@@ -7035,6 +7035,9 @@
case DW_TAG_upc_shared_type: return "DW_TAG_upc_shared_type";
case DW_TAG_upc_strict_type: return "DW_TAG_upc_strict_type";
case DW_TAG_upc_relaxed_type: return "DW_TAG_upc_relaxed_type";
+ /* PGI (SGS-Thomson extensions) */
+ case DW_TAG_PGI_kanji_type: return "DW_TAG_PGI_kanji_type";
+ case DW_TAG_PGI_interface_block: return "DW_TAG_PGI_interface_block";
default:
{
static char buffer[100];
@@ -7149,6 +7152,10 @@
case DW_AT_GNU_vector: return "DW_AT_GNU_vector";
/* UPC extension. */
case DW_AT_upc_threads_scaled: return "DW_AT_upc_threads_scaled";
+ /* PGI (SGS-Thomson extensions) */
+ case DW_AT_PGI_lbase: return "DW_AT_PGI_lbase";
+ case DW_AT_PGI_soffset: return "DW_AT_PGI_soffset";
+ case DW_AT_PGI_lstride: return "DW_AT_PGI_lstride";
default:
{
static char buffer[100];
@@ -8368,6 +8375,9 @@
case DW_AT_stride:
case DW_AT_upper_bound:
case DW_AT_lower_bound:
+ case DW_AT_PGI_lbase:
+ case DW_AT_PGI_soffset:
+ case DW_AT_PGI_lstride:
if (block_start)
{
printf ("(");
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 1 Aug 2003 08:53:39 -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 1 Aug 2003 08:53:39 -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 (SGS-Thomson 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 (SGS-Thomson) 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. */