aboutsummaryrefslogtreecommitdiff
path: root/gprof/gprof.c
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1992-02-11 23:15:03 +0000
committerSean Eric Fagan <sef@cygnus>1992-02-11 23:15:03 +0000
commita11d7ba33e9b91147e7f1a5c827a5804d098f523 (patch)
tree20f7a12ec4fefad457d2b4425fdb3f2b67980451 /gprof/gprof.c
parentdcde00c429c1d7cb9c6ece3e7e76c11de66d8a5e (diff)
downloadgdb-a11d7ba33e9b91147e7f1a5c827a5804d098f523.zip
gdb-a11d7ba33e9b91147e7f1a5c827a5804d098f523.tar.gz
gdb-a11d7ba33e9b91147e7f1a5c827a5804d098f523.tar.bz2
Updating gprof for latest bfd stuff, and making configure work.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r--gprof/gprof.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c
index 94f7f98..9c4701c 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -319,16 +319,16 @@ gettextspace( abfd )
return;
}
- textspace = (u_char *) malloc( texsec->size );
+ textspace = (u_char *) malloc( texsec->_cooked_size );
if ( textspace == 0 ) {
fprintf( stderr , "%s: ran out room for %d bytes of text space: " ,
- whoami , texsec->size);
+ whoami , texsec->_cooked_size);
fprintf( stderr , "can't do -c\n" );
return;
}
bfd_get_section_contents (abfd, texsec, textspace, texsec->filepos,
- texsec->size);
+ texsec->_cooked_size);
}
/*
* information from a gmon.out file is in two parts: