A patch for csu/gmon-start.c
Roland McGrath
roland@frob.com
Wed Apr 19 11:55:00 GMT 2000
I think your change is ok. It is usual to use `extern void _end;' and the
like for this, so that &_end has type void *. Another good choice is
`extern void _end[];' or the like; that has the benefit of `_end' rather
than `&_end' doing the right thing as it does when using a function
declaration. (Note that `extern void _end;' has the benefit of giving you
an error if you use `_end' instead of `&_end', while your declaration using
a real type can result in confusingly bogus code that fetches from *&_end.)
More information about the Libc-hacker
mailing list