This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Add external symbol table file support for gprof
- From: Ken Werner <ken at linux dot vnet dot ibm dot com>
- To: Nick Clifton <nickc at redhat dot com>, Dongsheng Xing <homer dot xing at yahoo dot com>, binutils at sourceware dot org
- Date: Mon, 15 Jun 2009 10:44:24 +0200
- Subject: Re: [patch] Add external symbol table file support for gprof
- References: <421634.50430.qm@web43409.mail.sp1.yahoo.com> <4A327585.6050204@redhat.com>
Nick Clifton wrote:
> Hi Homer,
>
> (Sorry for the delay in responding to this).
>
>> The Binutils assignment/disclaimer process is completed. I received the
>> following email from fsf.org yesterday.
>
> Great - I have now checked your patch in. I also added an entry to
> the binutils/NEWS file mentioning this new feature.
>
> Cheers
> Nick
Hi,
Due to strict checking of printf/scanf format strings the gcc will issue the
following warning/error at line 512 of src/gprof/corefile.c when using a
recent toolchain:
error: format â%lxâ expects type âlong unsigned int *â, but argument 3 has
type âbfd_vma *â
Regards
Ken
Index: src/gprof/corefile.c
===================================================================
RCS file: /cvs/src/src/gprof/corefile.c,v
retrieving revision 1.34
diff -u -r1.34 corefile.c
--- src/gprof/corefile.c 12 Jun 2009 15:33:30 -0000 1.34
+++ src/gprof/corefile.c 15 Jun 2009 08:13:55 -0000
@@ -509,7 +509,7 @@
sym_init (symtab.limit);
- sscanf (address, "%lx", &(symtab.limit->addr) );
+ sscanf (address, "%lx", (long unsigned int *)&(symtab.limit->addr) );
symtab.limit->name = (char *) xmalloc (strlen (name) + 1);
strcpy ((char *) symtab.limit->name, name);