aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.harhan.org>2001-02-11 23:11:39 +0000
committerMichael Sokolov <msokolov@ivan.harhan.org>2001-02-11 23:11:39 +0000
commitecd0338944f6ad0220384419202f9ef1bd7f4b1d (patch)
treeea4e92de79a3668deefb27b37fdafd6863de425e /binutils/readelf.c
parent847ee773eab1bc6127683c9c9616207629e3460c (diff)
downloadgdb-ecd0338944f6ad0220384419202f9ef1bd7f4b1d.zip
gdb-ecd0338944f6ad0220384419202f9ef1bd7f4b1d.tar.gz
gdb-ecd0338944f6ad0220384419202f9ef1bd7f4b1d.tar.bz2
* readelf.c (struct unw_aux_info): Remove const from the info member.
(process_unwind): Don't type-cast the third argument to the GET_DATA_ALLOC macro.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 923403a..b0fdcc3 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -3099,7 +3099,7 @@ struct unw_aux_info
}
*table; /* Unwind table. */
unsigned long table_len; /* Length of unwind table. */
- const unsigned char * info; /* Unwind info. */
+ unsigned char * info; /* Unwind info. */
unsigned long info_size; /* Size of unwind info. */
bfd_vma info_addr; /* starting address of unwind info. */
bfd_vma seg_base; /* Starting address of segment. */
@@ -3400,7 +3400,7 @@ process_unwind (file)
{
aux.info_size = sec->sh_size;
aux.info_addr = sec->sh_addr;
- GET_DATA_ALLOC (sec->sh_offset, aux.info_size, (char *) aux.info,
+ GET_DATA_ALLOC (sec->sh_offset, aux.info_size, aux.info,
char *, "unwind info");
}
}