gmon-sol2.c (internal_mcount): Assume either _start or _init begins the text segment.

* config/sparc/gmon-sol2.c (internal_mcount): Assume either
        _start or _init begins the text segment.

From-SVN: r51246
This commit is contained in:
Richard Henderson 2002-03-23 18:17:32 -08:00 committed by Richard Henderson
parent 732988b851
commit 2332a245d9
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-23 Richard Henderson <rth@redhat.com>
* config/sparc/gmon-sol2.c (internal_mcount): Assume either
_start or _init begins the text segment.
2002-03-23 Alan Modra <amodra@bigpond.net.au>
* combine.c (simplify_comparison): When widening modes, ignore

View File

@ -291,8 +291,10 @@ static void internal_mcount(selfpc, frompcindex)
if(!already_setup) {
extern char etext[];
extern char _start[];
extern char _init[];
already_setup = 1;
monstartup(0, (char *)etext);
monstartup(_start < _init ? _start : _init, etext);
#ifdef USE_ONEXIT
on_exit(_mcleanup, 0);
#else