This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] to binutils: build problem: no type-cast on the left side of =
- To: binutils at sources dot redhat dot com
- Subject: [patch] to binutils: build problem: no type-cast on the left side of =
- From: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Date: Sat, 10 Feb 01 14:36:12 PST
Hi there,
The following patch fixes a simple build problem in binutils/readelf.c. The
GET_DATA_ALLOC macro uses its third argument on the left side of an assignment
operator, so it must not be type-cast. With PCC this makes the difference
between build success and failure.
--
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force
1351 VINE AVE APT 27 Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA (home office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP)
2001-02-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* readelf.c (process_unwind): Don't type-cast the third argument to the
GET_DATA_ALLOC macro.
Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.88
diff -p -r1.88 readelf.c
*** readelf.c 2001/02/10 00:55:53 1.88
--- readelf.c 2001/02/10 22:31:19
*************** process_unwind (file)
*** 3397,3403 ****
{
aux.info_size = sec->sh_size;
aux.info_addr = sec->sh_addr;
! GET_DATA_ALLOC (sec->sh_offset, aux.info_size, (char *) aux.info,
char *, "unwind info");
}
}
--- 3397,3403 ----
{
aux.info_size = sec->sh_size;
aux.info_addr = sec->sh_addr;
! GET_DATA_ALLOC (sec->sh_offset, aux.info_size, aux.info,
char *, "unwind info");
}
}